privateKey for generating the token in fosite #6
Unanswered
christiezhao-outreach
asked this question in
Q&A
Replies: 1 comment
-
Hello @christiezhao-outreach, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi everyone! in fosite, the initiation of the oauth2Provider takes in a secret and a private key.
I know the secret is used to sign access and refresh tokens as well as authorization codes but why do we need a private key and what are the use cases for it?
var oauth2Provider = compose.ComposeAllEnabled(config, storage, secret, privateKey)
Is the private key and the secret global or is it supposed to be generated every time the server starts? Would you recommend me create a global secret and private key that's the same in every Bentos and environment?
Beta Was this translation helpful? Give feedback.
All reactions