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 APRIL 22, 2017

Applies to:

Integration Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

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: 005JH^gBvnYA9T3_RlP5id0000dP0000CW,0:3] [APP: icswebapp] [DSID: 0000LheiBRJ03z65vN5EiX1Omez000001s] 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: test] [ecid: 005JHaPI4xjA9T3_RlP5id0000dP000073,0:3] [APP: icswebapp] [DSID: 0000LheiBRJ03z65vN5EiX1Omez000001s] [AccessToken] Null or empty access token was received with status [200].GET https://example.com/oauth2/accesstoken.ashx returned a response status of 200 OK

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms