oauth 2.0 - Why would OAuth2 authorization code be given without displaying the login UI? -


Consider the sample OAuth2 flow: We go through OAuth2 authentication for a web server app. Sending authorization code request - The user is presented with the "Login" UI. After that he exchanges credentials - we get the authorization code and it is used for access / refresh token. Suppose that its token has a commercial reason to re-authenticate the user before the expiration is over.

For this - the authorization code request is reissued - although at present this "login" UI and new authorization code is given without user input. Why is it like this?

Why does this happen? Is it stored in some state customer's browser?

This means that the OAuth server thought that the user has already logged in and re-authenticated Can be left. Therefore, some states may be cached on your browser for login session.

If the Oath Server supports OpenID Connect, try adding the 'prompt = login' parameter to the authorization request and you will always see the login UI. See "" for details.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -