kirby-oauth
kirby-oauth copied to clipboard
Document redirect URL schema
Hey there,
thanks for this lovely plugin. I'm trying to make it work with Nextcloud as the OAuth Provider (via the GenericProvider
from PHPLeague). Unfortunately, in the Nextcloud OAuth implementation I need to set the redirect URL when I create the OAuth App within Nextcloud.
In the readme.md I did not find any documentation about the structure of the redirect URL, which needs to be used, so that the plugin can login the Kirby user correctly. By looking at the code I assumed it would be https://mykirby.com/oauth/myprovider/login
, but this does not seem to work for me.
EDIT: Eventually, I figured out, that it's /oauth/login/myProvider
. I still think it would be good, to have this in the readme.md
.
Thanks,
Oh, that’s right! It’s /oauth/login/PROVIDER_ID
where PROVIDER_ID
is the key of the config option in config.php
. We’ll definitely need to add this to the readme.