cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jorenchristiaen
Helper I
Helper I

how to get refresh token from a microsoft access token

I got an access token from microsoft to be able to access the webapi of my dynamics 365 application. This token expires in 10 min but they don't give me a refreshtoken to renew it. How can i make that access stay so that users can add prospects using my outlook add in?

1 ACCEPTED SOLUTION

Accepted Solutions
cchannon
Super User
Super User

I think this is what you're looking for:


OfficeDev/Outlook-Add-in-SSO: The sample implements an Outlook add-in that uses Office's SSO system ...

 

The example below is perfect for your use case because:

  • It is authenticating from an outlook add-in to an AAD-authenticated service
  • If an SSO token is already available it does not prompt the user to log in
  • If a token is not already available, it prompts sign-in, meaning you have a full access token and won't need to refresh it until it expires according to AAD policies

View solution in original post

1 REPLY 1
cchannon
Super User
Super User

I think this is what you're looking for:


OfficeDev/Outlook-Add-in-SSO: The sample implements an Outlook add-in that uses Office's SSO system ...

 

The example below is perfect for your use case because:

  • It is authenticating from an outlook add-in to an AAD-authenticated service
  • If an SSO token is already available it does not prompt the user to log in
  • If a token is not already available, it prompts sign-in, meaning you have a full access token and won't need to refresh it until it expires according to AAD policies

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (4,876)