Skip to main content
Share Your Experience: Take the 2024 Developer Survey
36 votes
Accepted

SharePoint Online REST API Authentication In POSTMAN

Answering my own question in case it helps somebody. As mentioned in comment by @SharePointer you need to register an app in Azure AD in order to authenticate against it. That app that you register ...
motionpotion's user avatar
  • 2,247
14 votes

SharePoint Online REST API Authentication In POSTMAN

I've successfully achieved it using this tutorial. Sharepoint configuration part Register a new app by following https://YourTenant.sharepoint.com/_layouts/15/appregnew.aspx link generating Client ...
Gryu's user avatar
  • 291
7 votes

SharePoint Online REST API Authentication In POSTMAN

Just adding this here since the Azure Portal is slightly different now. Login to Azure Portal at https://portal.azure.com for your O365 Tenant Either use the Search at the top of the page for App ...
teaton's user avatar
  • 71
6 votes

Connect to Sharepoint Online REST API using Java

Here is a demo for your reference, We access SharePoint online and use REST API to upload a file in JAVA. 1.Get the security token from Microsoft authentication portal: public String ...
Lee Liu's user avatar
  • 273
5 votes
Accepted

SharePoint AD FS Relying Trust Endpoint issues

Multiple endpoints in the same relying trust is possible if the SPTrustedIdentityTokenIssuer has UseWReplyParameter enabled. This should help out with SharePoint Hosted Apps. $tit = Get-...
James Grizzle's user avatar
5 votes
Accepted

Access Sharepoint from console using token

Just regenerate the token. Add the App For SharePoint nuget package to your console app. Install-Package AppForSharePointWebToolkit Then write the code to generate the token and context object. ...
Derek Gusoff's user avatar
  • 8,026
5 votes

The remote server returned an error: (403) Forbidden

if you are trying to run it using network credential try the below code clientContext.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; Also try adding headers context....
Vignesh Subramanian's user avatar
5 votes
Accepted

How to authenticate to SharePoint Online (Office 365) using REST API

I don't think it's possible to use digest or basic in Online. From my perspective, you have different possible solution depending on your requirements. From my POV there are three options ...
Sergei Sergeev's user avatar
5 votes

SharePoint 2016 - ADFS - persistent cookie - office client integration - authentication prompt

Try this solution: HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Identity Check if EnableADAL key is present If not present then create new REG_DWORD key with name EnableADAL and value 0 This worked ...
Miler's user avatar
  • 51
5 votes

SharePoint 2013 is keep prompting

Make sure that The image is not checked-out, try to upload it again as a new version and check it in. The library/folder that holds the image doesn't have a unique permission. The image itself doesn'...
Mohamed El-Qassas MVP's user avatar
4 votes
Accepted

Is it possible to create a SharePoint provider-hosted low-trust add-in that works with an on-premises ACS?

When using high trust, you are using the same JWT tokens. The difference is that in high trust system, your app is so cool and so trusted, that SharePoint trusts your app for token generation. ...
Sergei Sergeev's user avatar
4 votes

How to use the FedAuth cookie in 'ClientContext'

For that purpose I would strongly recommend you to use PnP AuthenticationManager class, which already contains methods for obtaining ClientContext with different authentication mechanism. For example ...
Sergei Sergeev's user avatar
4 votes
Accepted

SharePoint 2016 - ADFS - persistent cookie - office client integration - authentication prompt

And, here's an update: KB3203432 - https://support.microsoft.com/en-us/help/3203432/descriptionofthesecurityupdateforsharepointserver2016june13-2017 did seem to fix this problem (the 401 vs 403 ...
Scott D. Carson's user avatar
4 votes
Accepted

Use App Password to Authenticate with PowerShell PnP

Yes. You can use app password to authenticate SharePoint Online site using PowerShell PnP. Hit below URL: Connect-PnPOnline -Url https://contoso.sharepoint.com It will open a pop-up like below where ...
Ganesh Sanap - MVP's user avatar
3 votes

Getting into loop when trying to access two SharePoint 2013 web-apps configured to use ADFS

This is probably far too late, but here is my proposed answer. ADFS will use the same fedauth cookie for a signed in user, even if you configured two relying parties separately. That is because it ...
user22000's user avatar
3 votes
Accepted

Can't login to newly created webapp / site coll

It can be solved by disabling loopback check. Refer this link: http://www.c-sharpcorner.com/UploadFile/shyjumohan/disable-loop-back-check-in-windows-server-2012/ FYI, Microsoft has introduced a ...
Dikesh Gandhi's user avatar
3 votes

Is it possible to create a SharePoint provider-hosted low-trust add-in that works with an on-premises ACS?

For On premise SharePoint farms, you need to create High trust Add-ins which uses S2S authentication mechanism. And you can run code on logged in user context using High trust add-ins. For SharePoint ...
Unnie's user avatar
  • 8,819
3 votes

Delegating/Forwarding SharePoint on-prem (ADFS) identity to call Exchange Online API

You can use one of ADFS features called ActAs. When user is authenticated with ADFS in some ASP.NET application, usually there is a "BootstrapToken": ((IClaimsIdentity)Thread.CurrentPrincipal....
Sergei Sergeev's user avatar
3 votes

Log in to Sharepoint 2016 using your Enterprise Office 365 account

First of all, SharePoint Online works with the login name using UPN (user principle name) which is in most cases it will the user's email ID. so if your login ID is same as UPN (Microsoft's ...
kesava's user avatar
  • 2,176
3 votes

Suddenly most users are getting prompts for credentials

Most likely some AJAX call to a resource that the users are lacking permissions to access. I would guess that the two users without the issue got some kind of admin role. Check the console in your ...
Frank H's user avatar
  • 340
3 votes
Accepted

Sharepoint 2010 get REST API. Fetch Data behind authentication using Javascript

SharePoint REST API doesnt support authentication. Incase of O365, you can use OAuth concept to get your app authenticated (But you have on-prem environment). So you have to use the concept, which is ...
ThinkB4Code's user avatar
  • 2,970
3 votes
Accepted

Loading Content Across Site Collections (SP Online)

This is actually quite a known issue when trying to fetch the User profile photo and binding it to the html in other sharepoint page. To fix, we used the userphoto.aspx layouts page which helped us ...
Gautam Sheth's user avatar
  • 30.9k
3 votes
Accepted

Sharepoint Online - REST API Authentication

we can use O365 Api to access O365 Mails,Contacts,Sites(SharePoint Sites),etc... please check this link for more info Integrate Office 365 APIs into .NET Visual Studio projects. There are so many ...
TARUN's user avatar
  • 2,856
3 votes

SharePoint Online REST API Authentication In POSTMAN

If you're using Microsoft Graph API to access SharePoint Online, you'll find the Microsoft Graph Postman collection helpful too. It supports both application and on-behalf-of API calls. Also on ...
Christian's user avatar
3 votes
Accepted

Migrate Basic Authentication Web Application to Kerberos (2013 -> 2016)

I think you mix up two things: Authentication and SharePoint token-handling. Authentication is the first step and describes the process, how a user tells SharePoint who he is. Here you have NTLM, ...
MHeld's user avatar
  • 5,123
3 votes
Accepted

How to configure SPO to do app-only auth with PFX private key?

About the GetAppOnlyAuthenticatedContext method, an easier way to register for an app id and app secret is by registering an app (add-in) in SharePoint Online itself. This article should give more ...
Vardhaman Deshpande's user avatar
3 votes
Accepted

SharePoint Online credential is not working in PowerShell

If the account has MFA (Multi Factor Enabled), I mean apart from username and password we need to pass the one time OTP which we will get in our mobile - this is called MFA enabled password. Example: ...
SP 2022's user avatar
  • 4,074
3 votes

SharePoint Online credential is not working in PowerShell

If you have multifactor authentication enforced for your user account, you need to create and use an app password instead of your normal password. To create an app password in office 365, visit aka....
Donspeck's user avatar
  • 302
3 votes
Accepted

Modern Authentication, do we need to change something in C# CSOM?

If Multi-factor authentication (MFA) is activated in your environment, this code will not work anymore. You have to use SharePointPnPCoreOnline: https://www.c-sharpcorner.com/blogs/using-csom-to-...
Michael Han's user avatar
  • 5,201
3 votes

Sharepoint 2016 service account change

First, you need to create at least two domain accounts, one as a farm account and one for other services! List all services and application pools that run with your current account. Create Domain ...
Mohamed El-Qassas MVP's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible