Class com.ibm.ws.security.social.tai.TAISubjectUtilsTest

80

tests

0

failures

0

ignored

0.135s

duration

100%

successful

Tests

Test Duration Result
addAccessTokenAliasCustomProp_emptyAccessToken 0.001s passed
addAccessTokenAliasCustomProp_nonEmptyAccessToken 0.001s passed
addAccessTokenLifetimeCustomProp_largeLifetime 0s passed
addAccessTokenLifetimeCustomProp_missingLifetime 0s passed
addAccessTokenLifetimeCustomProp_negativeLifetime 0s passed
addEncryptedAccessTokenCustomProp_emptyEncryptedToken 0.001s passed
addEncryptedAccessTokenCustomProp_errorGettingToken 0.001s passed
addEncryptedAccessTokenCustomProp_nonEmptyEncryptedToken 0.001s passed
addIdTokenCustomProp_emptyIdToken 0s passed
addIdTokenCustomProp_missingIdToken 0s passed
addIdTokenCustomProp_nonEmptyIdToken 0s passed
addIdTokenCustomProp_nonEmptyIdTokenWithWhitespace 0s passed
addIdTokenCustomProp_whitespaceIdToken 0s passed
addRefreshTokenCustomProp_emptyRefreshToken 0s passed
addRefreshTokenCustomProp_missingRefreshToken 0s passed
addRefreshTokenCustomProp_nonEmptyRefreshToken 0s passed
addRefreshTokenCustomProp_nonEmptyRefreshTokenWithWhitespace 0s passed
addRefreshTokenCustomProp_whitespaceRefreshToken 0s passed
addScopeCustomProp_tokensIncludeScope_empty 0.001s passed
addScopeCustomProp_tokensIncludeScope_nonEmpty 0.001s passed
addScopeCustomProp_tokensIncludeScope_whitespace 0.001s passed
addScopeCustomProp_tokensMissingScope_configEmptyScope 0.001s passed
addScopeCustomProp_tokensMissingScope_configMissingScope 0.001s passed
addScopeCustomProp_tokensMissingScope_configNonEmptyScope 0.001s passed
addScopeCustomProp_tokensMissingScope_configWhitespaceScope 0.001s passed
addSocialMediaNameCustomProp_emptyName 0.001s passed
addSocialMediaNameCustomProp_nonEmptyName 0.001s passed
addSocialMediaNameCustomProp_whitespaceName 0.001s passed
buildSubject_exceptionThrownCreatingUserProfile 0.001s passed
buildSubject_nonNullEncryptedAccessToken_nonNullAccessTokenAlias 0.001s passed
buildSubject_nullJwt_nullIssuedJwt_nullUserProfile 0.011s passed
buildSubject_nullJwts 0.002s passed
buildSubject_nullUserProfile 0.001s passed
constructDefaultRealmFromConfig_authzEndpointHttps_noPath 0s passed
constructDefaultRealmFromConfig_authzEndpointHttps_withPath 0.001s passed
constructDefaultRealmFromConfig_authzEndpointHttps_withPathAndQuery 0.001s passed
constructDefaultRealmFromConfig_authzEndpointNotHttps_noPath 0.001s passed
constructDefaultRealmFromConfig_authzEndpointNotHttps_withPath 0.001s passed
constructDefaultRealmFromConfig_errorGettingAuthorizationEndpoint 0.003s passed
constructDefaultRealmFromConfig_errorGettingAuthorizationEndpoint_useUserapi 0.001s passed
createCacheToken_missingAccessToken_nullTokensMap 0.001s passed
createCacheToken_missingIdToken 0.001s passed
createCacheToken_nullTokensMap 0.001s passed
createCacheToken_tokensIncludeEmptyIdToken 0.001s passed
createCacheToken_tokensIncludeIdToken 0.002s passed
createCustomPropertiesFromConfig 0s passed
createCustomPropertiesFromConfig_emptyRealmNullUsername 0.001s passed
createCustomPropertiesFromConfig_nullRealm 0.002s passed
createCustomPropertiesFromSubjectMapping_nullRealm 0.002s passed
createCustomPropertiesFromSubjectMapping_nullUniqueUser_noGroups 0.014s passed
createCustomPropertiesFromSubjectMapping_withGroups 0.002s passed
createCustomProperties_accessTokenOnlyInUserApiTokens_getRefreshAndIdTokens 0.007s passed
createCustomProperties_allTokens 0.002s passed
createCustomProperties_allTokensInUserApiTokens_doNotGetRefreshOrIdToken 0.004s passed
createCustomProperties_emptyUserApiTokens 0.001s passed
createCustomProperties_nullUserApiTokens 0.001s passed
createResult_buildingSubjectThrowsException 0.002s passed
createResult_errorSettingCustomProperties 0.011s passed
createResult_success 0.001s passed
createUserProfile_emptyCustomProperties 0.007s passed
createUserProfile_exceptionThrownCreatingProperties 0.001s passed
createUserProfile_nullUserApiResponse 0.002s passed
getAccessTokenAndAddCustomProp_emptyAccessToken 0s passed
getAccessTokenAndAddCustomProp_missingAccessToken 0.001s passed
getAccessTokenAndAddCustomProp_nonEmptyAccessToken 0s passed
setAllCustomProperties_errorSettingUsernameOrProperties 0.001s passed
setAllCustomProperties_missingAccessToken 0.008s passed
setAllCustomProperties_missingUsername 0.002s passed
setAllCustomProperties_success 0.001s passed
setUsernameAndCustomPropertiesUsingAttributeToSubjectMapping_doNotMapToUserRegistry 0.001s passed
setUsernameAndCustomPropertiesUsingAttributeToSubjectMapping_doNotMapToUserRegistry_errorResult 0.001s passed
setUsernameAndCustomPropertiesUsingAttributeToSubjectMapping_mapToUserRegistry 0.001s passed
setUsernameAndCustomPropertiesUsingJwt_nullJwt 0s passed
setUsernameAndCustomPropertiesUsingJwt_validJwt_doNotMapToUserRegsitry_errorResult 0.001s passed
setUsernameAndCustomPropertiesUsingJwt_validJwt_doNotMapToUserRegsitry_nullResult 0.001s passed
setUsernameAndCustomPropertiesUsingJwt_validJwt_mapToUserRegsitry 0.002s passed
setUsernameAndCustomPropertiesUsingJwt_validJwt_missingUsernameAttributeClaim 0.001s passed
setUsernameAndCustomPropertiesUsingJwt_validJwt_nullClaims 0.007s passed
setUsernameAndCustomProperties_nonNullUserApiResponse 0.001s passed
setUsernameAndCustomProperties_nullUserApiResponse 0.001s passed

Standard output

[WARNING ] CWWKS5416W: The outgoing request to [https://www.example.com/oauth/authorize] might not succeed because the [client_id] parameter is missing or empty.
[WARNING ] CWWKS5460W: There are no user API configurations specified for the social login configuration [myUniqueId].
[WARNING ] CWWKS5376W: The value for the [accessTokenHeaderName] attribute in the social login configuration [myUniqueId] indicates that an access token is expected to be found in the [My Header] request header. However, a token cannot be found in that header.
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
-- Trace -------------------------------------------------

Standard error

[ERROR   ] CWWKS5447E: The request cannot be redirected to the authorization endpoint that is configured for the social login configuration [facebookLogin]. This is an exception message.
[ERROR   ] CWWKS5447E: The request cannot be redirected to the authorization endpoint that is configured for the social login configuration [facebookLogin]. This is an exception message.
[ERROR   ] CWWKS5454E: The social login feature cannot create a subject for the user with the provided authorization code using social login configuration [facebookLogin]. This is an exception message.
[ERROR   ] CWWKS5450E: The request cannot invoke the token endpoint because an error occurred while retrieving SSL information for the social login configuration [myUniqueId]. This is an exception message.
[ERROR   ] CWWKS5451E: The social login feature encountered a problem while obtaining token information from the token endpoint that is configured for the social login configuration [myUniqueId]. This is an exception message.
[ERROR   ] CWWKS5452E: The social login feature cannot authenticate the user because the response from the user API that is configured for the social login configuration [myUniqueId] is null or empty.
[ERROR   ] CWWKS5452E: The social login feature cannot authenticate the user because the response from the user API that is configured for the social login configuration [myUniqueId] is null or empty.
[ERROR   ] CWWKS5453E: The social login feature encountered a problem while creating a JSON Web Token (JWT) from the provided access token for the social login configuration [myUniqueId]. This is an exception message.
[ERROR   ] CWWKS5453E: The social login feature encountered a problem while creating a JSON Web Token (JWT) from the provided access token for the social login configuration [myUniqueId]. This is an exception message.
[ERROR   ] CWWKS5453E: The social login feature encountered a problem while creating a JSON Web Token (JWT) from the provided access token for the social login configuration [myUniqueId]. This is an exception message.
[ERROR   ] 
[ERROR   ] 
[ERROR   ] This is an exception message.
[ERROR   ] CWWKS5407I: The Social Login Version 1.0 endpoint service is activated.
[ERROR   ] CWWKS5488W: The provided value [Some insert] contains at least one character that cannot be included in a valid URI.
[ERROR   ] CWWKS5453E: The social login feature encountered a problem while creating a JSON Web Token (JWT) from the provided access token for the social login configuration [twitterLogin]. This is an exception message.
[ERROR   ] CWWKS5437E: The social login feature cannot create a subject for the user by using Twitter profile information and social login configuration [twitterLogin]. This is an exception message.
[ERROR   ] CWWKS5437E: The social login feature cannot create a subject for the user by using Twitter profile information and social login configuration [twitterLogin]. This is an exception message.
[ERROR   ] CWWKS5435E: The user name could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5435E: The user name could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5435E: The user name could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5435E: The user name could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5435E: The user name could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5455E: The social login feature cannot authenticate user [John Q. Doe] because an access token cannot be found.
[ERROR   ] CWWKS5455E: The social login feature cannot authenticate user [John Q. Doe] because an access token cannot be found.
[ERROR   ] CWWKS5455E: The social login feature cannot authenticate user [John Q. Doe] because an access token cannot be found.
[ERROR   ] CWWKS5455E: The social login feature cannot authenticate user [John Q. Doe] because an access token cannot be found.
[ERROR   ] CWWKS5455E: The social login feature cannot authenticate user [John Q. Doe] because an access token cannot be found.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] This is an exception message.
[ERROR   ] This is an exception message.
[ERROR   ] This is an exception message.
[ERROR   ] This is an exception message.
[ERROR   ] This is an exception message.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] CWWKS5436E: The realm could not be extracted from the token that was obtained from the social media platform.
[ERROR   ] This is an exception message.
[ERROR   ] This is an exception message.
[ERROR   ] This is an exception message.
[ERROR   ] This is an exception message.
[ERROR   ] This is an exception message.