Questions tagged [authentication]
Validation the identity of the user, usually with username and password authentication.
715
questions
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 -...
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
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 ...
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 ...
0
votes
1
answer
592
views
Use AD FS SAML token to authenticate with SharePoint 2019
EDIT: Updated question as I was able to solve part of the issue thanks to lehuspohus!*
I have fetched a SAML Token from AD FS for the Relying Party I have set up with my local SharePoint server using ...
0
votes
0
answers
123
views
How to authentication sharepoint onpremise by Azure AD using CSOM
I am using CSOM to connect to SharePoint on-premises site. I want to authenticate SharePoint site by using Azure AD, but it returns 401 error.
Please help me. Thanks.
0
votes
1
answer
1k
views
AuthenticationManager does not contain a definition for GetAzureADAppOnlyAuthenticatedContext
I'm running into some trouble when trying to get a client context from PnP for an Azure AD app only connection.
I'm trying to follow This tutorial on how to create an application that would run on a ...
1
vote
1
answer
26
views
When I share an SharePoint website to external user, can I have it so they don't have to sign in?
I'm trying to share out a communications page and I'm sending an invite out but I would like it so they don't have to sign in, is this possible?
0
votes
1
answer
347
views
Access SharePoint Sites without sign-in account Office 365
I need to create scheduler in windows 10 to automatically open browser and my SharePoint sites on windows start up.
But condition in my browser right now doesn't have Office 365 session, so if the ...
0
votes
0
answers
79
views
No Longer Able to Authenticate to SharePoint
For several years, I have had a PowerShell script that has been able to connect to a SharePoint site just fine to read and work with a list. Last week we started getting this error:
Exception calling &...
1
vote
1
answer
2k
views
Authentication - Sharepoint App-only vs Azure AD App-Only
To do the authentication to SharePoint we can do either
Granting access using SharePoint App-Only
Granting access via Azure AD App-Only
I don't have any issues using the 1st method however some ...
0
votes
2
answers
2k
views
Connect to SharePoint Online from our console application when the "DisableCustomAppAuthentication is set to true"
We have a lot of .Net console applications which run inside windows on-premises servers, which connect to SharePoint online using ClientID & ClientSecret and perform some background tasks, as ...
1
vote
1
answer
671
views
Downloading library files options as external user
I'm a member of a SharePoint site as an external user and have access to a document library with lots of files/folders. I want all of this content downloaded for offline usage and sharing. I'm unable ...
0
votes
1
answer
283
views
Authenticate external user on SPO site to access REST API
I'm currently developing a new product for the company I work for and so far I'm using an App Registration with application permissions with SharePoint REST API access, and this works great but ...
1
vote
1
answer
82
views
Creating a secure .Net WebAPI for Sharepoint without AAD
I need to call my custom .Net 6 core web api from on-premise sharepoint 2019 webpart. The users are already being authenticated using on-premise Active Directory. I want to pass the authentication ...
0
votes
1
answer
477
views
Sharepoint 2016 .iqy file keep asking for login
One of my client is using sharepoint 2016 and he wants to export the sharepoint 2016 list to excel, so From couple of days, i'm facing issue of exporting sharepoint 2016 list to excel using there ...
0
votes
1
answer
871
views
Connect-PnPOnline : AADSTS50126: Error validating credentials due to invalid username or password
I have multi-factor authentication activated for my SharePoint Tenant. I am trying to connect to one of a site via release pipeline in Azure DevOps. I googled a bit and found that it might be possible ...
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 ...
1
vote
0
answers
902
views
How to obtain access token for SharePoint REST API v1.0
I need to call SharePoint REST API v1.0 endpoints, i.e. https://<any-tenant>.sharepoint.com/_api/web/lists
The caller is a multitenant ASP.NET web app, not related in any way to the tenant of ...
0
votes
3
answers
2k
views
Change legacy login method to modern - PowerShell - Sharepoint online
I have an authentication script below which is deemed as legacy and will soon be blocked by Microsoft.
How can I convert this script to use modern auth methods?
$site = https://mysite.sharepoint.com
$...
2
votes
0
answers
1k
views
SharePoint Server 2019 on-premise REST API Authentication
I need to read list data from SharePoint 2019 on-premise server, from an external server. I have tried calling the REST API but I am having trouble authenticating.
Things I have tried:
Calling REST ...
1
vote
1
answer
3k
views
- DisableCustomAppAuthentication Parameter not found on Sharepoint Command set-spotenant -DisableCustomAppAuthentication $false
I want to enable custom app authentication by disabling the tenant property -DisableCustomAppAuthentication on SharePoint online
I have tried the below commands but I am getting error parameter not ...
0
votes
0
answers
569
views
Java Code: SharePoint Graph API CompactToken parsing failed with error code: 80049217
SharePoint Graph API to generate an Access token.
URL to generate access token:
https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token
URL to download a file from SharePoint:
https://graph....
0
votes
0
answers
60
views
Randomly Prompted for User Credentials
SharePoint 2013 - 4 server farm with 2 WFE. We recently migrated all our users to a different domain while the farm remained in it's existing domain. We used the Move-SPUser command to migrate our ...
1
vote
1
answer
713
views
Authenticate to SharePoint online inside our console application if we have SharePoint app-only permissions disabled
On old created Office 365 tenants I use to authenticate to SharePoint online inside our C# console application using this code:
static void Main(string[] args)
{
string siteUrl = &...
0
votes
0
answers
1k
views
An error occurred while retrieving token from XML response: AADSTS90023: Invalid STS request
I have an issue with my AD account.
I tried using Python to access SharePoint list folder. But I am facing an issue, as given below.
This is error:
An error occurred while retrieving token from XML ...
1
vote
0
answers
138
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/...
1
vote
0
answers
257
views
Showing a SharePoint site inside a Windows Kiosk session
I would like to display a private SharePoint site on a "public" display inside my company. We're using a solution which requires me to use a Windows Kiosk session. Can I grant the "...
0
votes
0
answers
171
views
How do I access SharePoint 2019 on-premises list data to Native React mobile app(Not SPFX WebPart)?
I want to access SharePoint 2019 on premises list data and do CRUD operation on it into react native mobile app. How do I do this using REST API(Without sending user name and password - Single sign on ...
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
0
answers
363
views
How to determine user logged in and session not expired in SharePoint using JavaScript
I created a clientside application for SharePoint using javascript and jquery.
We use Rest API for CURD operation on SharePoint Data and config Idle Session Timeout for the inactive user.
After a user ...
2
votes
0
answers
48
views
Suddenly failing to authenticate against SharePoint online after the weekend April 10-11
After the weekend (10-11 of April) I suddenly started failing to authenticate against multiple Sharepoint Online tenants with an app hosted in Azure using an AppId and Secret.
Through fiddling with ...
0
votes
1
answer
361
views
Sharepoint 2019 - Adfs and NTLM - strange behaviour
We have a SharePoint 2019 on premise installation. We use ADF authentication to provide federate auth. To keep search working we also have NTLM enabled.
On our main web application, we have two zone, ...