okta / okta-sdk-dotnet

A .NET SDK for interacting with the Okta management API, enabling server-side code to manage Okta users, groups, applications, and more.
Other
160 stars 100 forks source link

Fix "Invalid audience" issue #604

Closed laura-rodriguez closed 2 years ago

laura-rodriguez commented 2 years ago

The issue was caused due to an extra "/" in the Okta domain URL. Now, we make sure to sanitize the URL.

Before

  "aud": "https://<MY_ORG_URL>//oauth2/v1/token"

Now

  "aud": "https://<MY_ORG_URL>/oauth2/v1/token"

Fix #600