XThomasBU commited on
Commit
c9b6ab6
·
verified ·
1 Parent(s): 6d6cdc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -35,15 +35,8 @@ from typing import Dict, Optional
35
  import chainlit as cl
36
 
37
 
38
- @cl.header_auth_callback
39
- def header_auth_callback(headers: Dict) -> Optional[cl.User]:
40
- # Verify the signature of a token in the header (ex: jwt token)
41
- # or check that the value is matching a row from your database
42
- if headers.get("test-header") == "test-value":
43
- return cl.User(identifier="admin", metadata={"role": "admin", "provider": "header"})
44
- else:
45
- return None
46
-
47
  @cl.on_chat_start
48
  async def on_chat_start():
49
  prompt = ChatPromptTemplate.from_messages(
 
35
  import chainlit as cl
36
 
37
 
38
+ print(os.getenv["OPENID_PROVIDER_URL"])
39
+ print(os.getenv("OAUTH_CLIENT_ID"))
 
 
 
 
 
 
 
40
  @cl.on_chat_start
41
  async def on_chat_start():
42
  prompt = ChatPromptTemplate.from_messages(