![]() ![]()
Implement a fallback authentication system #Salesforce platform app builder register webacess how toFor information about how to do this, see Exchange Online: How to enable your tenant for modern authentication. If you are working with an Outlook add-in, be sure to enable Modern Authentication for the Microsoft 365 tenancy. Office will cache the access token (or request a new one if it expired.) This will help to avoid accidentally leaking the token from your add-in. Always call getAccessToken when you need an access token. Never cache or store the access token in your client-side code. Requirements and Best Practices Don't cache the access token ![]() Because the access token contains identity claims, the server can store information associated with the user's identity such as the user's preferences. Optionally, the add-in can use the token as an access token to make authenticated HTTPS requests to APIs on the server-side.You can use it as an identity token to parse and examine claims about the user, such as the user's name and email address. The token is both an access token and an identity token. ![]() The Office host application returns the access token to the add-in as part of the result object returned by the getAccessToken call.Office will cache the token on your behalf so that future calls to getAccessToken simply return the cached token. The Microsoft identity platform returns the access token to Office.The Office host application requests the access token from the Microsoft identity platform for the current user.If this is the first time the current user has used your add-in, they are prompted to consent.Office redirects to the Microsoft identity platform to complete the sign-in process. If the user is not signed in, the Office host application opens a dialog box for the user to sign in.If the user is already signed in to Office, the Office host will return the access token with the claims of the signed in user. #Salesforce platform app builder register webacess code
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |