Skip to content

Token Revocation Endpoint is not getting called in case of Public Client #999

Closed
@tapasbose

Description

@tapasbose

Hello,
In my configuration, I have set clientAuthenticationMethod(ClientAuthenticationMethod.NONE), also I have

.tokenRevocationEndpoint(
    (OAuth2TokenRevocationEndpointConfigurer tokenRevocationEndpoint) -> tokenRevocationEndpoint
        .revocationResponseHandler((HttpServletRequest request, HttpServletResponse response, Authentication authentication) -> {
            // my logic

            response.setStatus(HttpStatus.OK.value());
        })
)

It seems neither revocationResponseHandler is called nor OAuth2TokenRevocationEndpointFilter.doFilterInternal.

They are called if I use clientAuthenticationMethod(ClientAuthenticationMethod.CLIENT_SECRET_POST).

I was wondering if it is a bug or token revocation cannot be done in case the client is Public.

Regards

Metadata

Metadata

Assignees

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions