keycloak-service
|
公開メンバ関数 | |
StackoverflowIdentityProvider (KeycloakSession session, StackOverflowIdentityProviderConfig config) | |
Object | callback (RealmModel realm, AuthenticationCallback callback, EventBuilder event) |
Response | performLogin (AuthenticationRequest request) |
Response | retrieveToken (KeycloakSession session, FederatedIdentityModel identity) |
C | getConfig () |
Response | exchangeFromToken (UriInfo uriInfo, EventBuilder event, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject, MultivaluedMap< String, String > params) |
BrokeredIdentityContext | getFederatedIdentity (String response) |
String | getJsonProperty (JsonNode jsonNode, String name) |
JsonNode | asJsonNode (String json) throws IOException |
void | authenticationFinished (AuthenticationSessionModel authSession, BrokeredIdentityContext context) |
boolean | isIssuer (String issuer, MultivaluedMap< String, String > params) |
final BrokeredIdentityContext | exchangeExternal (EventBuilder event, MultivaluedMap< String, String > params) |
void | exchangeExternalComplete (UserSessionModel userSession, BrokeredIdentityContext context, MultivaluedMap< String, String > params) |
静的公開メンバ関数 | |
static final String | unescapeHtml3 (final String input) |
静的公開変数類 | |
static final String | AUTH_URL = "https://stackexchange.com/oauth" |
static final String | TOKEN_URL = "https://stackexchange.com/oauth/access_token" |
static final String | PROFILE_URL = "https://api.stackexchange.com/2.2/me?order=desc&sort=name&site=stackoverflow" |
static final String | DEFAULT_SCOPE = "" |
static final String | OAUTH2_GRANT_TYPE_REFRESH_TOKEN = "refresh_token" |
static final String | OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE = "authorization_code" |
static final String | FEDERATED_REFRESH_TOKEN = "FEDERATED_REFRESH_TOKEN" |
static final String | FEDERATED_TOKEN_EXPIRATION = "FEDERATED_TOKEN_EXPIRATION" |
static final String | ACCESS_DENIED = "access_denied" |
static final String | OAUTH2_PARAMETER_ACCESS_TOKEN = "access_token" |
static final String | OAUTH2_PARAMETER_SCOPE = "scope" |
static final String | OAUTH2_PARAMETER_STATE = "state" |
static final String | OAUTH2_PARAMETER_RESPONSE_TYPE = "response_type" |
static final String | OAUTH2_PARAMETER_REDIRECT_URI = "redirect_uri" |
static final String | OAUTH2_PARAMETER_CODE = "code" |
static final String | OAUTH2_PARAMETER_CLIENT_ID = "client_id" |
static final String | OAUTH2_PARAMETER_CLIENT_SECRET = "client_secret" |
static final String | OAUTH2_PARAMETER_GRANT_TYPE = "grant_type" |
限定公開メンバ関数 | |
boolean | supportsExternalExchange () |
String | getProfileEndpointForValidation (EventBuilder event) |
SimpleHttp | buildUserInfoRequest (String subjectToken, String userInfoUrl) |
BrokeredIdentityContext | extractIdentityFromProfile (EventBuilder event, JsonNode node) |
BrokeredIdentityContext | doGetFederatedIdentity (String accessToken) |
String | getDefaultScopes () |
String | extractTokenFromResponse (String response, String tokenName) |
Response | hasExternalExchangeToken (EventBuilder event, UserSessionModel tokenUserSession, MultivaluedMap< String, String > params) |
Response | exchangeStoredToken (UriInfo uriInfo, EventBuilder event, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject) |
Response | exchangeSessionToken (UriInfo uriInfo, EventBuilder event, ClientModel authorizedClient, UserSessionModel tokenUserSession, UserModel tokenSubject) |
String | getAccessTokenResponseParameter () |
UriBuilder | createAuthorizationUrl (AuthenticationRequest request) |
BrokeredIdentityContext | validateExternalTokenThroughUserInfo (EventBuilder event, String subjectToken, String subjectTokenType) |
BrokeredIdentityContext | exchangeExternalImpl (EventBuilder event, MultivaluedMap< String, String > params) |
BrokeredIdentityContext | exchangeExternalUserInfoValidationOnly (EventBuilder event, MultivaluedMap< String, String > params) |
静的限定公開メンバ関数 | |
static String | extractUsernameFromProfileURL (String profileURL) |
静的限定公開変数類 | |
static final Logger | logger = Logger.getLogger(AbstractOAuth2IdentityProvider.class) |
static ObjectMapper | mapper = new ObjectMapper() |
静的関数 | |
[static initializer] | |
静的非公開メンバ関数 | |
static boolean | isNotBlank (String s) |
静的非公開変数類 | |
static final Logger | log = Logger.getLogger(StackoverflowIdentityProvider.class) |
static final String [][] | ESCAPES |
static final int | MIN_ESCAPE = 2 |
static final int | MAX_ESCAPE = 6 |
static final HashMap< String, CharSequence > | lookupMap |
Stackoverflow social provider. See https://api.stackexchange.com/docs/authentication
|
inline |
|
inlinestaticpackage |
|
inlineinherited |
|
inlineinherited |
|
inlineprotected |
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineprotected |
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotected |
|
inlineprotectedinherited |
|
inlinestaticprotected |
|
inlineprotectedinherited |
|
inlineinherited |
|
inlineprotected |
|
inlineinherited |
|
inlineinherited |
Get JSON property as text. JSON numbers and booleans are converted to text. Empty string is converted to null.
jsonNode | to get property from |
name | of property to get |
|
inlineprotected |
|
inlineprotectedinherited |
check to see if we have a token exchange in session in other words check to see if this session was created by an external exchange
tokenUserSession | |
params |
|
inlineinherited |
|
inlinestaticprivate |
|
inlineinherited |
|
inlineinherited |
|
inlineprotected |
|
inlinestatic |
|
inlineprotectedinherited |
|
staticinherited |
|
static |
|
static |
|
staticprivate |
|
staticinherited |
|
staticinherited |
|
staticprivate |
|
staticprotectedinherited |
|
staticprivate |
|
staticprotectedinherited |
|
staticprivate |
|
staticprivate |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
static |
|
static |