KEYCLOAK-14009 Add fix for token revocation endpoint
This commit is contained in:
parent
ae20b7d3cd
commit
a77c35ea8f
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,7 @@ import org.keycloak.events.Details;
|
||||||
import org.keycloak.events.Errors;
|
import org.keycloak.events.Errors;
|
||||||
import org.keycloak.events.EventBuilder;
|
import org.keycloak.events.EventBuilder;
|
||||||
import org.keycloak.events.EventType;
|
import org.keycloak.events.EventType;
|
||||||
|
import org.keycloak.headers.SecurityHeadersProvider;
|
||||||
import org.keycloak.models.AuthenticatedClientSessionModel;
|
import org.keycloak.models.AuthenticatedClientSessionModel;
|
||||||
import org.keycloak.models.ClientModel;
|
import org.keycloak.models.ClientModel;
|
||||||
import org.keycloak.models.KeycloakSession;
|
import org.keycloak.models.KeycloakSession;
|
||||||
|
@ -100,6 +101,7 @@ public class TokenRevocationEndpoint {
|
||||||
|
|
||||||
event.detail(Details.REVOKED_CLIENT, client.getClientId()).success();
|
event.detail(Details.REVOKED_CLIENT, client.getClientId()).success();
|
||||||
|
|
||||||
|
session.getProvider(SecurityHeadersProvider.class).options().allowEmptyContentType();
|
||||||
return cors.builder(Response.ok()).build();
|
return cors.builder(Response.ok()).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue