File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 value : {{ $value | quote }}
4242 {{- end -}}
4343 {{- end }}
44+ {{- if .Values.onboarding.enabled }}
45+ - name : OIDC_DISABLE_DPOP
46+ value : " true"
47+ {{- end }}
4448 ports :
4549 - name : http
4650 containerPort : {{ .Values.web.containerPort }}
Original file line number Diff line number Diff line change @@ -887,3 +887,6 @@ ONYXIA_VERSION_URL=
887887SCREEN_SCALER = true
888888
889889OIDC_DEBUG_LOGS = false
890+
891+ # NOTE: Temporary workaround until the Go onboarding API supports it.
892+ OIDC_DISABLE_DPOP = false
Original file line number Diff line number Diff line change @@ -18,15 +18,19 @@ if (import.meta.env.DEV) {
1818 return ;
1919 }
2020
21- const [ { oidcEarlyInit } , { browserRuntimeFreeze } ] = await Promise . all ( [
21+ const [ { oidcEarlyInit } , { browserRuntimeFreeze } , { DPoP } ] = await Promise . all ( [
2222 import ( "oidc-spa/entrypoint" ) ,
23- import ( "oidc-spa/browser-runtime-freeze" )
23+ import ( "oidc-spa/browser-runtime-freeze" ) ,
24+ import . meta. env . OIDC_DISABLE_DPOP === "true"
25+ ? { DPoP : undefined }
26+ : import ( "oidc-spa/DPoP" )
2427 ] ) ;
2528
2629 const { shouldLoadApp } = oidcEarlyInit ( {
2730 BASE_URL : import . meta. env . BASE_URL ,
2831 securityDefenses : {
29- ...browserRuntimeFreeze ( )
32+ ...browserRuntimeFreeze ( ) ,
33+ ...DPoP ?.( { mode : "auto" } )
3034 }
3135 } ) ;
3236
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ type ImportMetaEnv = {
6666 ONYXIA_VERSION_URL : string
6767 SCREEN_SCALER : string
6868 OIDC_DEBUG_LOGS : string
69+ OIDC_DISABLE_DPOP : string
6970 // @user -defined-start
7071 /*
7172 * Here you can define your own special variables
You can’t perform that action at this time.
0 commit comments