I try to understand how the integration we are using with OpenID works. I have read documents and different websites, but I feel that something escapes me related with SSO - I didn´t find so much information about this. If you could help me understand these doubts of concept, I would be very grateful.
Here's the context: WebApp-OpenID using SSO - Azure AD with no permissions or roles for users.
Please, correct me if I am missing something.
Many Thanks
I tried to reproduce the same in my environment and got the results like below:
I created an Azure AD Application:
To generate the Authorization code, I used the below endpoint:
https://login.microsoftonline.com/TenantID/oauth2/v2.0/authorize?
client_id=ClientId
&response_type=code
&redirect_uri=RedirectUri
&response_mode=query
&scope=scope
&state=12345
While generating the code, I got the sign-in prompt like below:
The Authorization code generated successfully:
To generate the Access token and ID token I used the below parameters:
https://login.microsoftonline.com/TenantID/oauth2/v2.0/token
client_id:ClientID
client_secret:ClientSecret
grant_type:authorization_code
scope:scope
code:code
redirect_uri:RedirectUri
When I decoded the Access token, I am able to see the user information like below:
How SSO with OpenID and Azure AD works?
If you are already logged in with a valid session, then there is no need to input credentials. SSO capabilities are stored at the browser's level while having an authenticated valid session.
Reference: