Skip to content
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

Open
bwanshoom opened this issue Jul 29, 2023 · 5 comments
Open

Problem with JWT and My Domain/Enhanced Domains #672

bwanshoom opened this issue Jul 29, 2023 · 5 comments

Comments

@bwanshoom
Copy link

bwanshoom commented Jul 29, 2023

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?

@bwanshoom
Copy link
Author

This is only applicable if instance_url is passed. If that parameter is omitted, it works correctly.

@keith-rhodes-0723
Copy link

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)?

@jon-wobken
Copy link
Collaborator

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.

@keith-rhodes-0723
Copy link

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?

@jon-wobken
Copy link
Collaborator

Just need to figure out why we are getting an auth error on the travis-ci deployment to pypi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants