Using State Parameter in Azure AD B2C Susceptible to Open Redirect Vulnerability?

白昼怎懂夜的黑 提交于 2019-12-02 00:32:58

State parameter can be used to control redirection AFTER the app is launched again. The token will only go one place (as specified by the redirect URL). After that, the app is securely in control of the token, and can look at the state parameter to determine whether the user/token should be going to a different place. This is useful in various scenarios, like in the case where you are creating a news based app, and you need to know which article they attempted to sign in from. They will then be redirected back to that same article so that they can continue reading.

The State parameter is opaque and the app should validate when it gets back from the authorization server (e.g. encrypted, signed, etc.).

from Omer Iqbal's comment

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!