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

Add a post authenticaton handler to validate email domain during federated authentication #6177

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Yasasr1
Copy link
Contributor

@Yasasr1 Yasasr1 commented Dec 4, 2024

Proposed changes in this pull request

This pr introduces a new post authentication handler to validate the email address of the user authenticated from a federated IDP.

This handler will be invoked when email domain based organization discovery is enabled to prevent user authentication and provisioning to organizations when the authenticated user's email domain does not match with any of the mapped email domains for the organization.

Related issue

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 53.33333% with 63 lines in your changes missing coverage. Please review.

Project coverage is 45.63%. Comparing base (add14de) to head (d037cd5).

Files with missing lines Patch % Lines
...ler/request/impl/EmailDomainValidationHandler.java 52.94% 28 Missing and 12 partials ⚠️
.../authentication/framework/util/FrameworkUtils.java 55.17% 9 Missing and 4 partials ⚠️
.../framework/internal/FrameworkServiceComponent.java 0.00% 10 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6177      +/-   ##
============================================
+ Coverage     45.62%   45.63%   +0.01%     
+ Complexity    14159    14146      -13     
============================================
  Files          1633     1634       +1     
  Lines        101439   101534      +95     
  Branches      17928    17880      -48     
============================================
+ Hits          46277    46338      +61     
- Misses        48427    48448      +21     
- Partials       6735     6748      +13     
Flag Coverage Δ
unit 28.54% <53.33%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Yasasr1 Yasasr1 force-pushed the add-email-domain-validatioh branch 2 times, most recently from b25fbc7 to f2d9736 Compare December 6, 2024 08:04
@Yasasr1 Yasasr1 force-pushed the add-email-domain-validatioh branch from f2d9736 to f5cda0f Compare December 6, 2024 09:29
@Yasasr1 Yasasr1 changed the title Add a post authenticaton handler to validation email domain during federated authentication Add a post authenticaton handler to validate email domain during federated authentication Dec 6, 2024
@Yasasr1 Yasasr1 marked this pull request as draft December 13, 2024 04:23
Copy link

sonarqubecloud bot commented Jan 5, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant