question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application callback URLs encoding problem

See original GitHub issue

When I deploy the following application

clients:
  - name: 'MyApp'
    app_type: 'spa'
    oidc_conformant: true
    is_first_party: true
    callbacks:
      - '##MYAPP_CALLBACK_URLS##'
    jwt_configuration:
      alg: 'RS256'
      lifetime_in_seconds: 36000
      secret_encoded: false
    grant_types:
      - authorization_code
      - implicit
      - refresh_token

with MYAPP_CALLBACK_URLS set to

MYAPP_CALLBACK_URLS=http://localhost:3000/authenticated, http://localhost:3080/authenticated

Auth0 complains that callback URL is not listed in the app. When I open the app settings and manually delete and re-add the spaces everything works. Visually there’s no difference but certainly the spaces are not what they appear to be.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
zxan1285commented, Mar 13, 2019
callbacks:
 - '##CALLBACK_URL_1##'
 - '##CALLBACK_URL_2##'

are working fine.

callbacks: @@MYAPP_CALLBACK_URLS@@

working fine if MYAPP_CALLBACK_URLS is defined as array in the config:

"AUTH0_KEYWORD_REPLACE_MAPPINGS": {
    "MYAPP_CALLBACK_URLS": ["https://example.com/login", "http://localhost/login"]
  }

and

callbacks: ##MYAPP_CALLBACK_URLS##

working fine if MYAPP_CALLBACK_URLS is defined as stringified array in the config:

"AUTH0_KEYWORD_REPLACE_MAPPINGS": {
    "MYAPP_CALLBACK_URLS": "[\"https://example.com/login\", \"http://localhost/login\"]"
  }
0reactions
nilobarpcommented, Mar 21, 2019

I will close the issue for now. I will try doing what is suggested by @zxan1285 and come back if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Encoding callbacks - Adjust Help Center
Encoding callbacks. URL encoding is the practice of converting sensitive sections of complex URLs into code so that they can be read by...
Read more >
Callback URLs | Docs | Twitter Developer Platform
If you receive an error, please make sure that the callback URL that you are using in your authentication requests is HTTP encoded,...
Read more >
Path encoding on callback URL? - Scripting - Drafts Community
I'm creating an action to send text to Obsidian via the URL scheme. ... a look to determine if it is a data/action...
Read more >
Encode “/“ inside CallbackURL - Scriptable - Automators Talk
The CallbackAPIs automatically perform URL encoding on parameters but not for the slash character where I believe it should be encoded as %2F....
Read more >
Callback problem with an app - Security & authorization (OAuth)
<?xml version='1.0' encoding='UTF-8'?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found