Auth0 Home Blog Docs

Redirect-rules/simple example - still valid?

redirect-rules

#1

I was working through this example https://github.com/auth0/rules/tree/master/redirect-rules/simple

I ran into some blockers and listed them here:

https://github.com/auth0/rules/issues/126

Is this example still valid?


#2

I could not reproduce any issue and running the sample worked as expected. From the information you provided in the GH issue:

Invalid redirect URL https://wt-peter-auth0_com-0.run.webtask.io/simple-redirect-rule-consent-form';var CONSENT_FORM_URL = 'https://wt-peter-auth0_com-0.run.webtask.io/simple-redirect-rule-consent-form?auth0_domain=nasbnation.auth0.com

it seems that you incorrectly set the rules configuration value to be:

https://wt-peter-auth0_com-0.run.webtask.io/simple-redirect-rule-consent-form';var CONSENT_FORM_URL = 'https://wt-peter-auth0_com-0.run.webtask.io/simple-redirect-rule-consent-form

instead of just:

https://wt-peter-auth0_com-0.run.webtask.io/simple-redirect-rule-consent-form

#3

@jmangelo thanks for pair programming :wink: …and catching the copy and paste error. fixed the key/value and it worked.


#4