public class IdentityBrokerService extends Object implements IdentityProvider.AuthenticationCallback
| Modifier and Type | Field and Description |
|---|---|
static String |
BROKER_PROVIDER_ID |
| Constructor and Description |
|---|
IdentityBrokerService(RealmModel realmModel) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
authenticated(Map<String,String> userNotes,
IdentityProviderModel identityProviderConfig,
FederatedIdentity federatedIdentity,
String code)
This method should be called by provider after the JAXRS callback endpoint has finished authentication
with the remote IDP
|
javax.ws.rs.core.Response |
consentTokenRetrieval(String providerId,
javax.ws.rs.core.MultivaluedMap<String,String> formData) |
Object |
getEndpoint(String providerId) |
static IdentityProvider |
getIdentityProvider(KeycloakSession session,
RealmModel realm,
String alias) |
void |
init() |
javax.ws.rs.core.Response |
performLogin(String providerId,
String code) |
javax.ws.rs.core.Response |
retrieveToken(String providerId) |
javax.ws.rs.core.Response |
retrieveTokenPreflight() |
public static final String BROKER_PROVIDER_ID
public IdentityBrokerService(RealmModel realmModel)
public void init()
@GET
@Path(value="/{provider_id}/login")
public javax.ws.rs.core.Response performLogin(@PathParam(value="provider_id")
String providerId,
@QueryParam(value="code")
String code)
@Path(value="{provider_id}/endpoint")
public Object getEndpoint(@PathParam(value="provider_id")
String providerId)
@Path(value="{provider_id}/token")
@OPTIONS
public javax.ws.rs.core.Response retrieveTokenPreflight()
@GET
@Path(value="{provider_id}/token")
public javax.ws.rs.core.Response retrieveToken(@PathParam(value="provider_id")
String providerId)
@POST
@Path(value="{provider_id}/token")
@Consumes(value="application/x-www-form-urlencoded")
public javax.ws.rs.core.Response consentTokenRetrieval(@PathParam(value="provider_id")
String providerId,
javax.ws.rs.core.MultivaluedMap<String,String> formData)
public javax.ws.rs.core.Response authenticated(Map<String,String> userNotes, IdentityProviderModel identityProviderConfig, FederatedIdentity federatedIdentity, String code)
IdentityProvider.AuthenticationCallbackauthenticated in interface IdentityProvider.AuthenticationCallbackuserNotes - notes to add to the UserSessionModelidentityProviderConfig - provider configfederatedIdentity - federated identitycode - relayState or state parameter used to identity the client sessionpublic static IdentityProvider getIdentityProvider(KeycloakSession session, RealmModel realm, String alias)
Copyright © 2015. All rights reserved.