Search in sources :

Example 1 with ClientInstallationProvider

use of org.keycloak.protocol.ClientInstallationProvider in project keycloak by keycloak.

the class ClientResource method getInstallationProvider.

@GET
@NoCache
@Path("installation/providers/{providerId}")
public Response getInstallationProvider(@PathParam("providerId") String providerId) {
    auth.clients().requireView(client);
    ClientInstallationProvider provider = session.getProvider(ClientInstallationProvider.class, providerId);
    if (provider == null)
        throw new NotFoundException("Unknown Provider");
    return provider.generateInstallation(session, realm, client, session.getContext().getUri().getBaseUri());
}
Also used : ClientInstallationProvider(org.keycloak.protocol.ClientInstallationProvider) NotFoundException(javax.ws.rs.NotFoundException) Path(javax.ws.rs.Path) GET(javax.ws.rs.GET) NoCache(org.jboss.resteasy.annotations.cache.NoCache)

Aggregations

GET (javax.ws.rs.GET)1 NotFoundException (javax.ws.rs.NotFoundException)1 Path (javax.ws.rs.Path)1 NoCache (org.jboss.resteasy.annotations.cache.NoCache)1 ClientInstallationProvider (org.keycloak.protocol.ClientInstallationProvider)1