Questions tagged [oauth]
OAuth is an open standard for authorization. OAuth provides a method for clients to access server resources on behalf of a resource owner (such as a different client or an end-user). It also provides a process for end-users to authorize third-party access to their server resources without sharing their credentials (typically, a username and password pair), using user-agent redirections.
70 questions
2 votes
0 answers
59 views
Authentication for REST calls in SharePoint online
We have an external application that makes REST calls to SharePoint on-premises using basic authentication (user and password). This SharePoint have been recently moved to SharePoint Online and since ...
0 votes
1 answer
3k views
OAuth authentication for SPFx solutions
I am challenged by a SPFx based solution (WebPart as well as Commandbar-Extension). I have a set of APIs which are secured by OAuth. There is a dedicated authentication server, so I can't just use ...
0 votes
1 answer
850 views
Issues with SharePoint Online OAuth 2.0 & Lack of proper documentation
My end goal is getting an access token with which I can communicate to a SharePoint site and manage lists via CSOM (mostly upload documents into lists). I also need a refresh token to manage ...
1 vote
2 answers
1k views
External API compatibility with Custom connectors
We want to build a custom connector inside Power Apps which integrate with external API. and for this integration we will use the Oauth2.0. Now the external API provides these details for the ...
3 votes
1 answer
74 views
Oauth to SharePoint online from a SaS application
I am building a Software as a Service application, and I want my users to be able to authorise the webpage to upload files directly to their sharepoint document library. I imagine the flow working ...
1 vote
0 answers
303 views
Manipulate sharepoint group membership using REST API from external app
I have an application that is secured via OpenID Connect / Azure AD. It is a webapp that is not running as part of the Sharepoint Framework. However, the app does need to interact with SharePoint in ...
0 votes
1 answer
2k views
File Downloaded From SharePoint Online using PowerShell is not Formatted Correctly
When using Powershell to download a file from SharePoint Online, the file is not encoded or formatted properly. With the below code, I am able to successfully authenticate to the site and download a ...
1 vote
0 answers
191 views
How do you download the actual HTML content of a SharePoint Online page using OAuth credentials (Bearer token)?
How do you download the actual HTML content of a SharePoint Online page using OAuth credentials (Bearer token)? I want to download the HTML content from here: https://mytenant.sharepoint.com/sites/...
0 votes
1 answer
503 views
What scope/permissions do I need to get RoleAssignments via the rest api?
I am using rest API role assignment for SharePoint Online with Oauth2.0 to fetch advanced permissions. But, I cannot give Full Control Scope to my Application. Is there any other way where I can get ...
1 vote
1 answer
4k views
Token based authentication in Sharepoint 2016
Hi I want to obtain Bearer token in Sharepoint 2016 on premise environment for the following code. GET https://{site_url}/_api/web/lists/GetByTitle('List Title') Authorization: "Bearer " + ...
0 votes
0 answers
492 views
Making OAuth-authenticated cross-domain REST API calls to 2016 on-prem
My question is exactly this question, but specifically this part: how to use OAuth in SP 2016 on-prem from JavaScript? Which authentification endpoint must be used? Which flows are supported? We are ...
1 vote
0 answers
997 views
Invalid token or signature - when starting a workflow
We configured the workflow service in our SharePoint 2019 farm using HTTP. When the workflow starts it failed with "HTTP Unauthorized" error coming from WFE server. The WFE server presents ...
2 votes
2 answers
2k views
SharePoint Online OAuth with Azure AD Users
I used this SharePoint OAuth Article from Microsoft to get the authorization code grant flow working with a SharePoint site. The idea is to get the access token dynamically from an external app (and ...
0 votes
2 answers
1k views
Rest API call return 0 items in list even there's data when using App deamon model
In a list I have some items. I want to call Rest api to list these items. When I call the api url from the browser, I get the expected result (items are returned). When I call the api from Insomnia ...
0 votes
1 answer
377 views
Access home page of a sharepoint online site from code
I have a sharepoint site hosted at: https://xxxxx.sharepoint.com, which has a subsite named abc when I type in https://xxxx.sharepoint.com/abc in the browser, it redirects to the welcome page of the ...