Home

Methods to obtain SharePoint API access token?

%3CLINGO-SUB%20id%3D%22lingo-sub-1008856%22%20slang%3D%22en-US%22%3EMethods%20to%20obtain%20SharePoint%20API%20access%20token%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1008856%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI've%20been%20struggling%20with%20an%20authentication%20issue%20and%20would%20really%20appreciate%20any%20advice%20or%20suggestions%20from%20people%20who%20may%20have%20done%20it%20before.%20We%20are%20developing%20a%20web%20resource%20which%20is%20primarily%20intended%20for%20use%20on%20the%20Dynamics%20365%20Android%20app.%20We%20are%20hoping%20to%20add%20SharePoint%20document%20upload%20straight%20from%20the%20web%20resource%20to%20allow%20our%20technicians%20to%20add%20photos%20of%20assets%20without%20navigating%20away.%20The%20issue%20I%20am%20having%20is%20that%20although%20I%20am%20able%20to%20obtain%20the%20OAuth%20and%20access%20tokens%20on%20the%20web%20interface%20(via%20msal.js)%2C%20these%20methods%20don't%20work%20on%20the%20mobile%20app%20due%20to%20the%20fact%20that%20popups%20and%20redirects%20are%20disabled.%20What%20options%20do%20I%20have%20for%20obtaining%20an%20access%20token%20that%20will%20allow%20me%20to%20use%20either%20the%20SharePoint%20REST%20API%20or%20MS%20Graph%20API%20without%20redirection%20or%20popups%3F%3C%2FP%3E%3CP%3EI%20would%20really%20appreciate%20any%20help%20with%20this.%3C%2FP%3E%3CP%3EKind%20regards%3CBR%20%2F%3ESam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1008856%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
sam-dn
Occasional Visitor

Hi all,

I've been struggling with an authentication issue and would really appreciate any advice or suggestions from people who may have done it before. We are developing a web resource which is primarily intended for use on the Dynamics 365 Android app. We are hoping to add SharePoint document upload straight from the web resource to allow our technicians to add photos of assets without navigating away. The issue I am having is that although I am able to obtain the OAuth and access tokens on the web interface (via msal.js), these methods don't work on the mobile app due to the fact that popups and redirects are disabled. What options do I have for obtaining an access token that will allow me to use either the SharePoint REST API or MS Graph API without redirection or popups?

I would really appreciate any help with this.

Kind regards
Sam

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies