Skip to content

Commit 1d18bed

Browse files
committed
chore(ci): use rest prefix path for oidc
1 parent 1d2a922 commit 1d18bed

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

external-hooks/oidc.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ module.exports = {
376376
/**
377377
* OIDC Login endpoint - redirects to the OIDC provider
378378
*/
379-
app.get('/external/auth/oidc/login', async (req, res) => {
379+
app.get('/rest/auth/oidc/login', async (req, res) => {
380380
try {
381381
const discovery = await fetchDiscoveryDocument();
382382

@@ -409,7 +409,7 @@ module.exports = {
409409
/**
410410
* OIDC Callback endpoint - handles the authorization code
411411
*/
412-
app.get('/external/auth/oidc/callback', async (req, res) => {
412+
app.get('/rest/auth/oidc/callback', async (req, res) => {
413413
try {
414414
const { code, state, error, error_description } = req.query;
415415

@@ -544,8 +544,8 @@ module.exports = {
544544
});
545545

546546
console.log('[OIDC Hook] OIDC routes registered:');
547-
console.log(' - GET /external/auth/oidc/login');
548-
console.log(' - GET /external/auth/oidc/callback');
547+
console.log(' - GET /rest/auth/oidc/login');
548+
console.log(' - GET /rest/auth/oidc/callback');
549549
console.log(' - GET /assets/oidc-frontend-hook.js');
550550
},
551551
],
@@ -567,7 +567,7 @@ module.exports = {
567567
frontendSettings.sso = frontendSettings.sso || {};
568568
frontendSettings.sso.oidc = {
569569
loginEnabled: true,
570-
loginUrl: '/external/auth/oidc/login',
570+
loginUrl: '/rest/auth/oidc/login',
571571
callbackUrl: config.redirectUri,
572572
};
573573

@@ -647,7 +647,7 @@ function getFrontendScript() {
647647
button.id = 'oidc-sso-button';
648648
button.type = 'button';
649649
button.textContent = 'Sign in with SSO';
650-
// button.onclick = function() { window.location.href = '/external/auth/oidc/login'; };
650+
button.onclick = function() { window.location.href = '/rest/auth/oidc/login'; };
651651
652652
if (buttonClasses) {
653653
button.className = buttonClasses;

0 commit comments

Comments
 (0)