From 595baa39c800a83788d8804e6cde969e258bade8 Mon Sep 17 00:00:00 2001
From: Helmut Hutzler <helmut.hutzler@th-nuernberg.de>
Date: Fri, 18 Nov 2022 10:29:22 +0100
Subject: [PATCH] Updated secureroutes

---
 src/app/app.component.ts      | 6 ++++++
 src/app/auth-config.module.ts | 4 +++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index f2abf23..df3bdf0 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -22,11 +22,17 @@ export class AppComponent implements OnInit {
   apiUrl = '--';
   keycloakURL= '--';
   ngOnInit() {
+    console.log( "App-Info::appVersion      : " +  environment.appVersion + "\n");
+    console.log( "App-Info::apiUrl          : " +  environment.apiURL + "\n");
+    console.log( "App-Info::keycloakURL     : " +  environment.keycloakURL + "\n");
+    /*
     this.oidcSecurityService.checkAuth().subscribe(({ isAuthenticated, userData, accessToken, idToken }) => {
       console.log( "App-Info::isAuthenticated : " +  isAuthenticated +"\n");
       console.log( "App-Info::appVersion      : " +  environment.appVersion + "\n");
       console.log( "App-Info::apiUrl          : " +  environment.apiURL + "\n");
       console.log( "App-Info::keycloakURL     : " +  environment.keycloakURL + "\n");
     });
+
+     */
   }
 }
diff --git a/src/app/auth-config.module.ts b/src/app/auth-config.module.ts
index fe99a2f..6b1b4b2 100644
--- a/src/app/auth-config.module.ts
+++ b/src/app/auth-config.module.ts
@@ -23,8 +23,10 @@ import { environment } from '../environments/environment';
         renewTimeBeforeTokenExpiresInSeconds: 10,
         // startCheckSession: true,
         ignoreNonceAfterRefresh: true,
+        // secureRoutes: [ 'http://localhost:8080/' ]
+        //secureRoutes: [   'https://kube-master-h1.informatik.fh-nuernberg.de/' ]
         // routes that get added a bearer token by  HTTP_INTERCEPTORS provided by angular-auth-oidc-client lib'
-        secureRoutes: [  environment.apiURL ]
+        secureRoutes: [  environment.apiURL, ]
       },
     }),
   ],
-- 
GitLab