amine_desjardins

Unable to generate API token

0 votes

Hello,

I am in the process of testing the migration of API key to API Token. I created a client app in the test account, got the client id and client secret. But I can't retrieve the Token API from the ApiTokenConfig

Here is the error message I get:

Caused by: java.lang.RuntimeException: com.silanis.esl.sdk.EslException: Unable to create access token for ApiTokenConfig{baseUrl='http://localhost:8881/api', clientAppId='.......................', clientAppSecret='................', tokenType=OWNER, senderEmail='null'}

I hid clientAppId and clientAppSecret by dots

Is there a configuration missing on your side so that I can retrieve the ApiToken?

Thanks


Reply to: Unable to generate API token

0 votes

Hi Amine,

 

From the error message:

-Are you specifying the base URL as "http://localhost:8881/api"? Have you set up a reverse proxy at local?

-Could you also try to remove the "/api" in the path? 

-Are you able to make SDK calls with this endpoint, instead of the actual OSS instance URL?

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Unable to generate API token

0 votes

Thanks @Duo_Liang

The problem was in the base URL. 


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off