fix: add missing WithCustomKeysEndpoint

This commit is contained in:
Livio Amstutz 2020-02-27 09:04:04 +01:00
parent 30d8dec409
commit c3e583bbf9

View file

@ -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