Share via

how to do a sso with microsoft and get back a access token in asp.net mvc?

Mateo Skenderi 0 Reputation points
2023-07-13T21:46:47.3633333+00:00

I have a asp.net mvc application. Now I want to add a sso with Microsoft. So there will be a button which offers the user the possibility to authenticate with Microsoft account. Upon clicking the button I want the user to login with a Microsoft account and then retrieve an access token which I can use for calling Microsoft Graph Api.

Developer technologies | ASP.NET | ASP.NET Core
Microsoft Security | Microsoft Graph
Developer technologies | ASP.NET | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 83,741 Reputation points
    2023-07-14T00:52:51.2966667+00:00

    You are probably looking for azure b2c

    https://learn.microsoft.com/en-us/azure/active-directory-b2c/overview

    if the Microsoft account are defined in your azure ad then it’s Microsoft identities openid support

    https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/auth-oidc

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.