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

17

tests

0

failures

0

ignored

0.048s

duration

100%

successful

Tests

Test Duration Result
buildAuthorizationUrlWithQuery_emptyValues 0.002s passed
buildAuthorizationUrlWithQuery_nullClientId 0.002s passed
buildAuthorizationUrlWithQuery_nullRedirectUrl 0s passed
buildAuthorizationUrlWithQuery_nullState 0.001s passed
buildAuthorizationUrlWithQuery_responseTypeNotCode 0.001s passed
buildAuthorizationUrlWithQuery_responseTypeNotCode_withResource 0.001s passed
buildAuthorizationUrlWithQuery_withAcr 0.001s passed
buildAuthorizationUrlWithQuery_withNonce 0.001s passed
handleAuthorizationCode_exceptionThrownCreatingResult 0.002s passed
handleAuthorizationCode_generateTokensThrowsException 0.004s passed
handleAuthorizationCode_successful 0.004s passed
handleOAuthRequest_includesCode 0.001s passed
handleOAuthRequest_missingCode 0.011s passed
handleRedirectToServer_IOException 0.004s passed
handleRedirectToServer_SocialLoginException 0.011s passed
handleRedirectToServer_clientSideRedirectNotSupported 0.001s passed
handleRedirectToServer_clientSideRedirectSupported 0.001s passed

Standard output

    TrConfigZapper.zapTrConfig : start invoke init()
init: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@89dddf6c
[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].
registerLoggerHandlerSingleton: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@89dddf6c
captureSystemStreams: CurrentCOH is : com.ibm.websphere.ras.CapturedOutputHolder@89dddf6c
    TrConfigZapper.zapTrConfig : finished invoke init()
[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 ] CWWKS5416W: The outgoing request to [https://www.example.com/oauth/authorize] might not succeed because the [client_id] parameter is missing or empty.
[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 ] CWWKS5416W: The outgoing request to [https://www.example.com/oauth/authorize] might not succeed because the [client_id] parameter is missing or empty.
[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 ] CWWKS5416W: The outgoing request to [https://www.example.com/oauth/authorize] might not succeed because the [client_id] parameter is missing or empty.
[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 ] CWWKS5416W: The outgoing request to [https://www.example.com/oauth/authorize] might not succeed because the [client_id] parameter is missing or empty.
[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 ] CWWKS5416W: The outgoing request to [https://www.example.com/oauth/authorize] might not succeed because the [client_id] parameter is missing or empty.
[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 ] CWWKS5416W: The outgoing request to [https://www.example.com/oauth/authorize] might not succeed because the [client_id] parameter is missing or empty.
[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 ] CWWKS5416W: The outgoing request to [https://www.example.com/oauth/authorize] might not succeed because the [client_id] parameter is missing or empty.
[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 ] CWWKS5416W: The outgoing request to [https://www.example.com/oauth/authorize] might not succeed because the [client_id] parameter is missing or empty.
[WARNING ] CWWKS5416W: The outgoing request to [https://www.example.com/oauth/authorize] might not succeed because the [client_id] parameter is missing or empty.
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 [] 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. CWWKS5417E: An error was encountered while initializing the URI [/bad/]/URL]: Illegal character in path at index 5: /bad/]/URL
[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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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   ] 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.