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
|
//deprecated: use WithJWTProfile(SignerFromKeyPath(path)) instead
|
||||||
func WithClientKey(path string) Option {
|
func WithClientKey(path string) Option {
|
||||||
return func(rp *relyingParty) error {
|
return WithJWTProfile(SignerFromKeyPath(path))
|
||||||
config, err := client.ConfigFromKeyFile(path)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
rp.signer, err = client.NewSignerFromPrivateKeyByte([]byte(config.Key), config.KeyID)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithJWTProfile creates a signer used for the JWT Profile Client Authentication on the token endpoint
|
// 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