Repository navigation
Keep people signed in and brand Casdoor's sign-in pages - #1446
Merged
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
People were sent back to the sign-in page every hour or two. Three causes:
enableAutoSigninoff, so Casdoor showed a "Continue with " button instead of returning to the app./tmp, which every container restart wiped.settings.iam.session.idleTimeout(6h) andabsoluteTimeout(24h) are written to b3's[iam]section. Needs https://github.com/appscode-cloud/b3/pull/1772.enableAutoSignin: trueandcookieExpireInHoursfrom a newrememberHoursvalue (360 = 15 days). Casdoor's/tmpis now anemptyDir.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';title,logo,faviconandfooterHtml(© 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.