mantisbt-plugins / GoogleOauth

Google Oauth 2.0 function for mantisBT.
Other
9 stars 16 forks source link

error after plugin install and attempting to login #16

Closed galileomd closed 2 years ago

galileomd commented 6 years ago

got plugin installed and successfully authed by Google OAuth. on redirect back to my site, i get:

This site can’t be reached The webpage at http://mydomain.com/plugins/GoogleOauth/pages/redirect.php?code=redacted might be temporarily down or it may have moved permanently to a new web address. ERR_CONTENT_DECODING_FAILED

looks like redirect.php has a null $_SESSION['access_token']?

galileomd commented 6 years ago

looks like you need $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; somewhere up on top of redirect.php when the user account does not exist in the DB