-
Notifications
You must be signed in to change notification settings - Fork 345
feat: defines internal utils for OAuth client Auth and error handling #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This defines internal utilities to handle: - OAuth client authentication - Standard OAuth error response parsing into OAuthError exception.
|
@bojeil-google Base branch has been adjusted to |
|
@bojeil-google It may be helpful to join the org |
google/oauth2/utils.py
Outdated
| from google.auth import exceptions | ||
|
|
||
|
|
||
| def enum(**named_values): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to use Python provided enums? https://cpython-test-docs.readthedocs.io/en/latest/library/enum.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I tried it out with the backport enum34 package . It seems to work locally.
This defines internal utilities to handle: