Questions tagged [authentication]

Validation the identity of the user, usually with username and password authentication.

Filter by
Sorted by
Tagged with
0 votes
1 answer
31 views

"Everyone except external users" - no results found

Until recently, I was able to grant access to all authenticated users in my tenant through the Everyone except external users role. This morning, I get a No results found message. Anything changed ...
Alex Filipovici's user avatar
0 votes
0 answers
35 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....
user3181876's user avatar
0 votes
0 answers
44 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 ...
Rogerb's user avatar
  • 21
0 votes
0 answers
73 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 ...
Vettel Hamilton's user avatar
0 votes
0 answers
145 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 ...
NightM0de's user avatar
0 votes
0 answers
122 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/...
Jay's user avatar
  • 1
0 votes
0 answers
20 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" ...
Steve B's user avatar
  • 7,488
0 votes
1 answer
190 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 ...
Marek Sarad's user avatar
  • 3,540
1 vote
2 answers
147 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?
susan's user avatar
  • 2,658
0 votes
2 answers
352 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 ...
microsoftdeveloperdesigner's user avatar
0 votes
0 answers
188 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 ...
mediaguru's user avatar
  • 101
0 votes
0 answers
15 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 ...
Jan Špička's user avatar
2 votes
0 answers
46 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 ...
Averroes's user avatar
  • 135
0 votes
2 answers
471 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 ...
Priscilla's user avatar
1 vote
0 answers
294 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 ...
John John's user avatar
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 -...
John John's user avatar
0 votes
2 answers
43 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 ...
Clive Long's user avatar
0 votes
0 answers
662 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 = "#######...
Dev Shiva's user avatar
0 votes
1 answer
222 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 ...
Prakash's user avatar
  • 666
1 vote
0 answers
81 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 ...
Nderon Hyseni's user avatar
0 votes
1 answer
765 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 ...
PKCS12's user avatar
  • 51
0 votes
0 answers
153 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.
Thai Hồ's user avatar
0 votes
1 answer
2k 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 ...
Hallemon's user avatar
1 vote
1 answer
27 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?
Helloworld123's user avatar
0 votes
1 answer
399 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 ...
Aliga's user avatar
  • 1
0 votes
0 answers
103 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 &...
ragenkagen's user avatar
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 ...
Saira's user avatar
  • 598
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 ...
John John's user avatar
1 vote
1 answer
801 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 ...
Jason Eades's user avatar
0 votes
1 answer
344 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 ...
DmitriyVdE's user avatar
1 vote
1 answer
115 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 ...
Talha Anwer's user avatar
0 votes
1 answer
527 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 ...
Lokesh Thakur's user avatar
0 votes
1 answer
911 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 ...
hellothere's user avatar
0 votes
1 answer
585 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 ...
Jackson's user avatar
  • 47
1 vote
0 answers
952 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 ...
user17653882's user avatar
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 $...
BennKingy's user avatar
  • 436
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 ...
cenarpo's user avatar
  • 21
2 votes
2 answers
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 ...
taps bops's user avatar
0 votes
0 answers
580 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....
Thomson Ignesious's user avatar
0 votes
0 answers
63 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 ...
Robbeh's user avatar
  • 89
2 votes
1 answer
793 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 = &...
John John's user avatar
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 ...
mrm algri007's user avatar
1 vote
0 answers
146 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/...
Nicholas DiPiazza's user avatar
1 vote
0 answers
275 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 "...
yhu420's user avatar
  • 121
0 votes
0 answers
176 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 ...
Nishant's user avatar
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['...
Revanth's user avatar
1 vote
0 answers
369 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 ...
m0st4f4's user avatar
  • 31
2 votes
0 answers
53 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 ...
tothepunchpoint's user avatar
0 votes
1 answer
388 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, ...
Hubert C's user avatar
0 votes
1 answer
219 views

How do I get Workflow Manager to automatically authenticate against my custom web service the same way it does against the built in SP REST API?

Related to this question. Also, full disclosure - I have only developed a very few custom web services, and have very little experience with .NET outside of SharePoint, so I am very unfamiliar with ...
Dylan Cristy's user avatar
  • 12.7k

1
2 3 4 5
15