Class com.ibm.ws.security.openidconnect.clients.common.token.auth.PrivateKeyJwtAuthMethodTest
Tests
Test |
Duration |
Result |
test_getPrivateKeyForClientAuthentication |
0.005s |
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.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@613e3b18
[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@613e3b18
captureSystemStreams: CurrentCOH is : com.ibm.websphere.ras.CapturedOutputHolder@613e3b18
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 -------------------------------------------------
[14/05/2023, 20:10:34:041 BST] 00000001 SystemOut O Entering test: test_getPrivateKeyForClientAuthentication_nullKeyAliasName
[14/05/2023, 20:10:34:041 BST] 00000001 SystemOut O Exiting test: test_getPrivateKeyForClientAuthentication_nullKeyAliasName
[14/05/2023, 20:10:34:042 BST] 00000001 SystemOut O Entering test: test_getPrivateKeyForClientAuthentication_emptyKeyAliasName
[14/05/2023, 20:10:34:042 BST] 00000001 SystemOut O Exiting test: test_getPrivateKeyForClientAuthentication_emptyKeyAliasName
[14/05/2023, 20:10:34:042 BST] 00000001 SystemOut O Entering test: test_getPrivateKeyForClientAuthentication_nullKeyStoreRef
[14/05/2023, 20:10:34:043 BST] 00000001 SystemOut O Exiting test: test_getPrivateKeyForClientAuthentication_nullKeyStoreRef
[14/05/2023, 20:10:34:043 BST] 00000001 SystemOut O Entering test: test_getPrivateKeyForClientAuthentication_emptyKeyStoreRef
[14/05/2023, 20:10:34:043 BST] 00000001 SystemOut O Exiting test: test_getPrivateKeyForClientAuthentication_emptyKeyStoreRef
[14/05/2023, 20:10:34:044 BST] 00000001 SystemOut O Entering test: test_getPrivateKeyForClientAuthentication
[14/05/2023, 20:10:34:049 BST] 00000001 SystemOut O Exiting test: test_getPrivateKeyForClientAuthentication
[14/05/2023, 20:10:34:049 BST] 00000001 SystemOut O Entering test: test_setAuthMethodSpecificSettings_gettingKeyThrowsException
[14/05/2023, 20:10:34:050 BST] 00000001 SystemOut O Exiting test: test_setAuthMethodSpecificSettings_gettingKeyThrowsException
[14/05/2023, 20:10:34:051 BST] 00000001 SystemOut O Entering test: test_setAuthMethodSpecificSettings
[14/05/2023, 20:10:34:051 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].