Forum Discussion
Is there any way to bypass the authentication page in SharePoint through HTTP request or SOAP API
- AnonymousJan 17, 2019
You cannot bypass authentication, what you can do is make a request as an authenticated user/app.
First, you can register your application in Azure AD to have a taken that you can use to make requests. https://sharepoint.stackexchange.com/questions/236286/sharepoint-online-rest-api-authentication-in-postman explain how to go for it, but there are a lot of resources out there to learn from, including https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/register-sharepoint-add-ins.
The second way is to sign in as a user, as https://paulryan.com.au/2014/spo-remote-authentication-rest/ suggests. Although it may be a bit long, it teaches how to "hack" your way into Sharepoint, in case you need some quick HTTP requests. Basically, all you need in order to make requests to Sharepoint are two cookies, FedAuth and rtFa. This post shows how to sign in and create these tokens. Bonus is, if you have a package debugging tool like Fiddler, you can make a request from your browser and get these cookies. Then you can make requests to sharepoint as you want. These cookies are temporary so it is not valid to use them for a permanent application.
You cannot bypass authentication, what you can do is make a request as an authenticated user/app.
First, you can register your application in Azure AD to have a taken that you can use to make requests. https://sharepoint.stackexchange.com/questions/236286/sharepoint-online-rest-api-authentication-in-postman explain how to go for it, but there are a lot of resources out there to learn from, including https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/register-sharepoint-add-ins.
The second way is to sign in as a user, as https://paulryan.com.au/2014/spo-remote-authentication-rest/ suggests. Although it may be a bit long, it teaches how to "hack" your way into Sharepoint, in case you need some quick HTTP requests. Basically, all you need in order to make requests to Sharepoint are two cookies, FedAuth and rtFa. This post shows how to sign in and create these tokens. Bonus is, if you have a package debugging tool like Fiddler, you can make a request from your browser and get these cookies. Then you can make requests to sharepoint as you want. These cookies are temporary so it is not valid to use them for a permanent application.