-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Labels
Description
Description
Provide a clear and concise description of the issue, including what you expected to happen.
Placeholders ##x## or @@x@@ don't support concatenating arrays. Sometimes you would like to concatenate arrays, e.g. allowed callback URLs, logout URLs or web origins. For example having base/global allowed URLs defined, and then adding to them for all clients/applications.
config.json
{
"AUTH0_KEYWORD_REPLACE_MAPPINGS": {
"GLOBAL_WEB_ORIGINS": [
"http://local.me:8080",
"http://localhost",
"http://localhost:3000"
]
}
}def/clients/A.json
Either ##:
{
"web_origins": [
"##GLOBAL_WEB_ORIGINS##",
"http://a.foo.com",
"https://a.foo.com"
]
}or @@
{
"web_origins": [
@@GLOBAL_WEB_ORIGINS@@,
"http://a.foo.com",
"https://a.foo.com"
]
}Expected result:
{
"web_origins": [
"http://local.me:8080",
"http://localhost",
"http://localhost:3000",
"http://a.foo.com",
"https://a.foo.com"
]
}Actual result:
I get an error for @@ but for ## I get the following:
{
"web_origins": [
"http://local.me:8080,http://localhost,http://localhost:3000",
"http://a.foo.com",
"https://a.foo.com"
]
}Environment
Please provide the following:
- Version of this library used: 3.6.3
- Other relevant versions (language, server software, OS, browser): Node 8.15.1, Linux Mint, Ubuntu 18.04
- Other modules/plugins/libraries that might be involved: N/A
tkurokawa, dmetzgar, SAGV, bchociej, Hypenate and 4 more