zorn-v / nextcloud-social-login

GNU Affero General Public License v3.0
198 stars 137 forks source link

Github OAUTH reporting invalid address #363

Closed Merith-TK closed 1 year ago

Merith-TK commented 2 years ago

https://theory-of-magic.merith.xyz/apps/sociallogin/oauth/GitHub

is what I have my github oauth2 app pointing to, which is what the documentation says to point it to

after logging in with GH it redirects me here https://theory-of-magic.merith.xyz/apps/sociallogin/oauth/GitHub?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch

image

zorn-v commented 2 years ago

Did you try ?

Some users may get strange reply(Callback) url error from provider even if you pasted the right url, that's because your nextcloud server may generate http urls when you are actually using https. Please set 'overwriteprotocol' => 'https', in your config.php file.

README.md