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
  • Brite
  • 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. App Packaging & Development
  3. How to Enforce Full Logout When Using Cloudron Proxy Auth (Next.js Custom App)

How to Enforce Full Logout When Using Cloudron Proxy Auth (Next.js Custom App)

Scheduled Pinned Locked Moved App Packaging & Development
4 Posts 3 Posters 44 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.
  • saikarthikS Offline
    saikarthikS Offline
    saikarthik
    wrote last edited by
    #1

    I'm using a custom Next.js app deployed on Cloudron and leveraging Cloudron's proxy auth for authentication. The challenge I'm facing is that when users log out of my app, they are not fully logged out of the Cloudron SSO session. As a result, they can get automatically logged back in without re-entering credentials because the Cloudron dashboard session is still active.

    I tried to find a global logout endpoint for Cloudron to fully end the session but didn't have success with it. I'm looking for guidance on whether there's a proper Cloudron-supported way to handle a full logout (so that users really have to log in again) or if there's a recommended way to configure session timeouts or customize the login flow to avoid automatic re-logins.

    1 Reply Last reply
    0
    • robiR Offline
      robiR Offline
      robi
      wrote last edited by
      #2

      For now it seems to require using an incognito browser until they add the feature.

      Conscious tech

      1 Reply Last reply
      1
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote last edited by
        #3

        Not implemented (enabled) yet because we haven't found an app that supports this properly . Does next.js support RP initiated logout? Which library are you using?

        1 Reply Last reply
        1
        • saikarthikS Offline
          saikarthikS Offline
          saikarthik
          wrote last edited by saikarthik
          #4

          This is a custom app based I am packaging on react-admin. I am currently just redirecting the user to {app}/logout on clicking logout. Any way to enable it for just the custom app?

          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