Skip to content

Commit

Permalink
Adding more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
nvasta committed May 8, 2024
1 parent d249ffa commit 7300c80
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,15 @@ public Mono<Authentication> authenticate(Authentication authentication) {

// If the allowed organisations are restricted, apply that to the access
if(Strings.isNotBlank(this.allowedOrganisationMrn)) {
log.debug("Allowed organisations are with MRN prefix {}", this.allowedOrganisationMrn);
authentication.setAuthenticated(x500PrincipalMap.get(BCStyle.O).startsWith(this.allowedOrganisationMrn));
}
} else {
authentication.setAuthenticated(false);
}

// Return the authentication
log.debug("The final authentication decision was {}", authentication.isAuthenticated());
return Mono.just(authentication);
}

Expand Down

0 comments on commit 7300c80

Please sign in to comment.