diff --git a/pkg/op/mock/configuration.mock.go b/pkg/op/mock/configuration.mock.go index b523a81..3eb4542 100644 --- a/pkg/op/mock/configuration.mock.go +++ b/pkg/op/mock/configuration.mock.go @@ -245,6 +245,20 @@ func (mr *MockConfigurationMockRecorder) RequestObjectSupported() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestObjectSupported", reflect.TypeOf((*MockConfiguration)(nil).RequestObjectSupported)) } +// RevocationAuthMethodPrivateKeyJWTSupported mocks base method. +func (m *MockConfiguration) RevocationAuthMethodPrivateKeyJWTSupported() bool { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RevocationAuthMethodPrivateKeyJWTSupported") + ret0, _ := ret[0].(bool) + return ret0 +} + +// RevocationAuthMethodPrivateKeyJWTSupported indicates an expected call of RevocationAuthMethodPrivateKeyJWTSupported. +func (mr *MockConfigurationMockRecorder) RevocationAuthMethodPrivateKeyJWTSupported() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevocationAuthMethodPrivateKeyJWTSupported", reflect.TypeOf((*MockConfiguration)(nil).RevocationAuthMethodPrivateKeyJWTSupported)) +} + // RevocationEndpoint mocks base method. func (m *MockConfiguration) RevocationEndpoint() op.Endpoint { m.ctrl.T.Helper() @@ -259,6 +273,20 @@ func (mr *MockConfigurationMockRecorder) RevocationEndpoint() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevocationEndpoint", reflect.TypeOf((*MockConfiguration)(nil).RevocationEndpoint)) } +// RevocationEndpointSigningAlgorithmsSupported mocks base method. +func (m *MockConfiguration) RevocationEndpointSigningAlgorithmsSupported() []string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RevocationEndpointSigningAlgorithmsSupported") + ret0, _ := ret[0].([]string) + return ret0 +} + +// RevocationEndpointSigningAlgorithmsSupported indicates an expected call of RevocationEndpointSigningAlgorithmsSupported. +func (mr *MockConfigurationMockRecorder) RevocationEndpointSigningAlgorithmsSupported() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevocationEndpointSigningAlgorithmsSupported", reflect.TypeOf((*MockConfiguration)(nil).RevocationEndpointSigningAlgorithmsSupported)) +} + // SupportedUILocales mocks base method. func (m *MockConfiguration) SupportedUILocales() []language.Tag { m.ctrl.T.Helper() diff --git a/pkg/op/token_revocation.go b/pkg/op/token_revocation.go index 0be7812..4bac76f 100644 --- a/pkg/op/token_revocation.go +++ b/pkg/op/token_revocation.go @@ -33,7 +33,7 @@ func revocationHandler(revoker Revoker) func(http.ResponseWriter, *http.Request) func Revoke(w http.ResponseWriter, r *http.Request, revoker Revoker) { token, _, clientID, err := ParseTokenRevocationRequest(r, revoker) if err != nil { - http.Error(w, err.Error(), http.StatusUnauthorized) + RevocationRequestError(w, r, err) return } tokenID, subject, ok := getTokenIDAndSubjectForRevocation(r.Context(), revoker, token)