Class IdentityProvidersResource
- java.lang.Object
-
- org.keycloak.services.resources.admin.IdentityProvidersResource
-
public class IdentityProvidersResource extends Object
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description IdentityProvidersResource(RealmModel realm, KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(IdentityProviderRepresentation representation)
Create a new identity providerIdentityProviderResource
getIdentityProvider(String alias)
Stream<IdentityProviderRepresentation>
getIdentityProviders()
Get identity providersjavax.ws.rs.core.Response
getIdentityProviders(String providerId)
Get identity providersMap<String,String>
importFrom()
Import identity provider from uploaded JSON fileMap<String,String>
importFrom(Map<String,Object> data)
Import identity provider from JSON body
-
-
-
Constructor Detail
-
IdentityProvidersResource
public IdentityProvidersResource(RealmModel realm, KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
-
Method Detail
-
getIdentityProviders
@Path("/providers/{provider_id}") @GET @Produces("application/json") public javax.ws.rs.core.Response getIdentityProviders(@PathParam("provider_id") String providerId)
Get identity providers- Parameters:
providerId
- Provider id- Returns:
-
importFrom
@POST @Path("import-config") @Consumes("multipart/form-data") @Produces("application/json") public Map<String,String> importFrom() throws IOException
Import identity provider from uploaded JSON file- Parameters:
input
-- Returns:
- Throws:
IOException
-
importFrom
@POST @Path("import-config") @Consumes("application/json") @Produces("application/json") public Map<String,String> importFrom(Map<String,Object> data) throws IOException
Import identity provider from JSON body- Parameters:
data
- JSON body- Returns:
- Throws:
IOException
-
getIdentityProviders
@GET @Path("instances") @Produces("application/json") public Stream<IdentityProviderRepresentation> getIdentityProviders()
Get identity providers- Returns:
-
create
@POST @Path("instances") @Consumes("application/json") public javax.ws.rs.core.Response create(IdentityProviderRepresentation representation)
Create a new identity provider- Parameters:
representation
- JSON body- Returns:
-
getIdentityProvider
@Path("instances/{alias}") public IdentityProviderResource getIdentityProvider(@PathParam("alias") String alias)
-
-