Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Dokuwiki
  3. OIDC token not refreshed

OIDC token not refreshed

Scheduled Pinned Locked Moved Solved Dokuwiki
11 Posts 3 Posters 965 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nebulonN Offline
    nebulonN Offline
    nebulon
    Staff
    wrote on last edited by
    #2

    That is to be expected, as Cloudron does not implement OAuth refresh tokens, since it not a full OAuth provider.
    I guess the fix needs to happen upstream to not show that error, but just log the user out like a normal session timeout.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kahrpatrick
      wrote on last edited by
      #3

      Alright I see. Either way this is not an ideal solution as users have to frequently re-login.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kahrpatrick
        wrote on last edited by
        #4

        After using Dokuwiki with the current OIDC integration for a while I realize it is hardly usable in practice. Due to the short validity period of an access token, it frequently happens that pages cannot be saved as the session already timed out while working on a page. Is there any way to increase the session duration?

        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #5

          We currently use dokuwiki-plugin-oauth with dokuwiki-plugin-oauthgeneric this may have been the wrong choice then for OpenID. Have to investigate if the dokuwiki-openid plugin can be made to work by now.

          1 Reply Last reply
          0
          • nebulonN nebulon marked this topic as a question on
          • K Offline
            K Offline
            kahrpatrick
            wrote on last edited by
            #6

            Yes, anything that would allow to set a longer session timeout would already help a lot. Thanks for looking into this.

            1 Reply Last reply
            0
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #7

              In the meantime, can you try to set this value very high (it is in seconds) at conf/dokuwiki.php:

              $conf['auth_security_timeout'] = 900;
              

              You can change that file with the filemanager, no need to restart the app afterwards.

              K 1 Reply Last reply
              0
              • nebulonN nebulon

                In the meantime, can you try to set this value very high (it is in seconds) at conf/dokuwiki.php:

                $conf['auth_security_timeout'] = 900;
                

                You can change that file with the filemanager, no need to restart the app afterwards.

                K Offline
                K Offline
                kahrpatrick
                wrote on last edited by
                #8

                @nebulon Thanks! Will do.

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #9

                  @kahrpatrick we submitted a PR at https://github.com/cosmocode/dokuwiki-plugin-oauth/pull/153 . But maybe now we look into refresh token support in our code.

                  1 Reply Last reply
                  0
                  • nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote on last edited by nebulon
                    #10

                    The next Cloudron release will contain support for refresh tokens, so this issue will go away then. Until then setting the auth_security_timeout to a high value will mitigate the issue.

                    K 1 Reply Last reply
                    0
                    • nebulonN nebulon has marked this topic as solved on
                    • K kahrpatrick has marked this topic as solved on
                    • nebulonN nebulon

                      The next Cloudron release will contain support for refresh tokens, so this issue will go away then. Until then setting the auth_security_timeout to a high value will mitigate the issue.

                      K Offline
                      K Offline
                      kahrpatrick
                      wrote on last edited by
                      #11

                      @nebulon Thank you very much!

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search