Class com.ibm.ws.security.openidconnect.client.internal.OidcClientImplGetOidcProviderTest

2

tests

0

failures

0

ignored

0.028s

duration

100%

successful

Tests

Test Duration Result
testNeedProviderHintFalse 0.005s passed
testNeedProviderHintTrue 0.023s passed

Standard output

    TrConfigZapper.zapTrConfig : start invoke init()
init: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@56b90faa
[WARNING ] CWWKS1716E: The resource server failed the authentication request because the access token which is in the request has expired. The expiration time ("exp") is [Mon Jun 05 05:26:13 BST 2023] and the current time is [Wed Jun 05 05:21:13 BST 2024].
[WARNING ] CWWKS1717E: The resource server failed the authentication request because the access token which is in the request is not valid. The issue at time ("iat") [Thu Jun 05 05:26:14 BST 2025] is after the current time [Wed Jun 05 05:31:14 BST 2024] and this condition is not allowed.
registerLoggerHandlerSingleton: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@56b90faa
captureSystemStreams: CurrentCOH is : com.ibm.websphere.ras.CapturedOutputHolder@56b90faa
    TrConfigZapper.zapTrConfig : finished invoke init()
    TrConfigZapper.zapTrConfig : start invoke init()
init: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@82cf91b6
[WARNING ] CWWKS1716E: The resource server failed the authentication request because the access token which is in the request has expired. The expiration time ("exp") is [Mon Jun 05 05:26:13 BST 2023] and the current time is [Wed Jun 05 05:21:13 BST 2024].
[WARNING ] CWWKS1717E: The resource server failed the authentication request because the access token which is in the request is not valid. The issue at time ("iat") [Thu Jun 05 05:26:14 BST 2025] is after the current time [Wed Jun 05 05:31:14 BST 2024] and this condition is not allowed.
registerLoggerHandlerSingleton: Did BaseTraceService.captureSystemStreams() already get excuted? : false. Current COH is com.ibm.websphere.ras.CapturedOutputHolder@82cf91b6
captureSystemStreams: CurrentCOH is : com.ibm.websphere.ras.CapturedOutputHolder@82cf91b6
    TrConfigZapper.zapTrConfig : finished invoke init()

Standard error

[ERROR   ] CWWKS1722E: The resource server failed the authentication request because the access token does not contain the claim [bad_user] specified by the [userIdentifier] attribute.
[ERROR   ] CWWKS1735E: The resource server failed the authentication request because the response from the validation end point [https://localhost:8020/root] has the [iss] claim, but the [disableIssChecking] attribute is set to true.
[ERROR   ] CWWKS1727E: The resource server failed the authentication request because it cannot validate the access token due to an error [Cannot invoke "java.util.Map.get(java.lang.Object)" because "responseMap" is null]. The validation method is [introspect], and the validation endpoint url is [https://localhost:8020/root].
[ERROR   ] CWWKS1707E: The OpenID Connect client [null] was unable to create an SSL context due to [com.ibm.websphere.ssl.SSLException: CWWKS1707E: The OpenID Connect client [null] was unable to create an SSL context due to [Null ssl socket factory]. Ensure that your SSL feature is properly configured.
	at com.ibm.ws.security.openidconnect.client.internal.AccessTokenAuthenticator.getSSLSocketFactory(AccessTokenAuthenticator.java:297)
	at com.ibm.ws.security.openidconnect.client.internal.AccessTokenAuthenticator.authenticate(AccessTokenAuthenticator.java:150)
	at com.ibm.ws.security.openidconnect.client.internal.AccessTokenAuthenticatorTest.testAuthenticate_ThrowsSSLException(AccessTokenAuthenticatorTest.java:438)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:574)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
	at test.common.SharedOutputManager$1.evaluate(SharedOutputManager.java:622)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:47)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:47)
	at org.junit.rules.RunRules.evaluate(RunRules.java:18)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:112)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:60)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:574)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at jdk.proxy1/jdk.proxy1.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
]. Ensure that your SSL feature is properly configured.
[ERROR   ] CWWKS1718E: The resource server failed the authentication request because the access token which is in the request does not have the [exp] claim. The required claims are [iss, iat, exp].
[ERROR   ] CWWKS1718E: The resource server failed the authentication request because the access token which is in the request does not have the [iat] claim. The required claims are [iss, iat, exp].
[ERROR   ] CWWKS1719E: The resource server failed the authentication request because the access token which is in the request cannot be used. The not before time ("nbf") [Thu Jun 05 05:26:14 BST 2025] is after the current time [Wed Jun 05 05:31:14 BST 2024] and this condition is not allowed.
[ERROR   ] CWWKS1721E: The resource server received an error [] while it was attempting to validate the access token. It is either expired or cannot be recognized by the validation end point [https://localhost:8020/root].
[ERROR   ] CWWKS1725E: The resource server failed to validate the access token because the validationEndpointUrl [https://localhost:8020/root] was either not a valid URL or could not perform the validation.
[ERROR   ] CWWKS1725E: The resource server failed to validate the access token because the validationEndpointUrl [https://localhost:8020/root] was either not a valid URL or could not perform the validation.
[ERROR   ] CWWKS1722E: The resource server failed the authentication request because the access token does not contain the claim [bad_user] specified by the [userIdentifier] attribute.
[ERROR   ] CWWKS1735E: The resource server failed the authentication request because the response from the validation end point [https://localhost:8020/root] has the [iss] claim, but the [disableIssChecking] attribute is set to true.
[ERROR   ] CWWKS1727E: The resource server failed the authentication request because it cannot validate the access token due to an error [Cannot invoke "java.util.Map.get(java.lang.Object)" because "responseMap" is null]. The validation method is [introspect], and the validation endpoint url is [https://localhost:8020/root].
[ERROR   ] CWWKS1707E: The OpenID Connect client [null] was unable to create an SSL context due to [com.ibm.websphere.ssl.SSLException: CWWKS1707E: The OpenID Connect client [null] was unable to create an SSL context due to [Null ssl socket factory]. Ensure that your SSL feature is properly configured.
	at com.ibm.ws.security.openidconnect.client.internal.AccessTokenAuthenticator.getSSLSocketFactory(AccessTokenAuthenticator.java:297)
	at com.ibm.ws.security.openidconnect.client.internal.AccessTokenAuthenticator.authenticate(AccessTokenAuthenticator.java:150)
	at com.ibm.ws.security.openidconnect.client.internal.AccessTokenAuthenticatorTest.testAuthenticate_ThrowsSSLException(AccessTokenAuthenticatorTest.java:438)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:574)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
	at test.common.SharedOutputManager$1.evaluate(SharedOutputManager.java:622)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:47)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:47)
	at org.junit.rules.RunRules.evaluate(RunRules.java:18)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:112)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:60)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:574)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at jdk.proxy1/jdk.proxy1.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
]. Ensure that your SSL feature is properly configured.
[ERROR   ] CWWKS1718E: The resource server failed the authentication request because the access token which is in the request does not have the [exp] claim. The required claims are [iss, iat, exp].
[ERROR   ] CWWKS1718E: The resource server failed the authentication request because the access token which is in the request does not have the [iat] claim. The required claims are [iss, iat, exp].
[ERROR   ] CWWKS1719E: The resource server failed the authentication request because the access token which is in the request cannot be used. The not before time ("nbf") [Thu Jun 05 05:26:14 BST 2025] is after the current time [Wed Jun 05 05:31:14 BST 2024] and this condition is not allowed.
[ERROR   ] CWWKS1721E: The resource server received an error [] while it was attempting to validate the access token. It is either expired or cannot be recognized by the validation end point [https://localhost:8020/root].
[ERROR   ] CWWKS1725E: The resource server failed to validate the access token because the validationEndpointUrl [https://localhost:8020/root] was either not a valid URL or could not perform the validation.
[ERROR   ] CWWKS1725E: The resource server failed to validate the access token because the validationEndpointUrl [https://localhost:8020/root] was either not a valid URL or could not perform the validation.