mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
build(auth.py): send redirect url via magic link
This commit is contained in:
parent
1bfab87323
commit
189fcc0934
3 changed files with 18 additions and 8 deletions
|
@ -1,11 +1,13 @@
|
|||
"""
|
||||
Admin sets proxy url + allowed email subdomain
|
||||
"""
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv()
|
||||
import streamlit as st
|
||||
import base64
|
||||
import base64, os
|
||||
|
||||
# Replace your_base_url with the actual URL where the proxy auth app is hosted
|
||||
your_base_url = 'http://localhost:8501' # Example base URL
|
||||
your_base_url = os.getenv("BASE_URL") # Example base URL
|
||||
|
||||
# Function to encode the configuration
|
||||
def encode_config(proxy_url, allowed_email_subdomain):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue