Nelly-43 commited on
Commit
aee2726
·
verified ·
1 Parent(s): 437b4e2

Update app_web.py

Browse files
Files changed (1) hide show
  1. app_web.py +2 -1
app_web.py CHANGED
@@ -18,7 +18,7 @@ snapshot_download(repo_id="CGIAR/weai-kb",
18
  )
19
 
20
  if "OAUTH_CLIENT_ID" in os.environ:
21
- st.secrets["auth"] = {
22
  "client_id": os.environ["OAUTH_CLIENT_ID"],
23
  "client_secret": os.environ["OAUTH_CLIENT_SECRET"],
24
  "server_metadata_url": f"{os.environ['OPENID_PROVIDER_URL']}/.well-known/openid-configuration",
@@ -26,6 +26,7 @@ if "OAUTH_CLIENT_ID" in os.environ:
26
  "cookie_secret": os.environ.get("OAUTH_CLIENT_SECRET")[:32] # Needs to be string safe
27
  }
28
  st.write(st.secrets)
 
29
  st.write(st.user)
30
  def cg_admin():
31
  headers = st.context.headers
 
18
  )
19
 
20
  if "OAUTH_CLIENT_ID" in os.environ:
21
+ scrts = {
22
  "client_id": os.environ["OAUTH_CLIENT_ID"],
23
  "client_secret": os.environ["OAUTH_CLIENT_SECRET"],
24
  "server_metadata_url": f"{os.environ['OPENID_PROVIDER_URL']}/.well-known/openid-configuration",
 
26
  "cookie_secret": os.environ.get("OAUTH_CLIENT_SECRET")[:32] # Needs to be string safe
27
  }
28
  st.write(st.secrets)
29
+ st.write(scrts)
30
  st.write(st.user)
31
  def cg_admin():
32
  headers = st.context.headers