Skip to content

OAuth2 with clientId and clientSecret is failing #4

@HeikoNitrobox

Description

@HeikoNitrobox

Hi there,

somehow the creation of the ApiClient fails, when I am using clientId and clientSecret.

If I understand the code correctly, the SDK fails to gather the token URL. It tries to call GET https://ai-awscqa.avlr.sh/.well-known/openid-configuration and fails.
When I use a valid Bearertoken for the ApiClient creation everything works fine.

The Error message:
Exception when calling OpenIdConnect to fetch the token endpoint
java.net.ConnectException
at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:951)
at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:133)
at Avalara.SDK.OpenIdHelper.fetchOpenIdConnectObject(OpenIdHelper.java:38)
at Avalara.SDK.OpenIdHelper.populateConfigWithOpenIdDetails(OpenIdHelper.java:18)
at Avalara.SDK.ApiClient.(http://apiclient.java:107/)

Best regards,
Heiko

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions