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

Pass user info to auth0_before_login action #817

Merged
merged 1 commit into from
Feb 11, 2021

Conversation

nicecatch
Copy link
Contributor

There are situations in which we want to check whether the user is authorized to access a wordpress website based on the info passed by Auth0 (contained in app_metadata or user_metadata)

This PR aim is for this info to be available in the auth0_before_login action

Why not use auth0_user_login?

Because at that point the user is already logged in.
Letting the user login and then rejecting him is not ideal, especially if we want to show a custom error page

@nicecatch nicecatch requested a review from a team as a code owner February 3, 2021 12:14
@evansims evansims closed this Feb 11, 2021
@evansims evansims reopened this Feb 11, 2021
@evansims
Copy link
Member

Hey, @nicecatch! 👋 This looks like a good addition to me; thanks for your contribution! Appreciate it 👍

@evansims evansims merged commit 0040893 into auth0:master Feb 11, 2021
@evansims evansims added this to the 4.2.0 milestone Feb 11, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
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.

None yet

2 participants