-
Notifications
You must be signed in to change notification settings - Fork 159
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
Error importing client with keyword replace mappings #415
Comments
Noticing a couple things at first glance. Firstly, the |
Sorry, might have been an error when i obscured information for posting here. In my configuration there is no difference between the replacement and wrapped variable name.
So it actually seems to be replacing the value but for some reason the h from "https" is an unexpected token. Thanks |
@JHOmega Ah I see, thanks for clarifying that. I agree with your assessment that the h in https is the unexpected token. The variable replacement mechanism is something that needs a bit of work, see: #125 #291. And admittedly, I'll need to familiarize myself with that part of the code before I can make a more informed recommendation. However, one temporary workaround I can think of is wrapping your itemized values with single quotes:
So something like that is worth a try until we can get a better solution in the coming weeks/months. |
I'll try "ALLOWED_CALLBACKS": ["'http://somewhere-obscured.com/callback'", 'http://localhost:xxxx/callback'"] with @@-subsitution and ##-substitution. Thanks. |
I tried with @@-replacement without any wrapping "" in the My App.json and for some reason i no longer get the invalid json error and it works? The json is clearly invalid but i don't get any errors when deploying the CLI and it seems to work. Not sure why this happened, i moved the code to a different repo and used the directory structure. |
@JHOmega I'm actually looking into this as we speak. Do you mind providing a working example? |
Sure. Here you go: config.json: { My App.json: { |
@JHOmega After looking into this a bit further, what you've discovered is the intended usage of the {
"allowed_hosts": "@@ALLOWED_HOSTS@@"
} This new behavior can be used with v7.4.0. |
Cool! Thanks alot. |
Please do not report security vulnerabilities here. The Responsible Disclosure Program details the procedure for disclosing security issues.
Thank you in advance for helping us to improve this library! Please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community or Auth0 Support. Finally, to avoid duplicates, please search existing Issues before submitting one here.
By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct.
Description
First of all i want make clear that i want to use the directory structure.
I'm trying to setup the auth0 deploy cli to deploy to multiple environments. For one environment i want a list of callbacks configured in my client.json and for another environment a different list with a different number of callbacks.
Reproduction
my dev.json:
my client config: (My App.json)
and i get:
I have tried by enclosing @@ in quotes: "@@ALLOWED_CALLBACKS@@" the error i get then is:
I have tride by enclosing with ## but then i get:
Im out of ideas what to try, is this a bug or a feature? idk
Environment
7.3.7
The text was updated successfully, but these errors were encountered: