File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ VITE_OIDC_SCOPE="openid profile email groups"
1313VITE_OIDC_SILENT_REFRESH = " false"
1414
1515# Backend Environment Variables
16+ # # Front OIDC Config
1617API_OIDC_ISSUER_URL = " https://authelia.k8s.localhost"
1718API_OIDC_CLIENT_ID = " proxyauthk8s"
1819API_OIDC_SCOPE = " openid profile email groups"
19- API_OIDC_AUDIENCE = " proxyauthk8s"
20+ API_OIDC_AUDIENCE = " proxyauthk8s"
21+
22+ # # Cluster OIDC Config
23+ API_CLUSTER_OIDC_BASE_REDIRECT_URL = " https://localhost:5437"
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ pub struct State {
1414 pub client : Client ,
1515 redis : Pool ,
1616 pub oidc_client : oidc_conf:: OidcConf ,
17+ pub oidc_cluster_redirect_base_url : String ,
1718}
1819
1920impl State {
@@ -31,11 +32,14 @@ impl State {
3132 match oidc_client. get_oidc_core ( ) . await {
3233 Ok ( _) => info ! ( "OIDC discovery successful" ) ,
3334 Err ( e) => panic ! ( "OIDC discovery failed: {}" , e) ,
34- }
35+ } ;
36+ let oidc_cluster_redirect_base_url = env:: var ( "API_CLUSTER_OIDC_BASE_REDIRECT_URL" )
37+ . unwrap_or ( "https://localhost:5437" . to_string ( ) ) ;
3538 Self {
3639 client,
3740 redis : pool,
3841 oidc_client,
42+ oidc_cluster_redirect_base_url,
3943 }
4044 }
4145
You can’t perform that action at this time.
0 commit comments