fix: add missing WithCustomKeysEndpoint
This commit is contained in:
parent
30d8dec409
commit
c3e583bbf9
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 {
|
func WithHttpInterceptor(h HttpInterceptor) DefaultOPOpts {
|
||||||
return func(o *DefaultOP) error {
|
return func(o *DefaultOP) error {
|
||||||
o.interceptor = h
|
o.interceptor = h
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue