Skip to content

Commit

Permalink
fix: add missing WithCustomKeysEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
livio-a committed Feb 27, 2020
1 parent 30d8dec commit c3e583b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/op/default_op.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3e583b

Please sign in to comment.