Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [authentication]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Teams' app data authentication

We have a SPFX team's app that consumes the on-premises data. Our Org is using ping authentication and single sign on. When we load the SPFX app in browser and browser it is using the browser info to ...
user avatar
1 vote
1 answer
46 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 ...
user avatar
0 votes
0 answers
44 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 ...
user avatar
1 vote
1 answer
22 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 ...
user avatar
0 votes
1 answer
44 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 ...
user avatar
0 votes
1 answer
187 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 ...
user avatar
0 votes
1 answer
137 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 ...
user avatar
  • 47
0 votes
0 answers
65 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 ...
user avatar
0 votes
3 answers
83 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 $...
user avatar
  • 396
0 votes
0 answers
26 views

Enable SharePoint 2019 On prem Google Authentication

First of all, sorry for my English! I have a site made in SharePoint 2019 On premises, and I need to enable Google Authentication, for external people. I have found this article, but it refers to ...
user avatar
0 votes
0 answers
25 views

How to Authenticate to Sharepoint Online Programatically In C#?

i am unable to authenticate to SharePoint online niether CSOM or AppOnly with clientid/cientSecret (appregnew.aspx,appinv.aspx) CSOM connection shows me the sign in username or password isnt one of ...
user avatar
  • 1
1 vote
0 answers
272 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 ...
user avatar
  • 11
1 vote
1 answer
547 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 ...
user avatar
0 votes
0 answers
195 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....
user avatar
0 votes
0 answers
31 views

How to bypass Authentication and Enabling Cookies requirements for mobile (IOS) PowerApps form

So I my company has a basic PowerApps form for users to be able to fill out and submit information. One of the main requirements for this is for users to primarily be able to access and complete the ...
user avatar
  • 139
0 votes
0 answers
16 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 ...
user avatar
  • 89
1 vote
1 answer
117 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 = &...
user avatar
  • 2,234
0 votes
0 answers
162 views

SharePoint 2013 and ADFS - Redirect-URL is lost after returning from AD FS Page

we have a Windows Client Application which uses CEF-BrowserControl to display our SharePoint 2013 Portal (NewForm, EditForm,...). Sometimes when the application navigates to a Url of the SharePoint-...
user avatar
  • 1
0 votes
0 answers
20 views

Login O365 with Linkedin

We just figure out that Azure AD B2C doesn't allow login on O365 Apps ; Microsoft seems not to be intended for B2C in Office 365 and suggests to take a look at B2B feature.. Our goal is make a ...
user avatar
0 votes
0 answers
14 views

Sharepoint API - 401 while authenticating ANT account with full control

We are trying to achieve programmatic access from a Python3 script, to a Sharepoint site that we own. On our SP site, we have given full control to a ANT\robot-system-account system account. The ...
user avatar
  • 101
0 votes
0 answers
213 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 ...
user avatar
0 votes
0 answers
43 views

Latest example of how to authentication to SharePoint online CSOM using Microsoft.SharePointOnline.CSOM version 16.1.21312.12000

I used to login to SharePoint online using this c# code snippet: var sharepointOnlineCredentials = new SharePointOnlineCredentials(username, securePassword); var httpHandler = new HttpClientHandler(); ...
user avatar
1 vote
0 answers
60 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/...
user avatar
1 vote
0 answers
64 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 "...
user avatar
  • 121
0 votes
0 answers
94 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 ...
user avatar
0 votes
1 answer
924 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'] = 'abs@xyz.com' config['...
user avatar
1 vote
0 answers
157 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 ...
user avatar
  • 31
2 votes
0 answers
37 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 ...
user avatar
0 votes
1 answer
133 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, ...
user avatar
0 votes
1 answer
39 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 ...
user avatar
  • 12.1k
0 votes
1 answer
279 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....
user avatar
0 votes
1 answer
65 views

What permissions are required to invoke a custom WCF web service deployed to the ISAPI folder (exposed through /_vti_bin/)?

Related / follow up to this question. Because a site's email settings (SMTP server, "from" address, etc.) are not available through any client-side APIs, I created a mini WCF web service ...
user avatar
  • 12.1k
1 vote
0 answers
162 views

Sharepoint 2019 on-premises authentication against external sso provider (SAML1.0 or OIDC 1.0)

We have to authenticate Sharepoint 2019 on-premise users against an external oidc provider which provides OpenID Connect 1.0 and SAML 2.0. As far i know Sharepoint 2019 doesn't support OIDC and only ...
user avatar
  • 11
0 votes
2 answers
120 views

Sharepoint 2016 service account change

Some years ago I created this simple architecture: Virtual machine A: sharepoint 2016 on premises - single server in farm Virtual machine B: sharepoint database is MS SQL Server (Version 12.0.6433.1) ...
user avatar
  • 73
0 votes
4 answers
280 views

Authentication with SharePoint Online in Microsoft 365 and simple console application

I need your help with my small application. I need to create easy console application which will sign into SharePoint Online and download some documents from library. When I am doing this on older ...
user avatar
  • 25
1 vote
2 answers
45 views

REST API: Send Auth only for the one request

I'm working on a little SP On-Premises 2016 project. I have to make several request to different Site-Collections in the farm. I'm making those requests with an Ajax-Call inside a Script-Editor ...
user avatar
2 votes
1 answer
590 views

What the difference between these endpoint to authenticate RST2.srf vs extSTS.srf?

We use two endpoints https://login.microsoftonline.com/extSTS.srf and https://login.microsoftonline.com/RST2.srf to authenticate. Can anybody explain to me the difference between them?
user avatar
1 vote
0 answers
167 views

Getting ClientContext in SharePoint CSOM

I am developing several Azure Functions using the CSOM API for SharePoint. The main functionality is creating PDF's for various purposes and uploading these to SharePoint with CSOM. I have followed ...
user avatar
1 vote
1 answer
154 views

Initialising spfxContext for a different user in pnp/sp

I'm trying to build an spFx app, that uses a different user to access lists and libraries than the logged in user. The logged in user won't have the permissions to access the lists directly but only ...
user avatar
0 votes
1 answer
58 views

SharePoint Online Active Authentication with Two Factor Authentication

Is there a way to make the implementation suggested by Vitaly Lyamin, working with Two Factor Authentication? https://docs.microsoft.com/it-it/archive/blogs/sharepointdevelopersupport/sharepoint-...
user avatar
1 vote
0 answers
332 views

SharePoint Online Authentication Types how do they work

I am trying to figure out how the different authentication types in SharePoint online work. I am doing this research because I want check the impact of disabling legacy authentication in my tenant. ...
user avatar
  • 433
0 votes
1 answer
258 views

SharePoint online authantication when using SharePointOnlineCredentials

When I connect to SharePoint online using SharePointOnlineCredentials what type of authentication am I using? I don't think it is oauth. Also the legacy authentication is being discontinued by MS. So ...
user avatar
  • 433
0 votes
1 answer
36 views

Migrated form Sharepoint to SP Online Authentication fails after migration

We are migratetd to Sharepoint online and now my code do not work. the Authentication fails and I becom eroor and no the list of items in my API or i can't save a new Item. public class ...
user avatar
  • 1
1 vote
1 answer
2k views

Modern Authentication, do we need to change something in C# CSOM?

I heard that MS will use only "modern authentication" later. We have some apps on our servers that connect to SharePoint Online and use CSOM. Will this code-snippet continue to work, or we ...
user avatar
  • 1,581
0 votes
0 answers
343 views

Unable to map SharePoint folder or access it via an Excel macro unless SharePoint is open in Internet Explorer

I posted a similar question on Stack Overflow a while ago, but didn't get any responses so far so thought I'd try here. Basically, I'm using an Excel macro to download a few files stored in a ...
user avatar
  • 101
0 votes
1 answer
43 views

is it possible to add an oauth2 based user authentication provider to sharepoint server

I should start by saying this is the first time i'm dealing with sharepoint user auth. One of my customer requires users from different identity providers to be able authenticate their users to ...
user avatar
0 votes
1 answer
707 views

SharePoint CSOM with .net standard | Credentials vs App

I am trying to understand how the authentication works using a .NET core application to O365. The article here describes it: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/using-csom-for-...
user avatar
  • 53
1 vote
1 answer
1k 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. ...
user avatar
0 votes
0 answers
243 views

Making OAuth-authenticated cross-domain REST API calls to 2016 on-prem

My question is exactly this question, but specifically this part: how to use OAuth in SP 2016 on-prem from JavaScript? Which authentification endpoint must be used? Which flows are supported? We are ...
user avatar
  • 101
1 vote
1 answer
614 views

Powershell CSOM with PnP AuthenticationManager: flush credentials

I've been using an OfficeDevPnp.Core.AuthenticationManager for a long time, in order to support MFA for PowerShell scripts targeting SharePoint Online with CSOM. For my current task, DEV is on tenant-...
user avatar
  • 304

1
2 3 4 5
14