UsernameClaim instead of Claim
This commit is contained in:
parent
627b733440
commit
56f08f7468
@ -21,7 +21,7 @@ type JWTAuth struct {
|
|||||||
CertsURL string `json:"certsurl"`
|
CertsURL string `json:"certsurl"`
|
||||||
Aud string `json:"aud"`
|
Aud string `json:"aud"`
|
||||||
Iss string `json:"iss"`
|
Iss string `json:"iss"`
|
||||||
Claim string `json:"claim"`
|
UsernameClaim string `json:"usernameClaim"`
|
||||||
Header string `json:"header"`
|
Header string `json:"header"`
|
||||||
remoteKeySet *oidc.RemoteKeySet
|
remoteKeySet *oidc.RemoteKeySet
|
||||||
init sync.Once
|
init sync.Once
|
||||||
|
|||||||
@ -116,7 +116,7 @@ func getAuthentication(flags *pflag.FlagSet, defaults ...interface{}) (settings.
|
|||||||
Aud: aud,
|
Aud: aud,
|
||||||
Iss: iss,
|
Iss: iss,
|
||||||
CertsURL: certsurl,
|
CertsURL: certsurl,
|
||||||
Claim: claim,
|
UsernameClaim: claim,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user