Skip to content

Commit

Permalink
Issue #111: Security-Config for new endpoint and minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
drtyyj committed Apr 12, 2024
1 parent e136720 commit bf78a6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public SecurityFilterChain filterChain(HttpSecurity http,
//External Data Gateway
req.requestMatchers("/api/v1/external/bulk")
.permitAll();
req.requestMatchers("/api/v1/external/participants")
.permitAll();
req.requestMatchers("/api/v1/calendar/studies/*/calendar.ics")
.permitAll();
// all other apis require credentials
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,6 @@ public static SimpleParticipantDTO toDTO(SimpleParticipant participant) {
.alias(participant.alias());
}

public static List<ParticipantDTO> toDTO(List<Participant> participants) {
if(participants == null) {
return List.of();
}
return participants.stream()
.map(StudyTransformer::toDTO)
.toList();
}

public static ParticipantDTO toDTO(Participant participant) {
if(participant == null) {
return null;
Expand Down

0 comments on commit bf78a6f

Please sign in to comment.