• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DataBiosphere / consent / #5848

05 May 2025 03:41PM UTC coverage: 78.738% (-0.03%) from 78.768%
#5848

push

web-flow
DT-1518: Populate AuthUser with full Consent User object (#2488)

97 of 116 new or added lines in 11 files covered. (83.62%)

10091 of 12816 relevant lines covered (78.74%)

0.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/main/java/org/broadinstitute/consent/http/authentication/DuosUserAuthorizer.java
1
package org.broadinstitute.consent.http.authentication;
2

3
import io.dropwizard.auth.Authorizer;
4
import jakarta.ws.rs.container.ContainerRequestContext;
5
import org.broadinstitute.consent.http.models.DuosUser;
6

7
public class DuosUserAuthorizer implements Authorizer<DuosUser> {
8

9
  private final AuthorizationHelper authorizationHelper;
10

11
  DuosUserAuthorizer(AuthorizationHelper authorizationHelper) {
1✔
12
    this.authorizationHelper = authorizationHelper;
1✔
13
  }
1✔
14

15
  @Override
16
  public boolean authorize(DuosUser user, String role, ContainerRequestContext context) {
NEW
17
    return authorizationHelper.authorize(user, role);
×
18
  }
19
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc