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

How to integrate DokuWiki with Authelia? #142

Closed
arbdevml opened this issue Apr 21, 2023 · 2 comments
Closed

How to integrate DokuWiki with Authelia? #142

arbdevml opened this issue Apr 21, 2023 · 2 comments

Comments

@arbdevml
Copy link

Hello.
I am trying to integrate DokuWiki with Authelia.

https://www.authelia.com/
Authelia is an open-source authentication and authorization server and portal fulfilling the identity and access management (IAM) role of information security in providing multi-factor authentication and single sign-on (SSO) for your applications via a web portal. It acts as a companion for common reverse proxies.

Authelia configuration.yml
Add into the section of "clients"

      - id: dokuwiki
        description: dokuwiki
        secret: '$plaintext$dokuwiki_client_secret'
        public: false
        authorization_policy: one_factor
        redirect_uris:
            - https://dokuwiki.example.com/doku.php
        scopes:
            - openid
            - profile
            - groups
            - email
        userinfo_signing_algorithm: none

Installed on the administration panel "Extension Manager"
plugins:

  • oAuth Plugin by Andreas Gohr
  • oAuthKeycloak Plugin by Naoto Kobayashi

Dokuwiki configuration:

Basic
baseurl Server URL: https://dokuwiki.example.com

Authentication
authtype Authentication backend: oauth

Oauthkeycloak
Client ID: dokuwiki
Cient Secret: dokuwiki_client_secret
OpenID Connect Auto Discovery URL:
https://authelia.example.com/.well-known/openid-configuration

Try to sso log in.

redirect to
https://dokuwiki.example.com/doku.php?error=invalid_state&error_description=The+state+is+missing+or+does+not+have+enough+characters+and+is+therefore+considered+too+weak.+Request+parameter+%27state%27+must+be+at+least+be+8+characters+long+to+ensure+sufficient+entropy.&state=

Authelia log:
error msg
Authorization Request failed with error:
The state is missing or does not have enough characters
and is therefore considered too weak.
Request parameter 'state' must be at least be 8 characters
long to ensure sufficient entropy

The parameter "state" is empty.

@splitbrain
Copy link
Member

Please see #113 for requesting new services. Issues with specific services should be reported in their bug trackers.

@arbdevml
Copy link
Author

Thank you very much for your reply.
Issue from DokuWiki plugin because the parameter "state" is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants