From 577ec1cbfaa9d773a0a5c172e9d58fdf15154ea9 Mon Sep 17 00:00:00 2001 From: Madhumita Subramaniam Date: Fri, 16 Dec 2022 12:23:56 +0530 Subject: [PATCH] fix: minor #3331 --- docs/admin/developer/customization/customize-web-pages.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/admin/developer/customization/customize-web-pages.md b/docs/admin/developer/customization/customize-web-pages.md index d4509e6ed29..cd36daa8d1d 100644 --- a/docs/admin/developer/customization/customize-web-pages.md +++ b/docs/admin/developer/customization/customize-web-pages.md @@ -34,7 +34,7 @@ Put a modified `login.xhtml` or `authorize.xhtml` or `error.xhtml` or `logout.xh | |-- static (images and css files) ``` ### Adding a new web page for Person Authentication scripts -1. If `enterOTP.xhtml` is your webpage for step 2 of authentication, place under `/opt/jans/jetty/jans-auth/custom/pages/enterOTP.xhtml` +1. If `enterOTP.xhtml` is your webpage for step 2 of authentication, place under `/opt/jans/jetty/jans-auth/custom/pages/auth/enterOTP.xhtml` 2. Reference it in the custom script as follows: ``` def getPageForStep(self, configurationAttributes, step): @@ -44,7 +44,9 @@ Put a modified `login.xhtml` or `authorize.xhtml` or `error.xhtml` or `logout.xh if (step == 2) return "/auth/enterOTP.xhtml" ``` +### Reference login pages: +[Here](https://github.com/JanssenProject/jans/tree/main/jans-auth-server/server/src/main/webapp/auth) you will find several login pages for different authentication methods. ### Customized resource bundles: 1. Resource bundles that are present in the jans-auth.war are present in this [folder](https://github.com/JanssenProject/jans/blob/main/jans-auth-server/server/src/main/resources/) @@ -78,6 +80,4 @@ Templates refers to the common interface layout and style. For example, a banner 1. `mkdir -p /opt/jans/jetty/jans-auth/custom/pages/WEB-INF/incl/layout/` 2. Place a modified `template.xhtml` in the above location which will override the [default template file](https://github.com/JanssenProject/jans/blob/main/jans-auth-server/server/src/main/webapp/WEB-INF/incl/layout/template.xhtml) from the war -### Example pages: -[Here](https://github.com/JanssenProject/jans/tree/main/jans-auth-server/server/src/main/webapp/auth) you will find several login pages for different authentication methods.