-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
Email Notification for OIDC Groups is not working #2647
Comments
Just to be sure, did you login at least once to make sure the OIDC user gets created and actually mapped into the Team in DT? |
Hi @valentijnscholten , I have make sure that the user is Mapped to OIDC Group and that OIDC group is mapped to the local team |
According to the code and testcase OIDC users should also get the email notification. Can you confirm my question above? You need to login at least once with the user to have the user created inside DT. Otherwise DT is not aware of the existence of the user. Also the email address field needs to be populated. dependency-track/src/main/java/org/dependencytrack/notification/publisher/SendMailPublisher.java Lines 129 to 143 in 1039a2a
|
Hi @valentijnscholten , Thanks for the info I have checked that the OIDC user in DT is mapped to the team for which I have set up the alert Is there anything I am missing in the "OIDC_SCOPE=openid email profile groups" Not sure In the local user I get the mail But in the OIDC user i didn't get mail notification |
When I use below API call GET /api/v1/user/oidc then I only get the username and subjectIdentifier, I didn't get email of the users in the user list { |
There was a bug in the current version affecting LDAP users in the underlying alpine framework. Could it be same happens for OIDC? |
It's more simple than the problem with LDAP. The |
Hi @syalioune , Thanks for the information Can you please recommended possible solution, is there anything we have to do in IAM services |
No nothing. A fix/feature should be implemented in DT (Alpine framework) to handle this use case. |
Thanks all, I raised a PR for Alpine to fix this: stevespringett/Alpine#484 As it is a low-risk change, hopefully we can include it in the upcoming 4.8 release. |
Fixed in stevespringett/Alpine#484. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Current Behavior
I receive the mail notification when the team mapped to an alert contains local users, but I didn't get the Mail Notification when the Team is mapped to OIDC Group
Steps to Reproduce
After doing all the steps, I didn't get a mail notification but I get the mail notification if I create a Local user
Expected Behavior
Mail Notification Send to the users under the OIDC Group
Dependency-Track Version
4.7.1
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
No response
Browser
Google Chrome
Checklist
The text was updated successfully, but these errors were encountered: