org.sistcoop.admin.client.token.KeycloakTokenService Maven / Gradle / Ivy
package org.sistcoop.admin.client.token;
import org.keycloak.representations.AccessTokenResponse;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
public interface KeycloakTokenService {
@POST
@Path("/realms/{realm}/protocol/openid-connect/token")
AccessTokenResponse grantToken(@PathParam("realm") String realm, MultivaluedMap map);
@POST
@Path("/realms/{realm}/protocol/openid-connect/token")
AccessTokenResponse refreshToken(@PathParam("realm") String realm, MultivaluedMap map);
}