simplify KeyProvider interface

This commit is contained in:
Livio Amstutz 2021-06-30 14:10:38 +02:00
parent 0b446618c7
commit 58e27e8073
3 changed files with 9 additions and 9 deletions

View file

@ -74,7 +74,7 @@ func CreateRouter(o OpenIDProvider, interceptors ...HttpInterceptor) *mux.Router
router.HandleFunc(o.IntrospectionEndpoint().Relative(), introspectionHandler(o))
router.HandleFunc(o.UserinfoEndpoint().Relative(), userinfoHandler(o))
router.Handle(o.EndSessionEndpoint().Relative(), intercept(endSessionHandler(o)))
router.HandleFunc(o.KeysEndpoint().Relative(), keysHandler(o))
router.HandleFunc(o.KeysEndpoint().Relative(), keysHandler(o.Storage()))
return router
}
@ -281,7 +281,7 @@ func (o *openIDKeySet) VerifySignature(ctx context.Context, jws *jose.JSONWebSig
if !ok {
return nil, errors.New("invalid kid")
}
return jws.Verify(key)
return jws.Verify(&key)
}
type Option func(o *openidProvider) error