cloudflare / nginx-google-oauth

Lua module to add Google OAuth to nginx
https://blog.cloudflare.com/
MIT License
429 stars 100 forks source link

Prevent error when visiting "/_oauth" without state #46

Open zakcutner opened 5 years ago

zakcutner commented 5 years ago

Before, if the user was already authenticated, visiting "/_oauth" without a "state" parameter would cause an exception. Automatically redirect to the root instead if the state parameter is not set.