You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The changes from #793 have been included since version 7.17.3.
Due to this update, the name of the configuration file saved under /grants has changed when exported with the "AUTH0_PRESERVE_KEYWORDS": true setting.
The file name seems to have been inappropriately transformed by preserveKeywords.
Specifically, it is as follows:
Previously, it was /grants/{client_id}-Auth0 Management API.json
Now, it is /grants/{client_id}-https---##AUTH0_DOMAIN##-api-v2-.json
It appears that {client_id}-{audience}.json has been converted into a string by preserveKeywords.
(And this issue continues to be reproduced in the latest version, 7.17.5.)
During import, it appears that /grants/client_name-Auth0 Management API.json is still being referenced.
Therefore, I perceive that the expected behavior should be exporting the file name in the same format as before, /grants/client_name-Auth0 Management API.json.
Reproduction
Set the AUTH0_PRESERVE_KEYWORDS option to true.
Execute a0deploy export command.
Deploy CLI version
7.17.5
Node version
16.13.1
The text was updated successfully, but these errors were encountered:
@satokaito Thanks for opening this issue. To be clear, is the issue here the file naming? As in, you're expecting a different filename without the keyword replacement marker or is there a behavioral change that impedes your ability to import?
In normal cases here, you'd expect the name of the client to be in the filename instead of the audience. At first glance it is very possible that the code that pertains to generating the name does not consider replaced keyword values and only the markers. I will need to do further investigation to confirm this theory.
Firstly, I want to say we really appreciate auth0-deploy-cli, which has been a tremendous help for our daily operations.
To clarify on the issue at hand, it indeed revolves around the file naming. I'd like to add that there have been no behavioral changes that impede the importing process.
In the past, prior to the version upgrade, the client's name was included in the file name. I believe that was the most suitable behavior.
Thank you for your continued support and for further investigating this matter.
Checklist
Description
The changes from #793 have been included since version 7.17.3.
Due to this update, the name of the configuration file saved under /grants has changed when exported with the
"AUTH0_PRESERVE_KEYWORDS": true
setting.The file name seems to have been inappropriately transformed by preserveKeywords.
Specifically, it is as follows:
Previously, it was
/grants/{client_id}-Auth0 Management API.json
Now, it is
/grants/{client_id}-https---##AUTH0_DOMAIN##-api-v2-.json
It appears that
{client_id}-{audience}.json
has been converted into a string by preserveKeywords.(And this issue continues to be reproduced in the latest version, 7.17.5.)
During import, it appears that /grants/client_name-Auth0 Management API.json is still being referenced.
Expectation
Looking at the tests written in https://github.com/auth0/auth0-deploy-cli/blob/v7.17.5/test/context/directory/clientGrants.test.js, it doesn't seem like the audience's URL becoming the file name is an expected behavior.
Therefore, I perceive that the expected behavior should be exporting the file name in the same format as before,
/grants/client_name-Auth0 Management API.json.
Reproduction
Deploy CLI version
7.17.5
Node version
16.13.1
The text was updated successfully, but these errors were encountered: