Merge remote-tracking branch 'origin/master' into token
This commit is contained in:
commit
4de855dc21
1 changed files with 10 additions and 0 deletions
|
@ -103,6 +103,16 @@ func WithCustomUserinfoEndpoint(endpoint Endpoint) DefaultOPOpts {
|
|||
}
|
||||
}
|
||||
|
||||
func WithCustomKeysEndpoint(endpoint Endpoint) DefaultOPOpts {
|
||||
return func(o *DefaultOP) error {
|
||||
if err := endpoint.Validate(); err != nil {
|
||||
return err
|
||||
}
|
||||
o.endpoints.JwksURI = endpoint
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func WithHttpInterceptor(h HttpInterceptor) DefaultOPOpts {
|
||||
return func(o *DefaultOP) error {
|
||||
o.interceptor = h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue