Not able to create a successful connection for OPP

Hello,

Getting below error message while I am trying to create a connection with my OPP agent.

“The connector configuration could not be tested. Make sure that the URL, Authentication Parameters are correct and that there is an implementation available at the URL provided. API error: The Provisioning Agent call to getConnectorConfig failed. Error code: 404, error: . Errors reported by the connector : <!doctype html>HTTP Status 404 – Not Foundbody {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}

HTTP Status 404 – Not Found


Type Status Report

Message /oppagent.okta/ServiceProviderConfigs

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


Apache Tomcat/9.0.29

Any suggestions please.

Thanks

make sure you configured URL correctly in Okta for your provisioning section of the application. You may want to check OPP agent logs to figure additional details of the error

Thank you for the response.

I did not find any clue in the agent logs. Copying the log from agent here -

[ 2020-07-02 11:42:44.858 ] [ pool-1-thread-1 ] [ScimClientImpl] [ method=getConnectorConfig, org=00o1slvfxcYmv8u84357, aid=0oa3nhvz4qxtqmxPG357 ] [INFO] - making GET request to https://localhost:8443/oppagent.okta/ServiceProviderConfigs
[ 2020-07-02 11:42:44.915 ] [ pool-1-thread-1 ] [ScimClientImpl] [ method=getConnectorConfig, org=00o1slvfxcYmv8u84357, aid=0oa3nhvz4qxtqmxPG357 ] [WARN] - error status of 404 received from https://localhost:8443/oppagent.okta/ServiceProviderConfigs
[ 2020-07-02 11:42:44.916 ] [ pool-1-thread-1 ] [ScimConnectorExecutorImpl] [ method=getConnectorConfig, org=00o1slvfxcYmv8u84357, aid=0oa3nhvz4qxtqmxPG357 ] [ERROR] - call to https://localhost:8443/oppagent.okta/ - getConnectorConfig failed for action rpc::app.onprem_provisioning.agent.reply.ok7-majorapp09c.auw2p.internal//1593670395039//67e8a3b0-0555-44f2-b3c6-648bc1c74434
com.okta.scim.ScimResponseException: null
at com.okta.scim.ScimClientImpl.makeRequest(ScimClientImpl.java:370)
at com.okta.scim.ScimClientImpl.performGet(ScimClientImpl.java:241)
at com.okta.scim.ScimClientImpl.getServiceProviderConfigs(ScimClientImpl.java:213)
at com.okta.opp.connectors.scim.ScimConnectorExecutorImpl.getConnectorConfig(ScimConnectorExecutorImpl.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.okta.opp.handlers.ExecuteScriptActionHandler.performAction(ExecuteScriptActionHandler.java:63)
at com.okta.agent.OktaAgent$2.run(OktaAgent.java:160)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Hi Friends,

Could you please give me the steps to setup a eclipse project(What type of project we need to select) for OPP implementation.

Thanks,
Venkat

There is a guide on Okta site, how to develop the connector. You may want to start from there - https://help.okta.com/en/prod/Content/Topics/Provisioning/opp/OPP-build-SCIM-using-SDK.htm

Have you implemented a method which returns “provisioning capabilities” supported by your connector? It seems to me from the log, that it’s not properly implemented, hence the exception.

Hello Philip,

Yes, I am and here is the sample piece of code for that -

public UserManagementCapabilities[] getImplementedUserManagementCapabilities() {

	return UserManagementCapabilities.values();
}

and is it got called, if you enable logging within your code?

also, what happens if you try to curl -kv https://localhost:8443/oppagent.okta/ServiceProviderConfigs ?