Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Make calling the user_info endpoint optional #37

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ondrejpialek
Copy link

This PR makes it so that the user_info endpoint is not called when the Omiauth setting skip_info is set.

This is useful for example when integrating with Azure AD B2C, which does not expose this endpoint. It may also be useful in cases where we only care about the ID or access token - this will save one HTTP call.

I also run the file through prettifier to make the syntax consistent, I hope that is ok.

Also note the version bump to 0.9.5, but feel free to update this as necessary.

@hhorikawa
Copy link
Member

@ondrejpialek
Thank you for your PR.
Could you split it into two PRs, one to format and one to change the function?

@hhorikawa
Copy link
Member

@ondrejpialek
Good evening,
Sorry for your extra work, but could you push your patch to the new repository?
Please see the README file.
Thank you.

It should be tied to the session. Will get rid of most nonce validation issues stemming from the users using the back-button or multiple tabs.
Version bump.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants