Created
September 1, 2022 21:17
-
-
Save saltukalakus/8c568f6f6923e9538cbbf1d6f0bc84ec to your computer and use it in GitHub Desktop.
Auth0 New Universal Login Page template with parameters .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --request PUT \ | |
--url https://saltukalakus.auth0.com/api/v2/branding/templates/universal-login \ | |
--header 'Authorization: Bearer eyJ..redacted' \ | |
--header 'Content-Type: text/html' \ | |
--data '<!DOCTYPE html><html lang="{{locale}}"> | |
<head> | |
{%- auth0:head -%} | |
<script> | |
{% if prompt.name == "email-verification" %} | |
console.log("Email-verification: ", "{{ transaction.params.ext-param }}" ); | |
{% endif %} | |
{% if prompt.name == "login" %} | |
console.log("Login: ", "{{ transaction.params.ext-param }}" ); | |
{% endif %} | |
{% if prompt.name == "reset-password" %} | |
console.log("Reset-password: ", "{{ transaction.params.ext-param }}"); | |
{% endif %} | |
</script> | |
</head> | |
<body class="_widget-auto-layout"> | |
{%- auth0:widget -%} | |
</body></html>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html><html lang="{{locale}}"> | |
<head> | |
{%- auth0:head -%} | |
<script> | |
{% if prompt.name == "email-verification" %} | |
console.log("Email-verification: ", "{{ transaction.params.ext-param }}" ); | |
{% endif %} | |
{% if prompt.name == "login" %} | |
console.log("Login: ", "{{ transaction.params.ext-param }}" ); | |
{% endif %} | |
{% if prompt.name == "reset-password" %} | |
console.log("Reset-password: ", "{{ transaction.params.ext-param }}"); | |
{% endif %} | |
</script> | |
</head> | |
<body class="_widget-auto-layout"> | |
{%- auth0:widget -%} | |
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://demo.saltukalakus.com/authorize?ext-param=ThisIsTest&scope=openid+offline_access&response_type=code&state=abc&nonce=xyz&client_id=3wKlkum0Kzwbs7EqMH0i0oyxhbF0PNqK&redirect_uri=https%3A%2F%2Fjwt.io&audience=acme |
Author
saltukalakus
commented
Sep 1, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment