KEYCLOAK-1844 Login endpoint needs to handle POST as well for SAML clients using HTTP-POST binding
This commit is contained in:
parent
1c38bb7158
commit
6291e90f9c
1 changed files with 7 additions and 5 deletions
|
@ -64,11 +64,7 @@ import org.keycloak.services.validation.Validation;
|
|||
import org.keycloak.social.SocialIdentityProvider;
|
||||
import org.keycloak.util.ObjectUtil;
|
||||
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.OPTIONS;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.*;
|
||||
import javax.ws.rs.core.Context;
|
||||
import javax.ws.rs.core.HttpHeaders;
|
||||
import javax.ws.rs.core.Response;
|
||||
|
@ -130,6 +126,12 @@ public class IdentityBrokerService implements IdentityProvider.AuthenticationCal
|
|||
this.event = new EventBuilder(realmModel, session, clientConnection).event(EventType.IDENTITY_PROVIDER_LOGIN);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/{provider_id}/login")
|
||||
public Response performPostLogin(@PathParam("provider_id") String providerId, @QueryParam("code") String code) {
|
||||
return performLogin(providerId, code);
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/{provider_id}/login")
|
||||
public Response performLogin(@PathParam("provider_id") String providerId, @QueryParam("code") String code) {
|
||||
|
|
Loading…
Reference in a new issue