fixes
This commit is contained in:
parent
cd7695e2a9
commit
c56d5e5f9e
2 changed files with 29 additions and 1 deletions
|
@ -245,6 +245,20 @@ func (mr *MockConfigurationMockRecorder) RequestObjectSupported() *gomock.Call {
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestObjectSupported", reflect.TypeOf((*MockConfiguration)(nil).RequestObjectSupported))
|
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.
|
// RevocationEndpoint mocks base method.
|
||||||
func (m *MockConfiguration) RevocationEndpoint() op.Endpoint {
|
func (m *MockConfiguration) RevocationEndpoint() op.Endpoint {
|
||||||
m.ctrl.T.Helper()
|
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))
|
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.
|
// SupportedUILocales mocks base method.
|
||||||
func (m *MockConfiguration) SupportedUILocales() []language.Tag {
|
func (m *MockConfiguration) SupportedUILocales() []language.Tag {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
|
|
|
@ -33,7 +33,7 @@ func revocationHandler(revoker Revoker) func(http.ResponseWriter, *http.Request)
|
||||||
func Revoke(w http.ResponseWriter, r *http.Request, revoker Revoker) {
|
func Revoke(w http.ResponseWriter, r *http.Request, revoker Revoker) {
|
||||||
token, _, clientID, err := ParseTokenRevocationRequest(r, revoker)
|
token, _, clientID, err := ParseTokenRevocationRequest(r, revoker)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, err.Error(), http.StatusUnauthorized)
|
RevocationRequestError(w, r, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
tokenID, subject, ok := getTokenIDAndSubjectForRevocation(r.Context(), revoker, token)
|
tokenID, subject, ok := getTokenIDAndSubjectForRevocation(r.Context(), revoker, token)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue