added auth
This commit is contained in:
1 parent
a3d3c75463
commit
a9d0a3ee7f
32 files changed
+1697
-69
No files matched your search
@@ -146,6 +146,37 @@ class CreatomateSettings(BaseSettings):
|
||||
model_config = _base_config
|
||||
|
||||
|
||||
class KakaoSettings(BaseSettings):
|
||||
"""카카오 OAuth 설정"""
|
||||
|
||||
KAKAO_CLIENT_ID: str = Field(default="", description="카카오 REST API 키")
|
||||
KAKAO_CLIENT_SECRET: str = Field(default="", description="카카오 Client Secret (선택)")
|
||||
KAKAO_REDIRECT_URI: str = Field(
|
||||
default="http://localhost:8000/api/v1/user/auth/kakao/callback",
|
||||
description="카카오 로그인 후 리다이렉트 URI",
|
||||
)
|
||||
|
||||
model_config = _base_config
|
||||
|
||||
|
||||
class JWTSettings(BaseSettings):
|
||||
"""JWT 토큰 설정"""
|
||||
|
||||
JWT_SECRET: str = Field(
|
||||
default="your-super-secret-key-must-be-at-least-32-characters-long",
|
||||
description="JWT 서명 비밀키 (최소 32자)",
|
||||
)
|
||||
JWT_ALGORITHM: str = Field(default="HS256", description="JWT 알고리즘")
|
||||
JWT_ACCESS_TOKEN_EXPIRE_MINUTES: int = Field(
|
||||
default=60, description="액세스 토큰 만료 시간 (분)"
|
||||
)
|
||||
JWT_REFRESH_TOKEN_EXPIRE_DAYS: int = Field(
|
||||
default=7, description="리프레시 토큰 만료 시간 (일)"
|
||||
)
|
||||
|
||||
model_config = _base_config
|
||||
|
||||
|
||||
class LogSettings(BaseSettings):
|
||||
"""
|
||||
로깅 설정 클래스
|
||||
@@ -345,3 +376,5 @@ crawler_settings = CrawlerSettings()
|
||||
azure_blob_settings = AzureBlobSettings()
|
||||
creatomate_settings = CreatomateSettings()
|
||||
log_settings = LogSettings()
|
||||
kakao_settings = KakaoSettings()
|
||||
jwt_settings = JWTSettings()
|
||||
Reference in new issue
Block a user