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.

35 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
265 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 ...
2
votes
1answer
999 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 (...
2
votes
0answers
439 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 ...
2
votes
0answers
157 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 ...
2
votes
0answers
246 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 ...
2
votes
0answers
577 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,...
2
votes
1answer
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 ...
2
votes
0answers
548 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 ...
2
votes
0answers
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 ...
2
votes
0answers
487 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?
2
votes
0answers
202 views

Experiences and authentication experiences adding a struts2 web application as an App (HTML) to SharePoint 2013

from my question title, you can tell I have no experience developing web applications for SharePoint applications Per requirements, I need to develop Java Web Applications (run on its own Tomcat ...
2
votes
0answers
2k views

Token Request Failed: Remote Server returned error (400) while fetching the token

My Requirement is to retrieve a document from SharePoint online using a .NET console application. I followed the steps in this link . But I get a failure Token request failed. {"The remote ...
1
vote
0answers
238 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 ...
1
vote
1answer
102 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 ...
1
vote
0answers
437 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 ...
1
vote
0answers
1k 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 ...
1
vote
0answers
352 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 ...
1
vote
0answers
408 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/...
1
vote
0answers
736 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 ...
1
vote
1answer
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 ...
1
vote
0answers
769 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 ...
1
vote
0answers
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 ...
1
vote
1answer
368 views

Office 365 Authorization without login

I am developing a Mobile app which sends data to SharePoint list (SharePoint Online, Office 365). The users of the app should be able to save data in the list silently, without logging. Is this ...
1
vote
0answers
212 views

ask for access permissions on the fly in SharePoint 2013 using php

I'm trying to get accesstoken from the authorization code as described in here - but using PHP app. http://msdn.microsoft.com/en-us/library/office/jj687470(v=office.15).aspx I was able to do this ...
1
vote
1answer
291 views

Sharepoint Oauth URL returns 404

One of the steps in doing the sharepoint OAuth flow redirects me to https://accounts.accesscontrol.windows.net/metadata/json/1?realm=https://<mysite>.sharepoint.com I have 2 queries regarding ...
1
vote
0answers
214 views

OAuth Authentication & Azure

I'm new to SharePoint development and using Office 365 SharePoint 2013. We need to replace our AD cloud based authentication servers with OAuth authentication. Am I correct in thinking that our SP ...
0
votes
0answers
37 views

ClientContext gives 401 unauthorized for AccessToken from https://login.microsoftonline.com/{tennant_id}/oauth2/token

I'm using CSOM APP-only auntentication method to connect with SharePoint in a .Net Core Application using MicrosoftSharePointCSOM package and not PNP packages. Problem- I'm using below endpoints to ...
0
votes
0answers
237 views

Obtain FedAuth Cookie with REST access token for Sharepoint Online

My goal is to create a small "Link-Checker" application. This application should be able to find broken links on any web page. One major issue that I'm facing is how I can check links to our ...
0
votes
0answers
143 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 ...
0
votes
1answer
385 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
1answer
157 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 ...
0
votes
1answer
291 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 ...
0
votes
1answer
1k views

Rest API authentication

I need to use the SharePoint Rest API from a custom JavaScript application (outside from SharePoint). How can I authenticate the user to use the Rest API. I can not deploy a SharePoint app, I need ...
0
votes
1answer
264 views

oAuth: How to get the SPUser when you only have the token?

Goal: I try to get the preview of Documents working when documents are hosted in SP2010 and crawled by SP2013. Context: To render a document, the index creates a link that returns an iframe that ...
0
votes
1answer
312 views

Can SharePoint 2013/Online act as authentication provider for a SaaS

I have found lots of documentation about how to login to SharePoint using Google, Facebook, Microsoft Account, etc. But can you make it the other way around? Can SharePoint act as an authentication ...