-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with JWT and My Domain/Enhanced Domains #672
Comments
This is only applicable if instance_url is passed. If that parameter is omitted, it works correctly. |
I have the same requirement to do JWT-based auth along with My Domains. It looks like the only solution is to fork this repo and fix (or contribute)? |
This is fixed is the most recent release. Just need to get it pushed back to pypi since there was an error in the pypi deployment. |
it looks like you pass in the "my" instance url in the instance_url and the domain field contains "login" vs. "test" for the aud parameter; nice. Any idea when the latest version will be pushed to pypi? |
Just need to figure out why we are getting an auth error on the travis-ci deployment to pypi. |
With My Domains enabled, domain must be set to the My Domain prefix (e.g. my-custom-domain.my or my-custom-domain.my.sandbox) in order for the token URL to be set correctly. However, the aud portion of the JWT request must be either login or test - it cannot be the custom portion or you'll receive an "invalid audience" error.
There is currently no way to accommodate this in the library - it uses the domain parameter for both. Am I missing something?
The text was updated successfully, but these errors were encountered: