Class com.ibm.ws.security.social.web.utils.ConfigInfoJsonBuilderTest

13

tests

0

failures

0

ignored

0.015s

duration

100%

successful

Tests

Test Duration Result
test_buildJsonResponse_emptyMediaList 0s passed
test_buildJsonResponse_nonEmptyMediaList 0.001s passed
test_buildJsonResponse_nullMediaList 0.006s passed
test_buildSocialMediaList_noConfigs 0s passed
test_buildSocialMediaList_nullAndNonNullConfigs 0.004s passed
test_buildSocialMediaList_nullConfigIterator_CollectionCollection 0s passed
test_buildSocialMediaList_nullConfigIterator_IteratorConstructor 0s passed
test_buildSocialMediumEntry_allConfigValuesPresent 0.001s passed
test_buildSocialMediumEntry_idContainsJsonChars 0.001s passed
test_buildSocialMediumEntry_nullArg 0.001s passed
test_buildSocialMediumEntry_nullConfigValues 0s passed
test_buildSocialMediumEntry_nullDisplayName 0.001s passed
test_buildSocialMediumEntry_nullWebsiteAndDisplayName 0s passed

Standard output

    TrConfigZapper.zapTrConfig : start invoke init()
init: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@53114889
[WARNING ] CWWKS5464E: JSON Web Token (JWT) consumer functionality might not be available for the social login configuration [null] because the service for the specified social login configuration cannot be found.
[WARNING ] CWWKS5464E: JSON Web Token (JWT) consumer functionality might not be available for the social login configuration [null] because the service for the specified social login configuration cannot be found.
[WARNING ] CWWKS5416W: The outgoing request to [https://some-domain.com/path/token?with=some&query=string] might not succeed because the [client_id] parameter is missing or empty.
[WARNING ] CWWKS5416W: The outgoing request to [https://some-domain.com/path/token] might not succeed because the [client_secret] parameter is missing or empty.
[WARNING ] CWWKS5486W: Tokens cannot be extracted from the response from the [https://some-domain.com/path/token] endpoint. The response map from the endpoint was [null].
[WARNING ] CWWKS5486W: Tokens cannot be extracted from the response from the [https://some-domain.com/path/token] endpoint. The response map from the endpoint was [{key1=value1, key2=value2}].
[WARNING ] CWWKS5487W: The response from the [https://some-domain.com/path/token?with=some&query=string] endpoint was not in the expected JSON format. The error was [Parsing error: org.jose4j.json.internal.json_simple.parser.ParseException: Unexpected token END OF FILE at position 0.]. The response content was [].
[WARNING ] CWWKS5487W: The response from the [https://some-domain.com/path/token] endpoint was not in the expected JSON format. The error was [Parsing error: org.jose4j.json.internal.json_simple.parser.ParseException: Unexpected character (S) at position 0.]. The response content was [Something {not in[ JSON]: format].
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5381W: The social login configuration [myUniqueId] specifies [email] as the value for the [userNameAttribute] attribute, but the user API response does not contain a [email] key. The [username] key, if present in the user API response, is used to determine the username instead.
[WARNING ] CWWKS5460W: There are no user API configurations specified for the social login configuration [myUniqueId].
[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 ] 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.
[WARNING ] CWWKS5409E: The signature for an authorized Twitter request cannot be created: null
[WARNING ] CWWKS5485W: Twitter authentication requests might not succeed because the provided [consumerKey] configuration value is either null or empty. Verify that all Twitter social login configurations specify a non-empty value for the [consumerKey] configuration attribute.
[WARNING ] CWWKS5485W: Twitter authentication requests might not succeed because the provided [consumerKey] configuration value is either null or empty. Verify that all Twitter social login configurations specify a non-empty value for the [consumerKey] configuration attribute.
[WARNING ] CWWKS5432W: The social login feature cannot redirect the request to the custom social media selection page because the social login web application configuration is not available. The default selection page will be used.
registerLoggerHandlerSingleton: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@53114889
captureSystemStreams: CurrentCOH is : com.ibm.websphere.ras.CapturedOutputHolder@53114889
    TrConfigZapper.zapTrConfig : finished invoke init()
SharedOutputManager captured the following: 
-- System.out -------------------------------------------------
-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
-- Trace -------------------------------------------------

Standard error

[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS2351E: The null OpenID Connect client uses the client_secret_post token endpoint authentication method. This authentication method requires a client secret, but a client secret is not configured.
[ERROR   ] This is an exception message.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [authorizationEndpoint] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [clientId] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS2351E: The null OpenID Connect client uses the client_secret_post token endpoint authentication method. This authentication method requires a client secret, but a client secret is not configured.
[ERROR   ] This is an exception message.
[ERROR   ] CWWKS5465E: The context path [Some path] that is specified by the social login web application configuration contains characters that cannot be included in a valid URI path. The social login feature does not work with a context path that is not valid.
[ERROR   ] CWWKS5431E: The social media selection page URL [null] that is specified by the social login web application configuration is not a relative path and does not use either the HTTP or HTTPS scheme.
[ERROR   ] CWWKS5431E: The social media selection page URL [ftp://www.ibm.com] that is specified by the social login web application configuration is not a relative path and does not use either the HTTP or HTTPS scheme.
[ERROR   ] CWWKS5430W: The social media selection page URL [/bad/?/URL] that is specified by the social login web application configuration is not a valid URI. The default selection page will be used. CWWKS5488W: The provided value [/bad/?/URL] contains at least one character that cannot be included in a valid URI.
[ERROR   ] CWWKS5430W: The social media selection page URL [/good/%/URL] that is specified by the social login web application configuration is not a valid URI. The default selection page will be used. CWWKS5417E: An error was encountered while initializing the URI [/good/%/URL]: Malformed escape pair at index 6: /good/%/URL
[ERROR   ] CWWKS5479E: The configuration attribute [consumerKey] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [consumerSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [consumerSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[ERROR   ] CWWKS5479E: The configuration attribute [consumerSecret] that is required in the social login configuration [null] is missing or empty. Verify that the attribute is configured, that it is not empty, and that it does not consist of only white space characters.
[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   ] 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   ] 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   ] 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   ] 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   ] 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   ] CWWKS5419E: The authorization request failed because there was an error while creating the result from the [/oauth/request_token] Twitter endpoint.
[ERROR   ] CWWKS5419E: The authorization request failed because there was an error while creating the result from the [/oauth/request_token] Twitter endpoint.
[ERROR   ] CWWKS5424E: Cannot process the response from the [/oauth/request_token] Twitter endpoint. JSON failure message. Something went wrong.
[ERROR   ] CWWKS5447E: The request cannot be redirected to the authorization endpoint that is configured for the social login configuration [myUniqueId]. CWWKS5475E: An HTTP request cannot be made because the provided URL is null or empty.
[ERROR   ] CWWKS5447E: The request cannot be redirected to the authorization endpoint that is configured for the social login configuration [myUniqueId]. CWWKS5417E: An error was encountered while initializing the URI [Some invalid URL]: Illegal character in path at index 4: Some invalid URL
[ERROR   ] CWWKS5420E: An error was encountered while redirecting the response from the [/oauth/request_token] Twitter endpoint: This is an IOException message.
[ERROR   ] CWWKS5422E: The request intended for the [/oauth/access_token] Twitter endpoint is missing a required parameter. The required parameters that are missing from the request are: oauth_token
[ERROR   ] CWWKS5422E: The request intended for the [/oauth/access_token] Twitter endpoint is missing a required parameter. The required parameters that are missing from the request are: oauth_verifier
[ERROR   ] CWWKS5421E: The authorization request failed because the token provided in the request does not match the token that was used for the initial authorization request.
[ERROR   ] CWWKS5419E: The authorization request failed because there was an error while creating the result from the [/oauth/access_token] Twitter endpoint.
[ERROR   ] CWWKS5419E: The authorization request failed because there was an error while creating the result from the [/oauth/access_token] Twitter endpoint.
[ERROR   ] CWWKS5424E: Cannot process the response from the [/oauth/access_token] Twitter endpoint. JSON failure message. Something went wrong.
[ERROR   ] CWWKS5419E: The authorization request failed because there was an error while creating the result from the [/1.1/account/verify_credentials.json] Twitter endpoint.
[ERROR   ] CWWKS5424E: Cannot process the response from the [/1.1/account/verify_credentials.json] Twitter endpoint. JSON failure message. Something went wrong.
[ERROR   ] CWWKS5419E: The authorization request failed because there was an error while creating the result from the [/oauth/access_token] Twitter endpoint.
[ERROR   ] CWWKS5423E: The response status from the [null] Twitter endpoint could not be determined. An error likely occurred while submitting or processing the request.
[ERROR   ] CWWKS5424E: Cannot process the response from the [/oauth/request_token] Twitter endpoint. 
[ERROR   ] CWWKS5424E: Cannot process the response from the [/oauth/access_token] Twitter endpoint. This is what went wrong.
[ERROR   ] CWWKS5442E: The social login feature cannot complete the request by using the social login configuration [myConfigId] because the state value is missing.
[ERROR   ] CWWKS5442E: The social login feature cannot complete the request by using the social login configuration [myConfigId] because the state value is missing.
[ERROR   ] CWWKS5443E: The social login feature cannot complete the request by using the social login configuration [myConfigId] because the value for the original request URL is missing or empty. The original request URL value must be present to redirect the user back to the protected resource that was originally requested.
[ERROR   ] CWWKS5443E: The social login feature cannot complete the request by using the social login configuration [myConfigId] because the value for the original request URL is missing or empty. The original request URL value must be present to redirect the user back to the protected resource that was originally requested.
[ERROR   ] CWWKS5499E: The social login feature cannot redirect the request back to the original request URL [Some%20invalid%20URL] because the URL is not valid. CWWKS5496W: The provided value [Some%20invalid%20URL] is expected to be an HTTP URI. The value does not start with an HTTP protocol.
[ERROR   ] CWWKS5495E: A social login authentication request failed because the social media returned the following  error: . The error URI was [].
[ERROR   ] CWWKS5495E: A social login authentication request failed because the social media returned the following my_error error: Some error description.. The error URI was [https://some-domain.com/some/path].
[ERROR   ] CWWKS5480E: A social login request failed because the state element of the request was empty or mismatched.
[ERROR   ] CWWKS5480E: A social login request failed because the state element of the request was empty or mismatched.
[ERROR   ] CWWKS5480E: A social login request failed because the state element of the request was empty or mismatched.
[ERROR   ] CWWKS5480E: A social login request failed because the state element of the request was empty or mismatched.
[ERROR   ] CWWKS5480E: A social login request failed because the state element of the request was empty or mismatched.
[ERROR   ] CWWKS5481E: A social login request failed because the request URL attribute of the request was null or empty.
[ERROR   ] CWWKS5481E: A social login request failed because the request URL attribute of the request was null or empty.
[ERROR   ] CWWKS5499E: The social login feature cannot redirect the request back to the original request URL [some%20invalid%20URL] because the URL is not valid. CWWKS5496W: The provided value [some%20invalid%20URL] is expected to be an HTTP URI. The value does not start with an HTTP protocol.
[ERROR   ] CWWKS5499E: The social login feature cannot redirect the request back to the original request URL [https://a-different-host.com/some/path] because the URL is not valid. CWWKS1554E: A request to [https://some-domain.com/some/path] is not valid. A required cookie with a name that begins with [WASReqUrlSocial_] has an incorrect value. The hostname [a-different-host.com] that is used in the cookie does not match the hostname of the request, and the hostname in the cookie is not one of the allowed domain names.
[ERROR   ] CWWKS5494E: A social login request failed because the CODE attribute of the request was null or empty.
[ERROR   ] CWWKS5494E: A social login request failed because the CODE attribute of the request was null or empty.
[ERROR   ] CWWKS5429E: The default social media sign in page cannot be displayed. CWWKS5427E: The social media sign in page cannot be displayed because the social login feature cannot find any social login configurations that are configured to authenticate this request.
[ERROR   ] CWWKS5429E: The default social media sign in page cannot be displayed. 
[ERROR   ] CWWKS5429E: The default social media sign in page cannot be displayed. This is some error message.
[ERROR   ] CWWKS5429E: The default social media sign in page cannot be displayed. CWWKS5428W: The social login feature cannot find a social login configuration that matches the ID [myUniqueId]. A social login configuration with the specified ID is expected to be present and configured to authenticate this request.