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

Outdated Auth0 OIDC Docs #16753

Open
matrixbot opened this issue Dec 21, 2023 · 0 comments
Open

Outdated Auth0 OIDC Docs #16753

matrixbot opened this issue Dec 21, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 21, 2023

This issue has been migrated from #16753.


Description:

The current docs for using Auth0 (snippet below) suggest using Rules to set user attributes, but Rules is being deprecated in favour of Actions. Docs on the migration can be found here.

New Auth0 users are unable to follow the docs as they are unable to create Rules. Existing users aren't yet affected.

function addPersistenceAttribute(user, context, callback) {
  user.user_metadata = user.user_metadata || {};
  user.user_metadata.preferred_username = user.user_metadata.preferred_username || user.user_id;
  context.idToken.preferred_username = user.user_metadata.preferred_username;

  auth0.users.updateUserMetadata(user.user_id, user.user_metadata)
    .then(function(){
        callback(null, user, context);
    })
    .catch(function(err){
        callback(err);
    });
}
@matrixbot matrixbot changed the title Dummy issue Outdated Auth0 OIDC Docs Dec 22, 2023
@matrixbot matrixbot reopened this Dec 22, 2023
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

No branches or pull requests

1 participant