Rename oidc rendered login.html to oidc_login.html
This commit is contained in:
@@ -40,8 +40,8 @@ const assert = require('assert'),
|
||||
util = require('util');
|
||||
|
||||
// 1. Index.vue starts the OIDC flow by navigating to /openid/auth. Webadmin sets callback url to authcallback.html + implicit flow
|
||||
// 2. oidcserver starts an interaction and redirects to login.html
|
||||
// 3. login.html is rendered by renderInteractionPage() with the form submit url /interaction/:uid/login
|
||||
// 2. oidcserver starts an interaction and redirects to oidc_login.html
|
||||
// 3. oidc_login.html is rendered by renderInteractionPage() with the form submit url /interaction/:uid/login
|
||||
// 4. When form is submitted, it invokes interactionLogin(). This validates user creds
|
||||
// 5. We enter the scopes confirmation flow which is oidc_interaction_confirm.html rendered by renderInteractionPage()
|
||||
// 6. We have no concept of confirmation. The page auto-submits the form immediately without user interaction
|
||||
@@ -315,7 +315,7 @@ async function renderInteractionPage(req, res, next) {
|
||||
options.ICON_URL = app.iconUrl;
|
||||
}
|
||||
|
||||
let html = fs.readFileSync(__dirname + '/../dashboard/dist/login.html', 'utf-8');
|
||||
let html = fs.readFileSync(__dirname + '/../dashboard/dist/oidc_login.html', 'utf-8');
|
||||
for (const key in options) {
|
||||
html = html.replaceAll(`##${key}##`, options[key]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user