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

Populate Lambda does not execute without a registration when calling api/login to complete a login #2899

Open
jobannon opened this issue Oct 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jobannon
Copy link

jobannon commented Oct 11, 2024

Description

I want to log a user in via api/login and have populate lambda that is not executing upon login

Observed versions

1.53.2

Affects versions

The version, or versions where this bug exists. If you do not know, please leave blank for now.

Steps to reproduce

Steps to reproduce the behavior:

  1. Create a populate lambda. Make this lambda add a claim to the jwt (i.e. jwt.foo = bar)
  2. Assign the populate lambda to a FusionAuth Application
  3. DO NOT register the user the application above (if the user is registered, this all works correctly)
  4. Call API login to log a user in
curl --request POST \
  --url https://local.fusionauth.io/api/login \
  --header 'Authorization: bf69486b-4733-4470-a592-f1bfce7af580' \
  --header 'Content-Type: application/json' \

  --data '{
  "loginId": "fooman2",
  "password": "password",
  "applicationId": "85a03867-dccf-4882-adde-1a79aeec50df"
}'

See that the resulting JWT does not have the claims added by the populate lambda

Expected behavior

The populate lambda should execute regardless of registration status

Platform

(Please complete the following information)
Dev setup

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

Additional context

@jobannon jobannon added the bug Something isn't working label Oct 11, 2024
@robotdan robotdan added this to the 1.54.0 milestone Oct 11, 2024
@robotdan robotdan moved this to Code complete in FusionAuth Issues Oct 11, 2024
@robotdan robotdan self-assigned this Oct 11, 2024
@robotdan robotdan moved this from Code complete to Delivered in FusionAuth Issues Oct 29, 2024
@andrewpai andrewpai modified the milestones: 1.54.0, 1.55.0, 1.56.0 Nov 23, 2024
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
Status: Delivered
Development

No branches or pull requests

3 participants