Skip to main content

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
42 views

Sharepoint online authentication simply doesn't work

I have a method like this : string siteUrl = "https://yourtenant.sharepoint.com/sites/yoursite"; string userName = "[email protected]"; string password = &...
JL01's user avatar
  • 1,169
0 votes
0 answers
21 views

How to enable HTTP Basic Auth?

Due to having a reverse proxy in front of my SharePoint server, I would like to use HTTP Basic Auth instead of NTLM auth. (I know credentials are transmitted in plain then but I am using SSL and the ...
divB's user avatar
  • 103
0 votes
0 answers
388 views

External Microsoft users in Azure stuck in login loop when attempting to access SharePoint site

For the past 6 weeks or so we’ve had an issue with External users getting stuck in an MFA loop. At first, it appeared to be users that had a Microsoft account (Outlook.com or Hotmail.com). Then it was ...
jazzchamp's user avatar
0 votes
1 answer
409 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
47 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
63 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
131 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
265 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
1 answer
254 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
214 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,678
0 votes
2 answers
485 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
2 votes
0 answers
51 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
696 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
336 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
4k 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
45 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
758 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
280 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
87 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
1k 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
179 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
1 vote
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
28 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
459 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
131 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
  • 608
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
960 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
1 vote
1 answer
432 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
139 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
621 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
1k 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
606 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
1k 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
  • 446
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
582 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
79 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
930 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
156 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
304 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
186 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
395 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
55 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
423 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
263 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.8k
0 votes
1 answer
643 views

InvalidOperationException: Could not get algorithm from X509AsymmetricSecurityKey to make Client Context for SP 2016 in VS 2019

I'm trying to create a context to SP 2016 site with the help of a certificate using following piece of code: OfficeDevPnP.Core.AuthenticationManager othManager = new OfficeDevPnP.Core....
Sohail Shaikh's user avatar

1
2 3 4 5
15