Skip to content

Get JWT token without public and private keys? #137

Answered by asafc
hongbo-miao asked this question in Q&A
Discussion options

You must be logged in to vote

@orweis @hongbo-miao regarding the suggested OPAL_DANGEROUS_NO_AUTH_TOKENS_MODE, this is already supported.
Read on, i explained below under "Can I Switch the JWTSigner off?".

I think this is a good opportunity for me to document and explain about the JWTSigner.

What these encryption keys are for?

The encryption keys provided by OPAL_AUTH_PRIVATE_KEY and OPAL_AUTH_PUBLIC_KEY are used by the JWTSigner. They have absolutely nothing to do with SSL/TLS/HTTPs.

  • The private key is used to sign on OPAL JWT tokens. it is known only to the OPAL server.
  • The public key can be known by anyone, and is used to verify that a specific OPAL server signed on a token without actually knowing the private key.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@hongbo-miao
Comment options

@orweis
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by hongbo-miao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants