-
Notifications
You must be signed in to change notification settings - Fork 173
Description
Checklist
- I have looked into the README and have not found a suitable solution or answer.
- I have looked into the documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have upgraded to the latest version of this tool and the issue still persists.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
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
- Set the AUTH0_PRESERVE_KEYWORDS option to true.
- Execute a0deploy export command.
Deploy CLI version
7.17.5
Node version
16.13.1