Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
sfahad1414 committed Feb 9, 2024
2 parents 23e62e5 + 7d15983 commit 3e9c243
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kairon/api/app/routers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def get_integrations(


@router.get('/login/sso/{sso_type}')
async def sso_login(sso_type: str = Path(default=None, description="social media type", example="google")):
async def sso_login(sso_type: str = Path(description="social media type", example="google")):
"""
Generate redirect url based on social media type.
"""
Expand All @@ -153,7 +153,7 @@ async def sso_login(sso_type: str = Path(default=None, description="social media
async def sso_callback(
request: Request,
background_tasks: BackgroundTasks,
sso_type: str = Path(default=None, description="social media type", example="google")
sso_type: str = Path(description="social media type", example="google")
):
"""
Generate login token after successful social media login.
Expand All @@ -173,7 +173,7 @@ async def sso_callback(

@router.get('/login/idp/{realm_name}')
async def idp_login(
realm_name: str = Path(default=None, description="Domain name for your company", example="KAIRON")):
realm_name: str = Path(description="Domain name for your company", example="KAIRON")):
"""
Fetch redirect url for idp realm.
"""
Expand All @@ -182,7 +182,7 @@ async def idp_login(

@router.get('/login/idp/callback/{realm_name}', response_model=Response)
async def idp_callback(session_state: str, code: str,
realm_name: str = Path(default=None, description="Realm name",
realm_name: str = Path(description="Realm name",
example="KAIRON"),
):
"""
Expand Down

0 comments on commit 3e9c243

Please sign in to comment.