Skip to content
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

Support google jwt auth #106

Merged
merged 2 commits into from
Jul 2, 2024
Merged

Support google jwt auth #106

merged 2 commits into from
Jul 2, 2024

Conversation

sayanarijit
Copy link
Member

@sayanarijit sayanarijit commented Jun 25, 2024

No description provided.

@ujjwalmishra09
Copy link

@shon please have a look.

def fetch_info(access_token):
session = OAuth2Session(token={"access_token": access_token})
userinfo = session.get("https://www.googleapis.com/oauth2/v1/userinfo").json()
def fetch_info(access_token, jwt=False):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sayanarijit we can create a separate method
fetch_info_using_jwt(token):

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@sayanarijit sayanarijit merged commit c7c340c into master Jul 2, 2024
1 check passed
@sayanarijit sayanarijit deleted the google-jwt-auth branch July 2, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants