Use the same Auth Token for multiple apps

Lee McArthur 1 Reputation point
2021-03-06T10:49:39.71+00:00

Hi We have 2 apps registered on Azure AD, one gives access to Office 365 stuff and the other is Business Central. In a 3rd party application I am able to log in via either of these 2 apps, but if I log in via the Business Central one I don't have access to Office 365 APIs and if I log in with the other one I can't query the BC Sandbox. Is it possible to log in via one app, store the Auth Token (which we do anyway) and then use this Auth Token to sign into the other app? So that the user doesn't need to log in twice? Whats the best way to go about this?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,004 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,746 Reputation points Microsoft Employee
    2021-03-08T18:05:53.997+00:00

    Hello @Lee McArthur , thank you for reaching out. This is not possible as the access-tokens issued for a specific resource for which the request has been sent. Hence access-tokens are always app-specific. From a single app, if you want to access different apps, then from your app you need to send a separate request for each of the other two apps (Office 365 and Business Central) and fetch two separate access-tokens and use them separately to gain access to those apps.

    Hope this helps.

    Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as an Answer; if the above response helped in answering your query.

    1 person found this answer helpful.