Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add state parameter for oauth2 #1512

Merged
merged 1 commit into from
May 13, 2020
Merged

fix: add state parameter for oauth2 #1512

merged 1 commit into from
May 13, 2020

Commits on May 11, 2020

  1. fix: add state parameter for oauth2

    state parameter is recommended with oauth2 authentification
    to mitigate CSRF attacks (see [1]).
    hydra [2] will throw the following error message if state is
    missing:
    
      description="The state is missing or has less than 8 characters and is therefore considered too weak" error=invalid_state hint="Request
     parameter \"state\" must be at least be 8 characters long to ensure sufficient entropy."
    
    [1]: https://auth0.com/docs/protocols/oauth2/oauth-state
    [2]: https://www.ory.sh/hydra/
    
    Signed-off-by: Samuel Trégouët <samuel.tregouet@gmail.com>
    stregouet committed May 11, 2020
    Configuration menu
    Copy the full SHA
    6ff6d21 View commit details
    Browse the repository at this point in the history