Questions tagged [authentication]
Validation the identity of the user, usually with username and password authentication.
715
questions
1
vote
1
answer
2k
views
SharePoint API: Invalid Access Token Resource
I am trying to obtain an access token for use with the SharePoint Rest API. For my organizations base site. I am able to obtain a token and use that token to make subsequent requests successfully.
...
0
votes
1
answer
3k
views
Aquire access token via HTTP request
I'm writing a Java app that aquires a token via the provided MS utility lib called adal4j.
It provides finished methods, I just need to provide the username, password, authority and my clientid. The ...
1
vote
2
answers
6k
views
SharePoint sign out not working in Google Chrome
We have an Extranet SharePoint environment published in Internet for our clients. The issue is that if the user is using the Chrome browser and even if they select "Sign Out" or just close the browser,...
0
votes
0
answers
15
views
Return User Roles from Azure App Registration when Authenticating from SPFX with AadTokenProvider
I have the following code on my web part:
import { AadHttpClient, AadHttpClientFactory, AadTokenProviderFactory } from '@microsoft/sp-http';
const factory: AadHttpClientFactory = this.context....
1
vote
3
answers
2k
views
Equivalent for Authentication.asmx in SharePoint 2013
Everyone knows that SharePoint has a web service (ASMX), called Authentication.asmx, which is a good web service for doing authentication. It has a method called Login, which takes username and ...
0
votes
0
answers
23
views
Error Connecting to SharePoint 2019 via CSOM
We are getting a 403 error when trying to connect to a SharePoint 2019 site via CSOM in one of our environments. The accounts being used have the correct permissions and I am able to connect to the ...
8
votes
3
answers
2k
views
How to implement 2 factor authentication in Sharepoint 2010?
Can anyone please mention how to implement 2 factor authentication in Sharepoint 2010?
I have been reading alot of stuff. but can not figure out what exactly should I do first.
Can anyone atleast ...
2
votes
1
answer
5k
views
Exception of type 'System.ArgumentException' was thrown
I'm on 2010 Sharepoint. some users get the error when they're logged in with "remember me" checked and being inactive for more than 2 days. we have the cookies set to expires after 2 days and it ...
0
votes
1
answer
2k
views
How to Sign-In with Sharepoint from the Javascript?
I used the following code to access the sharepoint from javascript
var soapDataString = "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/...
2
votes
1
answer
3k
views
How to connect office 365 site having MFA using c#
I need to connect Office 365 site using console application(c#). but the problem is office 365 tenant having MFA(Multi Factor Authentication) authentication. How can i connect to specific site ...
0
votes
0
answers
41
views
Creating a SharePoint signed URL
The below is the SharePoint URL to access the required document:
https://companyName.sharepoint.com/_api/web/GetFileByRelativeUrl(%27/companyName%20ABC/contact/fileName.jpg%27)/$value
But pasting the ...
2
votes
1
answer
2k
views
Get FedAuth when authenticating to SharePoint Online via Office 365 from a remote website
I have a .NET website that allows viewing files located in SharePoint Online, among other clouds. So far we used asked the users for the SharePoint site address, the username and the password in order ...
0
votes
1
answer
7k
views
VBA Autheticate to SharePoint Office 365
I tried to follow the base instructions using this post (as it was the only one I could find) http://www.sharepoint-insight.com/2016/03/21/step-by-step-sharepoint-online-authentiaction-process-via-...
3
votes
1
answer
5k
views
SSRS data source: Can't use stored Windows credentials, "SharePoint does not use Windows authentication"
I'm running a single-server deployment of SharePoint 2013 and SQL Server 2014 with SSRS in SharePoint-integrated mode. When trying to set up a subscription for a new report, I get a popup saying:
...
0
votes
1
answer
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 ...
4
votes
1
answer
3k
views
What is SharePoint (on-prem) authentication realm?
Could anyone clearly explain
what is Sharepoint authentication realm (the one set by Set-SPAuthenticationRealm cmdlet)?
In what cases do I need to set this realm equal for 2 (or more) farms, and in ...
0
votes
1
answer
2k
views
The Error validating credentials due to invalid username or password comes up when trying to upload files to SharePoint by a python script
I am trying to upload files to a SharePoint folder structure which has been already created, I have used two files for this
Config_template:
config = dict()
config['sp_user'] = '[email protected]'
config['...
1
vote
2
answers
4k
views
Authenticating to SharePoint from fiddler/postman fails with 401
I am trying to follow the guidance in many articles, one by Fabian williams, on how to make queries from Fiddler or Postman, but I keep getting 401 unauthorized. I have SharePoint on prem 2016, with ...
2
votes
1
answer
3k
views
Java Authentication with Office 365 Sharepoint
I have an application that I tested out with a self-created SharepointServer based on an Active Directory environment.
For this I used the following code to authenticate with the Sharepoint server(...
0
votes
1
answer
2k
views
PasswordNotMatch error in authentication.asmx web service
I am trying to authenticate to SharePoint site using the authentication.asmx web service. The code is as below.
public bool Authenticate()
{
String username = "......";
String password = ...
1
vote
1
answer
2k
views
SharePoint 2016. How to ensure Kerberos authentication is working properly
How to ensure Kerberos authentication for SharePoint 2016 is working properly?
HTTP headers show that Kerberos is used, but klist did not show ticket for SharePoint site. What does it mean?
Details
...
1
vote
4
answers
5k
views
Authentication and Reading Sharepoint online List from C# Code
I would like to read lists and contents in pages folder from SharePoint Online. I come across this post. But this uses Username and password. is there a way to read contents without using username/...
50
votes
5
answers
79k
views
NTLM vs Kerberos
I just want to know the difference between NTLM and Kerberos. When to use NTLM and Kerberos and when not to use it? Why do you need to use Kerberos for authenticated feeds? Our admin is asking me why? ...
1
vote
1
answer
1k
views
Reason for "AADSTS70000: Authentication failed. Delegation blob grant is malformed" error on SharePoint
When trying to get the access_token using the refresh_token for my SharePoint site using WebRequest i get the following error
"AADSTS70000: Authentication failed. Delegation blob grant is
...
1
vote
3
answers
4k
views
Sharepoint Designer 2013 authentication problems
My company uses O365 SharePoint sites that I would like to be able to edit using SharePoint Designer 2013, however I am experiencing some problems making it work. I open SharePoint Designer 2013 and ...
1
vote
1
answer
2k
views
Upload File to Sharepoint without storing Username/Password
We want to upload files to SharePoint as part of CI/CD in Github (Actions).
I've found how to do this using REST api, but that requires username/password. Also bearer tokens work, but we need a ...
1
vote
1
answer
3k
views
Get users from LDAP and authenticate in SharePoint Online
I have a SharePoint Online site, where users are in LDAP but not in SharePoint. How to get users from LDAP and connect to SharePoint Online site. I appreciate if any one have any ideas on this and it ...
0
votes
0
answers
69
views
SharePoint 2019 on-premise constant login prompts in Edge
Recently upgraded to SharePoint Server 2019 from 2013 Foundation. All seems to be working ok in Chrome, but when in Edge we can only log in using DOMAIN\username format, otherwise we get constant ...
0
votes
0
answers
81
views
Trying to get access token in SharePoint on-premises 2016 but getting 401 unauthorized error
We are trying to get an access token in SharePoint on-premises 2016 server version.
Creating an app successfully using these steps in our SharePoint on-premise 2016: https://learn.microsoft.com/en-us/...
0
votes
0
answers
17
views
How to ask user to reauthenticate for sensitive operation in a SPFX webpart?
I'm building a SPFX webpart that perform some sensitive operation when a button is clicked (document approbation for example).
Is there any way to ask the user to reauthenticate to "sign" ...
0
votes
1
answer
143
views
Problem with OneNote and SPO sync,
I have a problem with OneNote and sync (and opening unsynced OneNote) with OneNote File stored in SharePoint Online.
I receive this error:
Microsoft OneNote We couldn't open that location.[OneNote ...
1
vote
2
answers
96
views
PNP script to get all subsite in a single site collection, please with MFA for SP online
Found plenty of scripts but they are not with MFA. MFA is a standard now, do not understand why people insist of creating scripts not considering that.
Can someone help?
0
votes
2
answers
259
views
Service account with MFA enabled , how to transfer the membership/ownership to the client after completing the project
I am working on a project for external client >> and I needed to create some SharePoint lists, solutions & Power automate flows.
Now they gave me a service account username/password, and the ...
5
votes
1
answer
289
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 ...
0
votes
0
answers
157
views
Embed Authenticated SharePoint Page in React Application
I have an ask to figure out if it is possible to embed SharePoint pages into a website that is based on React. Our company uses SSO/Okta to login to our applications, including Office365. I've managed ...
0
votes
0
answers
13
views
Export to excel error caused by loadbalncer
We are curently migrating from SharePoint 2016 to SharePoint SE and we are facing strange authenticationg issue on new SHP SE enviroment.
Authentication is NTLM and what is happening besides all other ...
6
votes
1
answer
5k
views
Use App Password to Authenticate with PowerShell PnP
Suppose you have a tenant with MFA enabled.
The same tenant allows users to create private app passwords like on the screenshot below.
Question:
Is it possible to use this app password to ...
0
votes
0
answers
14
views
Use azure access_token to display private sharepoint docs that are embedded in Web App
I have a web app where I am displaying few docs/excel in iframe which are private and can only be accessed by people to whom permission was given.
I authenticated via azure AD but that's not enough it ...
0
votes
1
answer
574
views
How to move from basic to modern authentication in my existing CSOM powershell script?
I have a big CSOM powershell script which is using basic authentication. This script is scheduled to run every day. This script is using credentials of a serviceaccount without MFA. We would like to ...
2
votes
0
answers
44
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
2
answers
381
views
How can I know the Powershell credential request username and password?
I've been trying to run different PowerShell scripts to get all or subsites that are into a site collection, however when I run this ask for the Windows PowerShell credential that haven't able to ...
0
votes
2
answers
42
views
Cannot authenticate school user Office 365 account when attempting setup OneDrive on Windows 7 PC
Have downloaded OneDrive to a Windows 7 machine (eventually will be replaced by Windows 10 machine after migrated data to OneDrive).
I could migrate data using a USB attached hard drive but I need to ...
0
votes
3
answers
4k
views
Claim Based Authentication Error "The value is neither a claim user name nor a claim user name suffix"
In my SharePoint farm, I have form based authentication enabled as well as Windows authentication. All works fine, but in some scenario, when I login, and hit the logout and try to login again at some ...
0
votes
2
answers
3k
views
Connect-PnPOnline : AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-
I have this script to connect to a SharePoint online site using username & password:
$encpassword = convertto-securestring -String "********" -AsPlainText -Force
$cred = new-object -...
1
vote
0
answers
265
views
Connect to SharePoint online from Azure Function and ASP.NET core web application using REST API
We are developing those 2 components inside our project:-
Azure Function which run on daily basis and which read/write to SharePoint Online lists and libraries.
ASP.NET core web application which ...
0
votes
0
answers
16
views
ClientContext Does not Contain a Definition for AuthenticationMode
I had a script that worked earlier today, but when I restarted my machine I now get ClientContext does not contain an definition for 'AuthenticationMode'. I have tried reinstalling the Nuget Packages....
0
votes
0
answers
593
views
{"The remote server returned an error: (401) Unauthorized."} error during accessing SharePoint site shared Folder files
string siteUrl1 = "https://#######.sharepoint.com/sites/####";
string clientID = "#####################################";
string clientSecret = "#######...
0
votes
1
answer
197
views
Authentication for custom REST API invoked from SharePoint online pages
I have a modern UI web part in SharePoint Online. This component needs to invoke a custom REST API that will be hosted in an Azure web app (not SharePoint REST API). I may also call this API directly ...
0
votes
2
answers
7k
views
The remote server returned an error: (401) Unauthorized (SharePoint Online & C# Application)
I am trying to insert items in SharePoint online list from c# console application using CSOM method, but every time it gives me only one error:
"The remote server returned an error: (401) ...
1
vote
0
answers
75
views
How to access SharePoint provider-hosted add-in via postman
I have created a provider-hosted add-in on SharePoint 2019 on prem. I want to access my provider hosted add-in data from postman.
I have successfully setup postman to authenticate in SharePoint, as ...