question

DhoddiTarun-0774 avatar image
0 Votes"
DhoddiTarun-0774 asked ·

Multiple Azure AD web apps Authentication

we created 2 sets of applications using azure ad apps, 1 set(only web app-Dashboard implemented using azure B2B active-directory-dotnet-graphapi-b2bportal-web) and another set(web app with web API web app which displays data from the web api using Microsoft identity as mentioned in the link)
active-directory-dotnet-webapp-webapi-openidconnect


The 2 applications were working as expected. Now we have a requirement to implement that the applications would not ask for the sign In if anyone the applications logged in the browsers.

Currently, if the user clicks on the Sign In button it was automatically logged to the user if any one of the applications was logged in the browser.

Can anyone suggest how can we achieve the same? Any references, suggestions or samples will helpful.


azure-webappsazure-ad-b2b
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

soumi-MSFT avatar image
0 Votes"
soumi-MSFT answered ·

@DhoddiTarun-0774, The ask is really not clear. if you are trying to implement single signon for your OAuth apps, and if you have used either adal or msal libraries to write the code, the SSO feature should be available automatically. The sample that you have used uses Open ID Connect as the protocol which issues access tokens and refresh token to the user who has authenticated to the app. In the same browser if another app is accessed, the same user would be automatically logged in because the browser maintains the session of that user. The session for that user would be maintained until either the browser is closed or the access token expires (after 1 hour as set by default) and the refresh token is not used.

Do let me know if this explanation doesnt help, do let share your exact requirement, so that we can help further.

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 Answer; if the above response helped in answering your query.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@soumi-MSFT Thanks for the reply. updated the question with the azure b2b solution link in Github. I already mentioned that, if the user click on the Sign In button, the application was logging without asking for the credentials since the user was already logged in the browser for another azure ad app.

0 Votes 0 · ·