Skip to content
Snippets Groups Projects
Commit 595baa39 authored by Helmut Hutzler's avatar Helmut Hutzler
Browse files

Updated secureroutes

parent 37e12d13
No related branches found
No related tags found
No related merge requests found
Pipeline #9339 passed
......@@ -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");
});
*/
}
}
......@@ -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, ]
},
}),
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment