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

Role isn't added, but everything else works #41

Open
sam-lord opened this issue Jan 25, 2023 · 0 comments
Open

Role isn't added, but everything else works #41

sam-lord opened this issue Jan 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sam-lord
Copy link

Describe the bug

When logging in with Google (after switching to test against my email domain), the role isn't added for the user.

Steps to reproduce

  1. Fork, replace all instances of @netlify.com with my domain, and the netlify role with another.
  2. Add a shared secret to both the webhook in the identity UI, and as an environment variable
  3. Sign in with Google - taken to screen which says I have logged in, but not redirected to app

At this point, I checked the function log, and it is trying to assign the role, but nothing happens, no role is added.

Expected behavior

Role should have been added to user when logging in.

Can you submit a pull request?

I'd like to, but I haven't found any documentation for the identity webhooks. Is it supposed to return the user_metadata too? I've seen that shown on other code snippets on the web but haven't been able to determine what actually needs to happen.

@sam-lord sam-lord added the bug Something isn't working label Jan 25, 2023
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
None yet
Development

No branches or pull requests

1 participant