Class com.ibm.ws.security.openidconnect.clients.common.token.auth.PrivateKeyJwtAuthMethodTest
Tests
Test |
Duration |
Result |
test_getPrivateKeyForClientAuthentication |
0.010s |
passed |
test_getPrivateKeyForClientAuthentication_emptyKeyAliasName |
0.001s |
passed |
test_getPrivateKeyForClientAuthentication_emptyKeyStoreRef |
0s |
passed |
test_getPrivateKeyForClientAuthentication_nullKeyAliasName |
0.001s |
passed |
test_getPrivateKeyForClientAuthentication_nullKeyStoreRef |
0s |
passed |
test_setAuthMethodSpecificSettings |
0.001s |
passed |
test_setAuthMethodSpecificSettings_gettingKeyThrowsException |
0.002s |
passed |
Standard output
TrConfigZapper.zapTrConfig : start invoke init()
init: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@57e91506
[WARNING ] CWWKS1783W: The OpenID Connect client [myConfig] includes [nonce] in the values that are specified by the [forwardLoginParameter] configuration attribute. The specified values will be ignored.
[WARNING ] CWWKS1783W: The OpenID Connect client [myConfig] includes [scope, redirect_uri] in the values that are specified by the [forwardLoginParameter] configuration attribute. The specified values will be ignored.
[WARNING ] CWWKS1783W: The OpenID Connect client [myConfig] includes [redirect_uri, client_id] in the values that are specified by the [forwardLoginParameter] configuration attribute. The specified values will be ignored.
[WARNING ] CWWKS1783W: The OpenID Connect client [myConfig] includes [scope] in the values that are specified by the [forwardLoginParameter] configuration attribute. The specified values will be ignored.
[WARNING ] CWWKS1783W: The OpenID Connect client [myConfig] includes [scope, nonce] in the values that are specified by the [forwardLoginParameter] configuration attribute. The specified values will be ignored.
[WARNING ] CWWKS1783W: The OpenID Connect client [myConfig] includes [scope, redirect_uri] in the values that are specified by the [forwardLoginParameter] configuration attribute. The specified values will be ignored.
registerLoggerHandlerSingleton: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@57e91506
captureSystemStreams: CurrentCOH is : com.ibm.websphere.ras.CapturedOutputHolder@57e91506
TrConfigZapper.zapTrConfig : finished invoke init()
SharedOutputManager captured the following:
-- System.out -------------------------------------------------
Entering test: test_getPrivateKeyForClientAuthentication_nullKeyAliasName
Exiting test: test_getPrivateKeyForClientAuthentication_nullKeyAliasName
Entering test: test_getPrivateKeyForClientAuthentication_emptyKeyAliasName
Exiting test: test_getPrivateKeyForClientAuthentication_emptyKeyAliasName
Entering test: test_getPrivateKeyForClientAuthentication_nullKeyStoreRef
Exiting test: test_getPrivateKeyForClientAuthentication_nullKeyStoreRef
Entering test: test_getPrivateKeyForClientAuthentication_emptyKeyStoreRef
Exiting test: test_getPrivateKeyForClientAuthentication_emptyKeyStoreRef
Entering test: test_getPrivateKeyForClientAuthentication
Exiting test: test_getPrivateKeyForClientAuthentication
Entering test: test_setAuthMethodSpecificSettings_gettingKeyThrowsException
Exiting test: test_setAuthMethodSpecificSettings_gettingKeyThrowsException
Entering test: test_setAuthMethodSpecificSettings
Exiting test: test_setAuthMethodSpecificSettings
-- System.err -------------------------------------------------
-- Messages -------------------------------------------------
[12/06/2023, 12:14:51:173 BST] 00000001 SystemOut O Entering test: test_getPrivateKeyForClientAuthentication_nullKeyAliasName
[12/06/2023, 12:14:51:173 BST] 00000001 SystemOut O Exiting test: test_getPrivateKeyForClientAuthentication_nullKeyAliasName
[12/06/2023, 12:14:51:174 BST] 00000001 SystemOut O Entering test: test_getPrivateKeyForClientAuthentication_emptyKeyAliasName
[12/06/2023, 12:14:51:174 BST] 00000001 SystemOut O Exiting test: test_getPrivateKeyForClientAuthentication_emptyKeyAliasName
[12/06/2023, 12:14:51:175 BST] 00000001 SystemOut O Entering test: test_getPrivateKeyForClientAuthentication_nullKeyStoreRef
[12/06/2023, 12:14:51:175 BST] 00000001 SystemOut O Exiting test: test_getPrivateKeyForClientAuthentication_nullKeyStoreRef
[12/06/2023, 12:14:51:176 BST] 00000001 SystemOut O Entering test: test_getPrivateKeyForClientAuthentication_emptyKeyStoreRef
[12/06/2023, 12:14:51:176 BST] 00000001 SystemOut O Exiting test: test_getPrivateKeyForClientAuthentication_emptyKeyStoreRef
[12/06/2023, 12:14:51:176 BST] 00000001 SystemOut O Entering test: test_getPrivateKeyForClientAuthentication
[12/06/2023, 12:14:51:186 BST] 00000001 SystemOut O Exiting test: test_getPrivateKeyForClientAuthentication
[12/06/2023, 12:14:51:186 BST] 00000001 SystemOut O Entering test: test_setAuthMethodSpecificSettings_gettingKeyThrowsException
[12/06/2023, 12:14:51:188 BST] 00000001 SystemOut O Exiting test: test_setAuthMethodSpecificSettings_gettingKeyThrowsException
[12/06/2023, 12:14:51:188 BST] 00000001 SystemOut O Entering test: test_setAuthMethodSpecificSettings
[12/06/2023, 12:14:51:189 BST] 00000001 SystemOut O Exiting test: test_setAuthMethodSpecificSettings
-- Trace -------------------------------------------------
Standard error
[ERROR ] CWWKS1541E: The back-channel logout request sent to [/oidcclient/backchannel_logout/myClient] encountered an error. CWWKS1542E: The back-channel logout request is not valid because the logout_token parameter is missing or empty.
[ERROR ] CWWKS1778E: The token requested by [client01] failed validation because the signature is missing from the token. The signatureAlgorithm attribute for the OpenID Connect client is set to [HS256]. This signature algorithm setting requires a signature.
[ERROR ] CWWKS1751E: Validation failed for the ID token requested by [client01] because the (iss) issuer [https://localhost/oidc/provider/NOPE] specified in the token does not match the [issuerIdentifier] attribute [https://localhost/oidc/provider/OP] for the provider specified in the OpenID Connect client configuration. Check the issuerIdentifier attribute on the client configuration.
[ERROR ] CWWKS1749E: The User Info data [{"sub":"bogususer","iss":"https:superfoo","name":"bogususer"}] is invalid because the sub claim does not match the sub claim of the ID Token [testuser].
[ERROR ] CWWKS1749E: The User Info data [{"sub":"testuser","iss":"https:superfoo","name":"testuser"}] is invalid because the sub claim does not match the sub claim of the ID Token [null].