I've been successfully using your plugin for the last couple of days to authenticate my company's users with Sentry. Everything works great, except for one detail: the information returned by the plugin populates all necessary fields in the "auth_user" table (in the Sentry db), but the email for the user is not added to the "sentry_useremail" table. Because of this, some Sentry emails fail to be sent ("no users to send to" error in Sentry logs). To test this behavior, you can do the following:
1) Login as a new user with LDAP
2) Go to "settings/mail" (you need to be admin for this). Try sending yourself a test email. This works.
3) Go to "account". At the top, it should say "your email has not been verified. Resend verification email". Clicking that link will pop up a message saying "Verification email sent". However, email is not received. Checking logs, you will find the error "Did not build any messages, no users to send to"
4) Checking out the 2 relevant tables in postgresql, you will see one has an email for your user, the other doesn't. Locally created users have emails in both tables.
I first thought this was a problem with Sentry itself and posted a ticket here. However, there they pointed out the issue was not on their end (I think the issue is partly on their end for having email fields in two different tables, but I'm sure they have a good reason for that).
Granted, I don't know the workings of your plugin too well, so I might just be doing something wrong. Any help will be appreciated!
Hi!
I've been successfully using your plugin for the last couple of days to authenticate my company's users with Sentry. Everything works great, except for one detail: the information returned by the plugin populates all necessary fields in the "auth_user" table (in the Sentry db), but the email for the user is not added to the "sentry_useremail" table. Because of this, some Sentry emails fail to be sent ("no users to send to" error in Sentry logs). To test this behavior, you can do the following:
1) Login as a new user with LDAP 2) Go to "settings/mail" (you need to be admin for this). Try sending yourself a test email. This works. 3) Go to "account". At the top, it should say "your email has not been verified. Resend verification email". Clicking that link will pop up a message saying "Verification email sent". However, email is not received. Checking logs, you will find the error "Did not build any messages, no users to send to" 4) Checking out the 2 relevant tables in postgresql, you will see one has an email for your user, the other doesn't. Locally created users have emails in both tables.
I first thought this was a problem with Sentry itself and posted a ticket here. However, there they pointed out the issue was not on their end (I think the issue is partly on their end for having email fields in two different tables, but I'm sure they have a good reason for that).
Granted, I don't know the workings of your plugin too well, so I might just be doing something wrong. Any help will be appreciated!