Added JWKS related flags to serve command

This commit is contained in:
David J. Allen 2024-04-11 16:01:15 -06:00
parent c900913ec5
commit 37c844dc39
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC

View file

@ -33,5 +33,7 @@ var serveCmd = &cobra.Command{
func init() {
serveCmd.Flags().StringVar(&config.Server.Host, "host", config.Server.Host, "set the server host")
serveCmd.Flags().IntVar(&config.Server.Port, "port", config.Server.Port, "set the server port")
serveCmd.Flags().StringVar(&config.Options.JwksUri, "jwks-uri", config.Options.JwksUri, "set the JWKS url to fetch public key")
serveCmd.Flags().IntVar(&config.Options.JwksRetries, "jwks-fetch-retries", config.Options.JwksRetries, "set the JWKS fetch retry count")
rootCmd.AddCommand(serveCmd)
}