Skip to content

Keep people signed in and brand Casdoor's sign-in pages - #1446

Merged
ArnobKumarSaha merged 2 commits into
masterfrom
arnob-remember
Dec 1, 2026
Merged

ArnobKumarSaha merged 2 commits into
masterfrom
arnob-remember

Conversation

@ArnobKumarSaha

@ArnobKumarSaha ArnobKumarSaha commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

People were sent back to the sign-in page every hour or two. Three causes:

  1. iam's session ended after 30 minutes unused.
  2. The Casdoor app had enableAutoSignin off, so Casdoor showed a "Continue with " button instead of returning to the app.
  3. Casdoor kept its sessions as files in the container's /tmp, which every container restart wiped.
  • ace: settings.iam.session.idleTimeout (6h) and absoluteTimeout (24h) are written to b3's [iam] section. Needs https://github.com/appscode-cloud/b3/pull/1772.
  • casdoor, akp-prereqs, trustconsole, kubepatch: applications are seeded with enableAutoSignin: true and cookieExpireInHours from a new rememberHours value (360 = 15 days). Casdoor's /tmp is now an emptyDir.

The Casdoor changes are seed data (initDataNewOnly), so existing installs need a one-off update:
UPDATE application SET enable_auto_signin = true, cookie_expire_in_hours = 360 WHERE owner='admin' AND name='akp';

  • Branding: applications are seeded with title, logo, favicon and footerHtml (© AppsCode Inc.), so the sign-in page no longer shows Casdoor's logo or "Powered by Casdoor". ace takes the logo and favicon from platform-ui (/id/icons/appscode.svg, /id/favicon.ico); akp-prereqs, trustconsole and kubepatch default to cdn.appscode.com. Titles: AppsCode KubeDB Platform / Trust Console / KubePatch.

- ace: settings.iam.session.{idleTimeout,absoluteTimeout} (6h, 24h) set b3's
  [iam] SESSION_IDLE_TIMEOUT and SESSION_ABSOLUTE_TIMEOUT.
- casdoor, akp-prereqs, trustconsole, kubepatch: seed applications with
  enableAutoSignin and cookieExpireInHours from rememberHours (360), and keep
  Casdoor's file sessions on an emptyDir at /tmp so a container restart does
  not sign everyone out.

Signed-off-by: Arnob kumar saha <arnob@appscode.com>
Seed the applications' title, logo, favicon and footer (casdoor.branding / branding values) so the pages no longer show Casdoor's name and logo. ace serves the AppsCode logo and favicon from platform-ui; the other charts default to cdn.appscode.com.

Signed-off-by: Arnob kumar saha <arnob@appscode.com>
@ArnobKumarSaha ArnobKumarSaha changed the title Keep people signed in through Casdoor's Auto sign in Keep people signed in and brand Casdoor's sign-in pages Dec 1, 2026
@ArnobKumarSaha
ArnobKumarSaha merged commit 4974c07 into master Dec 1, 2026
3 of 4 checks passed
@ArnobKumarSaha
ArnobKumarSaha deleted the arnob-remember branch December 2, 2026 09:03
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

Successfully merging this pull request may close these issues.

1 participant