mirror of https://github.com/dexidp/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.0 KiB
1.0 KiB
Templates
Using your own templates
Dex supports using your own templates and passing arbitrary data to them to help customize your installation.
Steps:
- Copy contents of the
webdirectory over to a new directory. - Customize the templates as needed, be sure to retain all the existing variables so Dex continues working correctly.
a. Use this syntax
{{ "your_key" | extra }}to use values fromfrontend.extra. - Write a theme for your templates in the
themesdirectory. - Add your custom data to the Dex configuration
frontend.extra.frontend: dir: /path/to/custom/web issuer: my-dex extra: tos_footer_link: "https://example.com/terms" client_logo_url: "../theme/client-logo.png" foo: "bar" - Set the
frontend.dirvalue to your ownwebdirectory. - Write the issuer in the
issuerdirectory in order to modify the Dex title and theLog in to <<dex>>tag.
To test your templates simply run Dex with a valid configuration and go through a login flow.