@@ -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