public class IdentityBrokerService extends Object implements IdentityProvider.AuthenticationCallback
| Constructor and Description |
|---|
IdentityBrokerService(RealmModel realmModel,
BruteForceProtector protector) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
afterFirstBrokerLogin(String code) |
javax.ws.rs.core.Response |
afterPostBrokerLoginFlow(String code) |
javax.ws.rs.core.Response |
authenticated(BrokeredIdentityContext context) |
protected javax.ws.rs.core.Response |
browserAuthentication(ClientSessionModel clientSession,
String errorMessage) |
javax.ws.rs.core.Response |
cancelled(String code) |
javax.ws.rs.core.Response |
error(String code,
String message) |
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 |
performPostLogin(String providerId,
String code) |
javax.ws.rs.core.Response |
retrieveToken(String providerId) |
javax.ws.rs.core.Response |
retrieveTokenPreflight() |
public IdentityBrokerService(RealmModel realmModel, BruteForceProtector protector)
public void init()
public javax.ws.rs.core.Response retrieveTokenPreflight()
public javax.ws.rs.core.Response retrieveToken(String providerId)
public javax.ws.rs.core.Response authenticated(BrokeredIdentityContext context)
authenticated in interface IdentityProvider.AuthenticationCallbackpublic javax.ws.rs.core.Response afterFirstBrokerLogin(String code)
public javax.ws.rs.core.Response afterPostBrokerLoginFlow(String code)
public javax.ws.rs.core.Response cancelled(String code)
cancelled in interface IdentityProvider.AuthenticationCallbackpublic javax.ws.rs.core.Response error(String code, String message)
error in interface IdentityProvider.AuthenticationCallbackprotected javax.ws.rs.core.Response browserAuthentication(ClientSessionModel clientSession, String errorMessage)
public static IdentityProvider getIdentityProvider(KeycloakSession session, RealmModel realm, String alias)
Copyright © 2016 JBoss by Red Hat. All rights reserved.