35
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 ...
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 ...
7
votes
Sharepoint authentication without CSOM, JS or 3rd party dlls
Your code needs two changes to work with both SharePoint On-Prem and SharePoint Online.
First, change the type of the second parameter from NetworkCredential to ICredentials. Second, you need to add ...
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 ...
6
votes
Accepted
SharePoint Setup Account (SP_Install) really necessary?
Short answer, no. You don't need it. It's just a super, no bars account that all the rest of the accounts' permissions are designated from. As part of the "best practice" its one of those ...
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 ...
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....
5
votes
Accepted
Authenticating to Office 365 vNext with Multi-Factor Authentication enabled
I was able to find a solution for this by decompiling the CSOM and watching the exchange via Fiddler.
*If someone with 300+ reputation can add a "vNext" tag that would be appreciated. It's really ...
5
votes
SharePoint Setup Account (SP_Install) really necessary?
The sp_install user should only be used to execute the base/initial installation of SharePoint. The sp_farm account is used after the setup in the SharePoint Configuration Wizard. And after that all ...
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-...
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.
...
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 ...
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 ...
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'...
4
votes
SharePoint Setup Account (SP_Install) really necessary?
I've always intalled my SP farms with SPInstall (often named SPAdmin in my cases). When prompted by the setup program for the account to run the farm with, I enter SPFarm. After that, everything is ...
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.
...
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 ...
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 ...
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 ...
3
votes
Accepted
what kind of claims based authentications we can use in SharePoint 2010
Their are 3 differnt way to implement the claims authentication.
Windows authentication methods
NTLM
Kerberos
Anonymous
Basic
Digest
Forms-based authentication methods
LDAP
SQL Server database or ...
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 ...
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 ...
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 ...
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....
3
votes
SharePoint 2016 - ADFS - persistent cookie - office client integration - authentication prompt
I was having the exact same problem. Using SharePoint 2016, Office 2016, and ADFS 4.0/2016, the only way I can get it to work is to disable ADAL. ADAL is not supported for on-premise Exchange, so I ...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
authentication × 715sharepoint-online × 136
2013 × 69
forms-authentication × 62
claims-based-auth × 56
sharepoint-enterprise × 55
sharepoint-server × 50
2010 × 45
adfs × 41
windows-authentication × 40
office-365 × 34
rest × 34
csom × 30
web-services × 30
kerberos × 28
development × 25
active-directory × 25
login × 22
powershell × 21
sharepoint-addin × 21
sharepoint-rest-api × 21
security × 18
authorization × 18
ntlm × 18
javascript × 17