Skip to content

Commit

Permalink
fix: minor (#3334)
Browse files Browse the repository at this point in the history
  • Loading branch information
maduvena committed Dec 16, 2022
1 parent 730b165 commit 3225455
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/admin/developer/customization/customize-web-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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/)
Expand Down Expand Up @@ -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.

0 comments on commit 3225455

Please sign in to comment.