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

Registration object not available in JWT Populate Lambda when using self service registration #780

Closed
robotdan opened this issue Jul 29, 2020 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@robotdan
Copy link
Member

Registration object not available in JWT Populate Lambda immediately following registration

Description

If you are using a populate lambda, and basic self service registration the JWT populate lambda invoked to generate a JWT on the Token exchange will not have access to the registration object.

If you have code such as the following example, the registration object may be null and cause an exception when executing the lambda.

function(jwt, user, registration) {
  jwt.preferred_username = registration.username;
}

Additional symptoms are that if you are using the implicit grant, the applicationId and roles claims will be missing from the JWT.

Affects versions

1.18.0, 1.18.1, 1.18.2, 1.18.3

Expected behavior

The registration object should be available in the lambda.

Additional context

Add any other context about the problem here.

@robotdan robotdan self-assigned this Jul 29, 2020
@robotdan robotdan added the bug Something isn't working label Jul 29, 2020
@robotdan robotdan added this to Backlog in FusionAuth Issues via automation Jul 29, 2020
@robotdan robotdan moved this from Backlog to In progress in FusionAuth Issues Jul 29, 2020
@robotdan robotdan added this to the 1.18.4 milestone Jul 29, 2020
@robotdan robotdan changed the title Registration object not available in JWT Populate Lambda immediately following registration Registration object not available in JWT Populate Lambda when using self service registration Jul 29, 2020
@robotdan robotdan moved this from In progress to Done in FusionAuth Issues Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
FusionAuth Issues
  
Delivered
Development

No branches or pull requests

1 participant