Questions tagged [access-token]

The tag has no usage guidance.

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

SharePoint cannot get Access Token outside postman?

I need to get access token from SharePoint, In order to upload some files! I got access token from postman successfully, But when I try to do the same request with Javascript! const generateToken = ...
user avatar
0 votes
0 answers
36 views

Getting SharePoint access token - The resource from “” was blocked due to MIME type (“text/html”) mismatch

I was able to get SP access token with Postman, but I am not able to do the same with javascript (jquery). Postman call: Then, I copied the javascript code that postman generated and pasted it in ...
user avatar
1 vote
1 answer
24 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
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
1 answer
97 views

SharePoint Users access token through SPO application client id and secret

Is there any way to get particular user's SPO access token through client id and secret of the custom application registered inside SPO site collection ? I do not want to show the consent screen to ...
user avatar
0 votes
1 answer
261 views

Assign Member to Group via Powershell Graph API Call throws Request_BadRequest

Calling the following code: $uri = "https://graph.microsoft.com/v1.0/groups/[groupID]/members/`$ref" $body = (@{'@odata.id'='https://graph.microsoft.com/v1.0/directoryObjects/[memberID]'} | ConvertTo-...
user avatar
  • 1,001
1 vote
1 answer
715 views

Unable to get access token to sharepoint online addin using c# Console application

For the past few days, I tried all the ways possible. But couldn't get the access token for accessing Sharepoint online addin using c# console application. However I was able to get the access token ...
user avatar
1 vote
1 answer
28 views

Get Microsoft Graph AccessToken from SharePoint ContextToken in RER

I have registered Remote Event Receivers on my SharePoint list. I can receive remote events in my custom code. Is it possible to receive Microsoft Graph AccessToken from SharePoint ContextToken? I ...
user avatar