Skip to content
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

InvalidAuthorizationStateException #145

Open
ittls opened this issue Mar 14, 2024 · 0 comments
Open

InvalidAuthorizationStateException #145

ittls opened this issue Mar 14, 2024 · 0 comments
Labels

Comments

@ittls
Copy link

ittls commented Mar 14, 2024

Issue Description

Hello, after I try to verify myself with my OAuth provider, I get the following error message in the Dokuwiki:

OAuth\OAuth2\Service\Exception\InvalidAuthorisationStateException:
An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the oauth plugin.
More info has been written to the DokuWiki error log.

Unfortunately, the Dokuwiki log does not really provide me with much information:

2024-03-14 11:34:26OAuth\OAuth2\Service\Exception\InvalidAuthorizationStateException: <path>/lib/plugins/oauth/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/AbstractService.php(252)
    #0 <path>/lib/plugins/oauth/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/AbstractService.php(103): OAuth\OAuth2\Service\AbstractService->validateAuthorizationState('')
    #1 <path>/lib/plugins/oauth/Adapter.php(231): OAuth\OAuth2\Service\AbstractService->requestAccessToken('<token>...', '')
    #2 <path>/lib/plugins/oauth/OAuthManager.php(68): dokuwiki\plugin\oauth\Adapter->checkToken()
    #3 <path>/lib/plugins/oauth/OAuthManager.php(40): dokuwiki\plugin\oauth\OAuthManager->loginByService()
    #4 <path>/lib/plugins/oauth/auth.php(45): dokuwiki\plugin\oauth\OAuthManager->continueFlow()
    #5 <path>/inc/auth.php(102): auth_plugin_oauth->trustExternal('', '', false)
    #6 <path>/inc/init.php(238): auth_setup()
    #7 <path>/doku.php(38): require_once('/var/www/vhosts...')

I'm trying to use the oauth generic plugin, which was configured with the information i got from this site.

However, i now believe that the error lies in the plugin and not in my configuration.

Could you help me narrow down the error?

@ittls ittls added the bug label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant