diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-01-05 11:25:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 11:25:28 +0000 |
commit | 111b673fc1bbd3d51302d915f2ad2c044ed7d3b8 (patch) | |
tree | ee1f86468f6f9880c03c0041e8d706fe1168e7bd /synapse/res | |
parent | Combine the SSO Redirect Servlets (#9015) (diff) | |
download | synapse-111b673fc1bbd3d51302d915f2ad2c044ed7d3b8.tar.xz |
Add initial support for a "pick your IdP" page (#9017)
During login, if there are multiple IdPs enabled, offer the user a choice of IdPs.
Diffstat (limited to 'synapse/res')
-rw-r--r-- | synapse/res/templates/sso_login_idp_picker.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/synapse/res/templates/sso_login_idp_picker.html b/synapse/res/templates/sso_login_idp_picker.html new file mode 100644 index 0000000000..f53c9cd679 --- /dev/null +++ b/synapse/res/templates/sso_login_idp_picker.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <link rel="stylesheet" href="/_matrix/static/client/login/style.css"> + <title>{{server_name | e}} Login</title> + </head> + <body> + <div id="container"> + <h1 id="title">{{server_name | e}} Login</h1> + <div class="login_flow"> + <p>Choose one of the following identity providers:</p> + <form> + <input type="hidden" name="redirectUrl" value="{{redirect_url | e}}"> + <ul class="radiobuttons"> +{% for p in providers %} + <li> + <input type="radio" name="idp" id="prov{{loop.index}}" value="{{p.idp_id}}"> + <label for="prov{{loop.index}}">{{p.idp_name | e}}</label> + </li> +{% endfor %} + </ul> + <input type="submit" class="button button--full-width" id="button-submit" value="Submit"> + </form> + </div> + </div> + </body> +</html> |