File size: 356 Bytes
8393a26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from pydantic_settings import BaseSettings

class Settings(BaseSettings):
    PROJECT_NAME: str = "FastAPI SSO"
    SECRET_KEY: str
    
    # Microsoft SSO Config
    MS_CLIENT_ID: str
    MS_CLIENT_SECRET: str
    MS_TENANT_ID: str
    MS_REDIRECT_URI: str

    class Config:
        env_file = ".env"
        case_sensitive = True

settings = Settings()