feat(rp): provide key by data (not only path) for jwt profile (#168)

This commit is contained in:
Livio Amstutz 2022-04-14 10:10:56 +02:00 committed by GitHub
parent 478795ad79
commit c195452bb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 4 deletions

View file

@ -40,7 +40,7 @@ func main() {
options = append(options, rp.WithPKCE(cookieHandler))
}
if keyPath != "" {
options = append(options, rp.WithClientKey(keyPath))
options = append(options, rp.WithJWTProfile(rp.SignerFromKeyPath(keyPath)))
}
provider, err := rp.NewRelyingPartyOIDC(issuer, clientID, clientSecret, redirectURI, scopes, options...)