Skip to content

How to boostrap applications using Casdoor? #2607

Answered by SchoolGuy
SchoolGuy asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Okay now that I know that I can use just a standard OpenSSL x509 certificate that makes things more simple because that means the script can generate those during first startup. Also through looking at random.go I learned that clientId and clientSecret are just random hexadecimal strings with 10 and 20. That can be also generated during first startup.
  2. Having a certificate valid for so long, especially to provide access to protected resources is in my eyes not desired. I think switching this at least every year, better every 6 months should be targeted. Since the boostrap is only read during first initialization I think using the API client in golang to rotate this is the most sane way. M…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SchoolGuy
Comment options

@hsluoyz
Comment options

@SchoolGuy
Comment options

Answer selected by SchoolGuy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants