Skip to content

Commit 5ea8b21

Browse files
committed
Add link to text files
1 parent efc1645 commit 5ea8b21

3 files changed

Lines changed: 111 additions & 2 deletions

File tree

content/en/docs/marketplace/platform-supported-content/modules/oidc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,11 +991,11 @@ This section describes how to configure the application's `login.html` page to i
991991

992992
#### Automatic Redirection
993993

994-
To enable authentication using the OIDC SSO module, replace the default `login.html` with the content of `login-automatic.html` (located in the `resources\mendixsso\templates` folder) and save it as `login.html`. Use this option when all users should be directly redirected to the OIDC Identity Provider.
994+
To enable authentication using the OIDC SSO module, replace the default `login.html` with the content of <a href="/attachments/appstore/platform-supported-content/modules/oidc/login-automatic.txt" target="_blank">login-automatic.txt</a> file and save it as `login.html`. Use this option when all users should be directly redirected to the OIDC Identity Provider.
995995

996996
#### Manual Redirection
997997

998-
For manual redirection, replace the default `login.html` with the content of `login-manual.html` (located in the `resources\mendixsso\templates` folder) and save it as `login.html`. Use this option when users should choose between login in using local credentials and login via OIDC SSO.
998+
For manual redirection, replace the default `login.html` with the content of <a href="/attachments/appstore/platform-supported-content/modules/oidc/login-manual.txt" target="_blank">login-manual.txt</a> file and save it as `login.html`. Use this option when users should choose between login in using local credentials and login via OIDC SSO.
999999

10001000
#### Using Page and Microflow URLs with OIDC SSO{#page-microflow-url}
10011001

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<!--<script>
5+
self.location = "openid/login" + window.location.search + window.location.hash;
6+
</script>-->
7+
<script>
8+
window.onload = function () {
9+
const cont = window.location.search + window.location.hash;
10+
const base = window.location.pathname.replace(/\/login\.html$/, '');
11+
const loginUrl = base + '/oauth/v2/login';
12+
13+
window.location.href = cont
14+
? loginUrl + '?cont=' + encodeURIComponent(cont)
15+
: loginUrl;
16+
};
17+
</script>
18+
</head>
19+
<body>
20+
<noscript>
21+
<div class="loginpage-fullscreenDiv">
22+
<div class="loginpage-center">
23+
Your browser does not support JavaScript! You need to enable JavaScript to continue.
24+
</div>
25+
</div>
26+
</noscript>
27+
</body>
28+
</html>
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Login</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="apple-mobile-web-app-capable" content="yes" />
8+
9+
{{themecss}} {{appicons}} {{manifest}} {{startupimages}}
10+
</head>
11+
12+
<body>
13+
<div class="loginpage">
14+
<div class="loginpage-left">
15+
<div class="loginpage-image"></div>
16+
</div>
17+
<div class="loginpage-right">
18+
<div class="loginpage-formwrapper">
19+
<h2 id="loginHeader">Sign in</h2>
20+
<form id="loginForm" class="loginpage-form" autocomplete="off">
21+
<div>
22+
<div id="loginMessage" class="alert alert-danger"></div>
23+
<div class="form-group">
24+
<label class="control-label" id="usernameLabel" for="usernameInput">User name</label>
25+
<div class="inputwrapper">
26+
<input
27+
id="usernameInput"
28+
class="form-control"
29+
type="text"
30+
placeholder="User name"
31+
autocorrect="off"
32+
autocapitalize="none"
33+
autocomplete="off"
34+
/>
35+
<span class="glyphicon glyphicon-user"></span>
36+
</div>
37+
</div>
38+
<div class="form-group">
39+
<label class="control-label" id="passwordLabel" for="passwordInput">Password</label>
40+
<div class="inputwrapper">
41+
<input
42+
id="passwordInput"
43+
class="form-control"
44+
type="password"
45+
placeholder="Password"
46+
autocorrect="off"
47+
autocapitalize="none"
48+
autocomplete="off"
49+
/>
50+
<span class="glyphicon glyphicon-eye-close" id="passwordToggle"></span>
51+
</div>
52+
</div>
53+
<button id="loginButton" type="submit" class="btn btn-success btn-lg">Sign in</button>
54+
<button id="logiSSOnButton" type="button" onclick="SSOlogin()" class="btn btn-lg">OIDC SSO Login</button>
55+
</div>
56+
</form>
57+
</div>
58+
</div>
59+
<div class="loginpage-logo">
60+
<img src="logo.png" role="presentation" height="45" alt="" />
61+
</div>
62+
</div>
63+
<script>
64+
65+
function SSOlogin() {
66+
const cont = window.location.search + window.location.hash;
67+
const base = window.location.pathname.replace(/\/login\.html$/, '');
68+
const loginUrl = base + '/oauth/v2/login';
69+
window.location.href = cont
70+
? loginUrl + '?cont=' + encodeURIComponent(cont)
71+
: loginUrl;
72+
}
73+
74+
75+
</script>
76+
77+
<script src="js/login_i18n.js?{{cachebust}}"></script>
78+
<script src="js/login.js?{{cachebust}}"></script>
79+
<script src="js/toggle-password.js?{{cachebust}}"></script>
80+
</body>
81+
</html>

0 commit comments

Comments
 (0)