cosmocode / dokuwiki-plugin-oauth

Generic oAuth1 and oAuth2 plugin for DokuWiki
http://www.dokuwiki.org/plugin:oauth
30 stars 78 forks source link

How to integrate DokuWiki with Authelia? #142

Closed arbdevml closed 1 year ago

arbdevml commented 1 year ago

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:

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 commented 1 year ago

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

arbdevml commented 1 year ago

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