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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 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 ...
user avatar
0 votes
0 answers
14 views

SharePoint Rest API modify "who modified by" and security classification using OAuth token postman

I am working with SharePoint rest API calls, I have client ID and token using them I can generate OAuth token, using OAuth token I am able to upload files. but when upload the file how can I update ...
user avatar
1 vote
2 answers
251 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 ...
user avatar
  • 972
0 votes
0 answers
20 views

Moving from API Key to OAuth 2.0 inside our Power platform's custom connector.. how the authorization will be done

I am working on a custom connector that uses the OAuth 2.0 .. now I am not sure how we can authorize the API calls in this case? I mean if we use the API key as the Security option inside the custom ...
user avatar
  • 972
3 votes
1 answer
53 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 ...
user avatar
  • 167
1 vote
0 answers
66 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 ...
user avatar
  • 111
0 votes
1 answer
460 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 ...
user avatar
1 vote
0 answers
72 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/...
user avatar
0 votes
1 answer
164 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 ...
user avatar
1 vote
1 answer
764 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 " + ...
user avatar
0 votes
0 answers
245 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 ...
user avatar
  • 103
1 vote
0 answers
387 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 ...
user avatar
  • 11
2 votes
2 answers
1k 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 ...
user avatar
0 votes
1 answer
661 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 ...
user avatar
  • 7,426
0 votes
1 answer
246 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 ...
user avatar
0 votes
2 answers
66 views

Can't change data in the Host web from a Remote Event Receiver ItemAdding Event

I've build a SharePoint that should modify some information when the user create data. The addin has some pages (asp.mvc) that lists the lists in the host web. The user select one of the list, then ...
user avatar
  • 7,426
2 votes
1 answer
1k views

401 Unauthorized after OAuth 2 authentication

I am developing a native app (WinInet/C++) and after completing OAuth2 as described here and getting auth token, try to send any request to my SharePoint but get 401. The site is SharePoint online (...
user avatar
  • 359
0 votes
2 answers
284 views

Sharepoint API authentication without OAuth

I'm trying to make an integration work between JIRA and Sharepoint to populate values in a custom field in JIRA from querying the Sharepoint API, but the JIRA Addon I'm using to does not support ...
user avatar
  • 25
1 vote
1 answer
163 views

How to check whether SharePoint web server to app server communication is going over oauth http or https secure channel?

We have SharePoint 2013 on premises farm and have SSl enabled for web application. Is the server to server trust configured with OAuth framework with default https as my web application is running ...
user avatar
  • 585
1 vote
0 answers
517 views

Get JWT Tokens in SharePoint Online

There is a function in Outlook API called getCallbackTokenAsync([options], callback); Office.context.mailbox.getCallbackTokenAsync How can I get such function in SharePoint Online? Is there an ...
user avatar
2 votes
0 answers
500 views

Signing in Guest (External) users in Multi-tenant Azure AD registered App

We have an app to consume SharePoint data that authenticates users using OAuth2 and App Registration in Azure AD. The app is multi-tenant as it should be available for multiple customers. Everything ...
user avatar
  • 146
1 vote
0 answers
2k views

Get bearer token for SharePoint server 2013

I'm developing a Windows 10 application for my company that runs on the client machine. The app needs to make REST requests for our SP Server to get some information but as I have seen, I need an ...
user avatar
  • 111
5 votes
0 answers
270 views

Accessing Graph API from a SharePoint web part without an additional authentication

I am creating a webpart for SharePoint Online which accesse the user's calendar through the Microsoft Graph API. In order to get the access_token, my webpart needs to open a new browser window where ...
user avatar
2 votes
1 answer
890 views

How can I retrieve a SharePoint online OAuth access token for unit tests?

I'm using the SharePoint 2013 Rest API in my web-application and I want to write some unit tests. GitHub has the notion of personal access token (Creating a personal access token for the commande ...
user avatar
  • 21
1 vote
0 answers
374 views

Accessing Project Online Data Read/Write through CSOM / REST

Hello I am trying to access data (for example tasks and the timesheet) saved in a Sharepoint hosted Project Online enviroment. I would like to write a MVC app which is able to access the data in ...
user avatar
5 votes
2 answers
12k views

From where to use TokenHelper class for client context in SharePoint Online?

I have been reading several articles to get SharePoint Online client context with the generated access token. All of them use TokenHelper class to get the client context as shown below: ClientContext ...
user avatar
1 vote
0 answers
505 views

SharePoint Online: Access denied while getting OAuth code

I am trying to get OAuth code to access sites and lists from SharePoint Online. Below are the steps that I have performed: Register application at URL https://adventurer.sharepoint.com/_layouts/15/...
user avatar
11 votes
2 answers
8k views

Oauth Authentication for SharePoint REST API

Based on my research and this Video, I was under the impression that switching between the Graph API and the SharePoint REST API should be pretty straight forward. After obtaining an OAuth2 token, I ...
user avatar
  • 111
2 votes
0 answers
179 views

How to force deleted files to be placed in 1st stage recycle bin as admin?

I am working on an app where the user authenticates using OAuth. One of the features is that the user should be able to recycle files and restore them. Recycling and restoring is done using the ...
user avatar
  • 193
2 votes
0 answers
264 views

How do we use OpenID with AzureAD to authenticate to SharePoint Office 365 API

I need to have a user context available to get a list of SP lists based on permissions. I've wired up Startup.Auth.cs with UseOpenIdConnectAuthentication. I've granted the SharePoint permissions in ...
user avatar
0 votes
1 answer
96 views

Log into another SharePoint site as current user?

I have a provider hosted app connected to a SharePoint site. I want to write some code that allows the provider hosted app to create/get data on a different sharepoint site. I read articles that imply ...
user avatar
2 votes
0 answers
604 views

MSF 2013 - Non-OAuth request. IsAuthenticated=True, UserIdentityName=, ClaimsCount=0

I'm developing some custom WebParts, including WCF Services to be hosted within the ISAPI directory of Sharepoint (Foundation 2013) I'm also referencing some files from the SiteAssets (*js frameworks,...
user avatar
5 votes
1 answer
5k views

How to allow authenticated cross-domain calls in an SP 2016 on-prem scenario?

In an on-premises scenario I need to call SharePoint 2016 REST services (via XHR) from JavaScript. The calls will originate from a host different from the SharePoint host. To allow these calls I need ...
user avatar
2 votes
1 answer
2k views

Authenticate Web UI using OAuth2 Access Token from ADFS

In an Ionic mobile app, we need to access the SharePoint API and to show a SharePoint Web UI in an Ionic WebView (essentially a browser inside the app). We're using OnPrem ADFS on Windows Server 2012 ...
user avatar
  • 549
2 votes
0 answers
587 views

Is the OAuth implicit grant type supported for provider-hosted add-ins?

The provider of my provider-hosted add-in needs to ask for SharePoint (Online) permissions on the fly. OAuth can be used to achieve this, as documented here in MSDN. The authorization is low-trust ...
user avatar
2 votes
0 answers
1k views

How to connect to SharePoint ( with Node.js) using OAuth with user context?

I created a Node.js App that connects to SharePoint(OnPremise and O365) and does all sorts of things. The app uses sp-request and node-sp-auth APIs for Basic Authentication (username, password), and ...
user avatar
  • 325
5 votes
3 answers
14k views

How to use SharePoint RESTful web services with Node.js?

I'm working on a Node.js app and I'd like to use some basic SharePoint services inside the app. I've already done this using java and SOAP web services (copy, list, search) And now I'd like to do the ...
user avatar
  • 325
3 votes
1 answer
341 views

How safe is SharePoint Online (Office 365) login?

I have some discussions with my work mates about how safe is SharePoint Online login. I think it is just as DropBox, FaceBook or any other application with a form. I know that Office 365 uses OAuth2 ...
user avatar
  • 779
8 votes
2 answers
547 views

Access AAD protected Web API with SharePoint Online user token

I have a Web API protected by using Bearer tokens form Azure AD (https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-webapi-dotnet/). Now, I would like to call ...
user avatar
  • 2,087
0 votes
1 answer
308 views

Permissions Scope

I've created a project which transfers data to SharePoint Online. OAuth is used for authorization/authentication. At first I was using AllSites.Manage for my permissions scope, but due to some ...
user avatar
  • 11
3 votes
1 answer
147 views

How to start the Sharepoint app development [closed]

How to start the SharePoint App development ? What is the SharePoint Hosted App Model ? What is the open authorization 2.0 OAuth 2.0 ? i am new to office 365 and develop apps for share point 2013, ...
user avatar
  • 2,905
1 vote
0 answers
792 views

OAuth+OpenID+REST JWT Token and Audience working with subdomains?

Ok, so I have used OAuth and gotten my JWT token and I’m having a lot of success using the REST API to do what I want to do (upload/download files and folders) however, when I get a list of sites I ...
user avatar
  • 111
1 vote
1 answer
540 views

SharePoint Low trust Provider Hosted Add-in access denied to host web, the remote server returned an error: (403) Forbidden

Brief of what I am trying to achieve: Would like to create root folder properties for a list thats in SharePoint online host web from a remote web service hosted in azure web app. Have the hybrid ...
user avatar
2 votes
1 answer
5k views

Access Sharepoint from console using token

I want to access a Sharepoint 2013 / office365 - site from a console application using OAuth-token I saved earlier using a provider hosted app. I already can connect using credentials: using (...
user avatar
2 votes
0 answers
491 views

Implementing Single Sign On in SharePoint 2013 On-Premise Multi-Tenant environment using OAuth with other websites or systems

Can anyone please provide a detailed walk through with steps for implementing Single Sign On in SharePoint 2013 On-Premise Multi-Tenant environment using OAuth with other websites or systems?
user avatar
  • 1,137
0 votes
1 answer
165 views

Mix CSOM and JSOM? Any disadvantages?

I need to write an Office365-App. I want to use a provider-hosted MVC-Application for this. As I want to use some kind of "API" on some pages, that returns a JSON that then is used inside JS to ...
user avatar
1 vote
1 answer
1k views

SharePoint Online 2013 Workflow calling external web service with bearer token

I am trying to call a Dynamics CRM Online web service from a SharePoint 2013 workflow in SharePoint online with a HttpSend activity. I am unable to get the call to authorize. The workflow does not ...
user avatar
  • 111
1 vote
0 answers
849 views

Requesting access token gives Microsoft.IdentityModel.SecurityTokenService.RequestFailedException error

I'm trying to get a basic provider-hosted app up and running on Azure Websites. The app seems to work fine when testing locally with IIS Express, but when I deploy to Azure Websites and run the same ...
user avatar
1 vote
0 answers
1k views

"The Azure Access Control service is unavailable" on Azure Sharepoint Farm via Oauth

we are trying to evaluate integrating Sharepoint 2013 as a Data Source into our app, i.e. create a low trust app that receives a token from Sharepoint and makes further inquiries with that token. The ...
user avatar
1 vote
1 answer
3k views

AppSecret key lifetime and expiration

I see when I use Seller Dashboard max token lifetime is 3 year. Does anybody know it how long it be valid if I use AppRegnew.aspx page?
user avatar
  • 1,333