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

Allow loading / saving Shipping Addresses used by WooCommerce in Auth0 Profile #76

Closed
cancan101 opened this issue Jun 9, 2015 · 6 comments

Comments

@cancan101
Copy link

It would be great if Auth0 could be used to load / store the information needed by the user when checking out in WooCommerce.

This should exclude payment information (CC#s) since that should be stored by the payment gateway.

@glena
Copy link
Contributor

glena commented Jun 9, 2015

Hi @cancan101 this feature you are asking are out of the scope of this plugins. It is a very specific feature that must support a lot of different plugins. For this reason, it is not in our backlog.

Anyway, we can give you some guidance. In fact, It shouldn't harder than add an API call to https://auth0.com/docs/api/v2#!/Users/patch_users_by_id to set the user/app metadata.

Also, we can add an action on the user creation in the Auth0 plugin in order to make it easy to get the info from the auth0 profile and populate your database.

The same happens with issue #77.

@cancan101
Copy link
Author

we can add an action on the user creation in the Auth0 plugin in order to make it easy to get the info from the auth0 profile and populate your database.

This sounds good, but what to do about pulling in the newest changes from Auth0 profile each time the user logs in to WP?

@glena
Copy link
Contributor

glena commented Jun 10, 2015

The plugin always get the user profile in order to find the WP user to login, so this action could be fired on each login with this data. I am thinking in something like

function Auth0UserLogin((int)$user_id,(stdClass) $profile, (book) $new_user)

@cancan101
Copy link
Author

Okay, so you are saying some hook in WP that will get called when an Auth0 user logs in that gets passed the user's auth0 profile contents?

@glena
Copy link
Contributor

glena commented Jun 10, 2015

exactly

glena added a commit that referenced this issue Jun 10, 2015
Fixed Mixed content warning #75 & added login action for issue #76 #77
@glena
Copy link
Contributor

glena commented Jun 10, 2015

Hey @cancan101 I've released a new version with the action we talked. I updated the readme (https://github.com/auth0/wp-auth0#interating-with-the-plugin) with info about it.

@glena glena closed this as completed Jun 10, 2015
@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

No branches or pull requests

2 participants