All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sistcoop.admin.client.token.KeycloakTokenService Maven / Gradle / Ivy

There is a newer version: 1.1.3.Final
Show newest version
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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy