I tried a couple of different things. They all result in the same exception:
Exception in thread "main" java.lang.IllegalStateException: Unable to load credentials from any provider in the chain.
at com.stormpath.sdk.impl.authc.credentials.ClientCredentialsProviderChain.getClientCredentials(ClientCredentialsProviderChain.java:55)
at com.stormpath.sdk.impl.client.DefaultClientBuilder.build(DefaultClientBuilder.java:314)
at quickstart.oktaRC.main(oktaRC.java:13)
Added the following environment variables to Intellij (note- these are example/fake values):
I'm having trouble creating a client with 2.0.0-okta-rc1. I wanted to add this to a GH issue in case others are having the same problem.
The pom.xml file contains these dependencies:
I tried a couple of different things. They all result in the same exception:
STORMPATH_CLIENT_BASEURL=https://dev-55462823.oktapreview.com;OKTA_APPLICATION_ID=0oaaahvk62tXGkyQk0h7;OKTA_API_TOKEN=0GF9H-ASq49SS-6py4RODBFKgxkU_cxWFhtM-LeqDv;STORMPATH_CLIENT_APIKEY_ID=1EVE7LMD9K04T80C7WEV8606P;STORMPATH_CLIENT_APIKEY_SECRET=MYz5CoS+Hsjmzr0K3DF9RYt49hbmEp3xJ499oTsX1d8
Tried the same without STORMPATH_CLIENT_APIKEY_ID and STORMPATH_CLIENT_APIKEY_SECRET defined.
Tried the same without stormpath.client.apiKey.id and stormpath.client.apiKey.secret defined.
My tester class is very simple: