let deprecated method implement replacement
This commit is contained in:
parent
dda0628528
commit
e5528e7390
1 changed files with 1 additions and 8 deletions
|
@ -237,14 +237,7 @@ func WithVerifierOpts(opts ...VerifierOption) Option {
|
|||
//
|
||||
//deprecated: use WithJWTProfile(SignerFromKeyPath(path)) instead
|
||||
func WithClientKey(path string) Option {
|
||||
return func(rp *relyingParty) error {
|
||||
config, err := client.ConfigFromKeyFile(path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
rp.signer, err = client.NewSignerFromPrivateKeyByte([]byte(config.Key), config.KeyID)
|
||||
return err
|
||||
}
|
||||
return WithJWTProfile(SignerFromKeyPath(path))
|
||||
}
|
||||
|
||||
// WithJWTProfile creates a signer used for the JWT Profile Client Authentication on the token endpoint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue