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

Generating token via CLI does not work with custom domains #956

Open
1 task done
pjain11 opened this issue Jan 4, 2024 · 1 comment
Open
1 task done

Generating token via CLI does not work with custom domains #956

pjain11 opened this issue Jan 4, 2024 · 1 comment
Labels
feature request A feature has been asked for or suggested by the community

Comments

@pjain11
Copy link

pjain11 commented Jan 4, 2024

Checklist

Describe the problem you'd like to have solved

I'm trying to generate token via auth0 CLI and the generated token places issuer value as being "TENANT_NAME.us.auth0.com" vs. Custom domain. We tried the following commands w/o any success:

auth0 login --tenant CUSTOM_DOMAIN_VALUE
auth0 test token --tenant CUSTOM_DOMAIN_VALUE

If we go via authorize url, use the base as CUSTOM_DOMAIN, the generated token correctly contains the ISSUER value being CUSTOM_DOMAIN. How to achieve this behavior via auth0 CLI?

Here's sample authorize url format that works:
https://CUSTOM_DOMAIN_VAL/authorize?response_type=token&client_id=CLIENT_ID_VALUE&redirect_uri=https://jwt.io&audience=MY_AUDIENCE_VAL&state=YOUR_STATE_VALUE

Describe the ideal solution

In the enterprise setup, using custom domain is very normal. CLI provides good way to generate tokens w/o writing extra code. Being able to generate token via CLI using custom domain will simplify the dev flow.

Alternatives and current workarounds

No response

Additional context

No response

@pjain11 pjain11 added the feature request A feature has been asked for or suggested by the community label Jan 4, 2024
@pjain11
Copy link
Author

pjain11 commented Jul 19, 2024

Any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community
Projects
None yet
Development

No branches or pull requests

1 participant