Cleanup
This commit is contained in:
parent
17662dd5bc
commit
c98382843b
1 changed files with 0 additions and 2 deletions
|
@ -106,7 +106,6 @@ async def login(request: Request, provider: str) -> RedirectResponse:
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise HTTPException(500, "")
|
raise HTTPException(500, "")
|
||||||
try:
|
try:
|
||||||
breakpoint()
|
|
||||||
return await provider_.authorize_redirect(request, redirect_uri)
|
return await provider_.authorize_redirect(request, redirect_uri)
|
||||||
except HTTPError:
|
except HTTPError:
|
||||||
raise HTTPException(status.HTTP_401_UNAUTHORIZED, "Cannot reach provider")
|
raise HTTPException(status.HTTP_401_UNAUTHORIZED, "Cannot reach provider")
|
||||||
|
@ -119,7 +118,6 @@ async def auth(request: Request, provider: str) -> RedirectResponse:
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise HTTPException(500, "")
|
raise HTTPException(500, "")
|
||||||
try:
|
try:
|
||||||
breakpoint()
|
|
||||||
token = await provider_.authorize_access_token(request)
|
token = await provider_.authorize_access_token(request)
|
||||||
except OAuthError as error:
|
except OAuthError as error:
|
||||||
raise HTTPException(status_code=401, detail=error.error)
|
raise HTTPException(status_code=401, detail=error.error)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue