File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ import { AuthProvider } from "react-oidc-context";
13
13
window . CONFIG = cfg ;
14
14
globalThis . CONFIG = cfg ;
15
15
16
+ window . OIDCCfg = OIDCCfg ;
17
+ globalThis . OIDCCfg = OIDCCfg ;
18
+
16
19
console . log ( process . env )
17
20
18
21
console . log ( OIDCCfg )
Original file line number Diff line number Diff line change @@ -27,11 +27,15 @@ export default function Login() {
27
27
const LOGOS = UI . logos ?? { } ;
28
28
const loginRequired = Boolean ( CFG . loginRequired ) ;
29
29
30
- const isProd = window . location . hostname === `${ process . env . BEACON_UI_PUBLIC_URL } ` ;
30
+ const isProd = window . location . hostname === `${ CONFIG . appUrl } ` ;
31
+ console . log ( "is prod: " , isProd ) ;
32
+
31
33
const REDIRECT_URI = isProd
32
- ? `${ process . env . BEACON_UI_OIDC_ENDPOINT } /login`
34
+ ? `${ CONFIG . appUrl } /login`
33
35
: "http://localhost:3000/login" ;
34
36
37
+ console . log ( "REDIRECT_URI: " , REDIRECT_URI ) ;
38
+
35
39
const from = location . state ?. from ?. pathname || "/" ;
36
40
const hasCallback = sp . has ( "code" ) || sp . has ( "error" ) ;
37
41
const err = sp . get ( "error" ) ;
You can’t perform that action at this time.
0 commit comments