File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,19 @@ function createAuthentication() {
21
21
async function configure ( config : AuthenticationConfig ) : Promise < void > {
22
22
keycloak = new Keycloak ( config )
23
23
24
+ console . log ( "[auth debug] created Keycloak with config" )
25
+ console . log ( config )
26
+ console . log ( "[auth debug] location: " , window . location . href )
27
+
24
28
try {
25
29
await keycloak . init ( {
26
30
onLoad : "login-required" ,
27
31
checkLoginIframe : false ,
28
32
pkceMethod : "S256" ,
29
33
scope : "profile email" ,
30
34
} )
35
+
36
+ console . log ( "[auth debug] initialized Keycloak" , keycloak )
31
37
} catch ( e ) {
32
38
keycloak = undefined
33
39
throw new Error ( "Failed to initialize authentication" , { cause : e } )
Original file line number Diff line number Diff line change 28
28
. use ( router )
29
29
. use ( Sentry , { environment : env . name , router } )
30
30
31
+ console . log ( "[auth debug] location when creating app: " , window . location . href )
32
+ console . log ( "[auth debug] created app" )
33
+
31
34
// Configure authentication
32
35
const auth = useAuthentication ( )
33
36
await auth . configure ( {
36
39
realm : env . authRealm ,
37
40
} )
38
41
42
+ console . log ( "[auth debug] configured authentication" )
43
+
39
44
// If all initialization succeeds, mount app
40
45
app . mount ( "#app" )
46
+ console . log ( "[auth debug] mounted app" )
41
47
} catch ( e : unknown ) {
42
48
// If an error occurs above, catch it here
43
49
You can’t perform that action at this time.
0 commit comments