diff --git a/cmd/config.go b/cmd/config.go index de079695..da9631d2 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -111,7 +111,13 @@ func getAuthentication(flags *pflag.FlagSet, defaults ...interface{}) (settings. checkErr(nerrors.New("you must set the flag 'auth.claim' for method 'jwt-header'")) } - auther = &auth.JWTAuth{} + auther = &auth.JWTAuth{ + Header: header, + Aud: aud, + Iss: iss, + CertsURL: certsurl, + Claim: claim, + } } if method == auth.MethodNoAuth {