✔ Properly raise an Exception when user cancels the flow while OAuth grant

This commit is contained in:
thec0sm0s
2020-08-10 11:32:52 +05:30
parent 369127092b
commit 8b423e216e
3 changed files with 14 additions and 3 deletions

View File

@@ -42,3 +42,7 @@ class RateLimited(HttpException):
class Unauthorized(HttpException):
"""A HTTP Exception raised when user is not authorized."""
class AccessDenied(HttpException):
"""Exception raised when user cancels OAuth authorization grant."""