I have exactly the same issue as https://github.com/auth0/auth0-deploy-cli/issues/88
RealJohnnyBravo opened this issue · 2 comments
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
I have exactly the same issue as #88
Tried all the solutions mentioned in that ticket - nothing helped.
I need manually go to auth0 page and do some change like add and then remove space - only in such case auth0 does not show me "callbacks" must be a valid uri auth0.
M setup:
"CALLBACKS": "http://localhost:3000/api/auth/callback/auth0, https://test1.com/api/auth/callback/auth0, https://test2.com/api/auth/callback/auth0, https://test3.com/api/auth/callback/auth0",
"callbacks": [
"@@CALLBACKS@@"
]
Also tried with hashes and with "CALLBACKS" as array.
### Expectation
No manual intervention is needed.
### Reproduction
Provided in the description
### Deploy CLI version
N/A
### Node version
N/A
This should work for you:
{
"callbacks": "@@CALLBACKS@@"
}
Admittedly, this could be documented better so I'm adding a directory format example to the docs: #787.
If I do as suggested, I am getting this error:
Bad Request: Payload validation error: 'Expected type array but found type string' on property allowed_logout_urls (URLs that are valid to redirect to after logout from Auth0). (also) Payload validation error: 'Expected type array but found type string' on property callbacks (A set of URLs that are valid to call back from Auth0 when authenticating users).