Slackbot
06/21/2023, 12:45 PMShuvy Ankor
06/21/2023, 12:47 PMOr Weis
06/21/2023, 12:47 PMBen Wallis
06/21/2023, 12:48 PMBen Wallis
06/21/2023, 12:48 PMBen Wallis
06/21/2023, 12:50 PMself.signer = JWTSigner(
private_key=opal_server_config.AUTH_PRIVATE_KEY,
public_key=opal_common_config.AUTH_PUBLIC_KEY,
Or Weis
06/21/2023, 12:52 PMBen Wallis
06/21/2023, 12:53 PMOr Weis
06/21/2023, 12:55 PMOr Weis
06/21/2023, 12:58 PMBen Wallis
06/21/2023, 12:59 PM/token
endpoint, it creates a new JWT (with sub
set to a random guid?) and then signs it with the private key specified in OPAL_AUTH_PRIVATE_KEY
. Then when OPAL Client calls OPAL Server with that JWT, it (OPAL Server) uses the key from OPAL_AUTH_PUBLIC_KEY
to check the signature on the token was signed by itself? And OPAL Client actually never verifies the JWT signature because it doesn't care? Is that accurate?Or Weis
06/21/2023, 1:01 PMBen Wallis
06/21/2023, 1:02 PM