My Oracle Support Banner

2 Legged Authentication Connection Test Fails With Error "CASDK-0004: Failed to authenticate against the application with the credentials provided" (Doc ID 2256328.1)

Last updated on NOVEMBER 16, 2020

Applies to:

Integration Cloud Service - Version 16.4.1 and later
Oracle Integration-OIC - Version 18.2.5 and later
Information in this document applies to any platform.

Symptoms

This knowledge article reflects updated product names. Oracle Integration (OIC) was formerly known as Autonomous Oracle Integration Cloud (AOIC, A-OIC, AIC, OAIC,OIC, OAC). Please see KM document for the full list of recently renamed PaaS services.

When rest end point needs 2 legged authentication, connection test from ICS Rest adapter fails with exception.

[2017-04-14T04:49:54.741+00:00] [AdminServer] [ERROR] [ICS-10978] [oracle.ics.webconsole.connection] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: test] [ecid: <ECID>,0:3] [APP: <APPSERVER>] [DSID: <DSID>] Unable to test connection "CONCUR_REST".[[
oracle.ics.webconsole.common.exception.GeneralException: ICS-10977: Unable to test the connection. Error code : oracle.ics.common.exception.NonICSRuntimeException: CASDK-0004: Failed to authenticate against the application with the credentials provided.
at oracle.ics.webconsole.model.manager.AppConfigManager.testApplicationInstance(AppConfigManager.java:1996)
at oracle.ics.webconsole.view.beans.AppConfigCreateResourceBean.testAppInstance(AppConfigCreateResourceBean.java:1367)
at oracle.ics.webconsole.view.beans.AppConfigCreateBean.testAppInstance(AppConfigCreateBean.java:689)
...
Caused by: oracle.ics.common.exception.NonICSRuntimeException: CASDK-0004: Failed to authenticate against the application with the credentials provided
at oracle.ics.webconsole.model.manager.AppConfigManager.testApplicationInstance(AppConfigManager.java:1994)
... 91 more
Caused by: java.lang.IllegalStateException: Cannot request OAuth access token.
at oracle.cloud.security.oauth.client.util.OAuthUtil.getTwoLeggedOAuthAccessToken(OAuthUtil.java:1297)
at oracle.tip.tools.ide.adapters.rest.plugin.RestCloudConnection.testPing(RestCloudConnection.java:212)
at oracle.tip.tools.ide.adapters.rest.plugin.RestCloudConnection.ping(RestCloudConnection.java:122)
at oracle.ics.webconsole.model.manager.AppConfigManager.testApplicationInstance(AppConfigManager.java:1971)
... 91 more
Caused by: java.lang.NullPointerException
at java.net.URI$Parser.parse(URI.java:3023)
at java.net.URI.(URI.java:595)
at java.net.URI.create(URI.java:857)
at com.sun.jersey.api.client.Client.resource(Client.java:434)
at oracle.cloud.security.oauth.client.OAuthHttpClient.getResourceBuilder(OAuthHttpClient.java:72)
at oracle.cloud.security.oauth.client.OAuthHttpClient.getResponse(OAuthHttpClient.java:55)
at oracle.cloud.security.oauth.client.OAuthHttpClient.invoke(OAuthHttpClient.java:50)
at oracle.cloud.security.oauth.client.DefaultAuthSecurityHandler.requestAccessToken(DefaultAuthSecurityHandler.java:158)
at oracle.cloud.security.oauth.client.util.OAuthUtil.getTwoLeggedOAuthAccessToken(OAuthUtil.java:1291)
... 94 more
]]
[2017-04-14T05:20:26.744+00:00] [AdminServer] [ERROR] [] [oracle.soa.adapter.cloud] [tid: [ACTIVE].ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERID>] [ecid: <ECID>,0:3] [APP: <APPSERVER>] [DSID: <DSID>] [AccessToken] Null or empty access token was received with status [200].GET https://<HOSTNAME>/oauth2/accesstoken.ashx returned a response status of 200 OK

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.