Skip to content

Commit

Permalink
Merge pull request #102 from yjinjo/master
Browse files Browse the repository at this point in the history
Add redirection page for unauthorized case
  • Loading branch information
yjinjo authored Jul 29, 2024
2 parents 1132d68 + e4f8a20 commit 3167ab6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/cloudforet/console_api_v2/service/auth_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,10 @@ def _redirect_response(domain_name: str, refresh_token: str) -> RedirectResponse

if refresh_token:
return RedirectResponse(
f"{console_domain}/saml?refresh_token={refresh_token}",
status_code=302,
f"{console_domain}/saml?refresh_token={refresh_token}", status_code=302
)

return RedirectResponse(f"{console_domain}", status_code=302)
else:
return RedirectResponse(f"{console_domain}/error-page/401", status_code=302)

@staticmethod
def _get_acs_url(domain_name: str, domain_id: str) -> str:
Expand Down

0 comments on commit 3167ab6

Please sign in to comment.