-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error Message "OAuth: State not found in session" with Nextcloud 22 #2
Comments
Hmm, when you return from nextcloud to DokuWiki after the login there. What's the URL you see? I seem to remember an issue on the old oauth plugin about nextcloud passing an empty state parameter... |
@splitbrain uh, you're right,
Where would I start digging to fix this? |
I found the issue you mentioned, but the resolution would be to write a custom adapter/service plug-in instead of using |
Well, since this is a non-standard behavior (an empty string state is not the same as a non-set state) I would argue indeed that it should be fixed in a NextCloud specific plugin and not in the generic class. The fix should be relatively simple by overriding checkToken() and removing an empty state from the $INPUT object before calling the parent. |
see cosmocode/dokuwiki-plugin-oauth#113 if you need help |
@knobhead, @splitbrain I run into the same problem and thus after studying available documentation I wrote the Nextcloud OAuth plugin based on theis OAuthgeneric one. |
I have the same issue when using Authentik with OIDC. Why not implement the handling of an empty state in the generic plugin? |
Any ideas for why access must be re-granted after logging out of Dokuwiki (when using nextcloud oauth)? |
Just came across this issue with Authentik. |
@knobhead Were you able to set up Dokuwiki authorization through Nextcloud? |
Hi there,
thanks a lot for your recent work on dokuwiki-plugin-oauth and
dokuwiki-plugin-oauthgeneric 👍 Hope y'all got into the new year well!
I think I'm pretty close to get DW OAuth2 integration with my Nextcloud 22 Server up and running.
But right now I'm stuck at with this error message when I try to log-in into DW via OAuth:
conf/users.auth.php
DokuWiki Debug information
DokuWiki OAuth/OAuthGeneric plugin config in
conf\local.php
:Nextcloud OAuth client configuration
Environment
2020-07-29 "Hogfather"
oauth
is from 2021-12-19oauthgeneric
is from 2021-12-05Some other things I've checked:
fixperms.php
)php
procesReferences
Since I found it quite hard to piece together the necessary puzzle pieces, here's some references that pointed me in the (hopefully) right direction:
As soon as I have this up and running I'd happily contribute a little "How-to Nextcloud DokuWiki OAuth Integration" tutorial somewhere. With a little help I might try to build a nextcloud-specific connector plug-in for
dokuwiki-oauth
.Thanks for any hints! If you need any more information for debugging or want me to try something out, please let me know.
The text was updated successfully, but these errors were encountered: