Skip to content

Commit

Permalink
Merge pull request #85 from hmcts/Remove-@Qualifer
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Michael1142 authored May 29, 2024
2 parents 3a24dcb + 4588002 commit 15bad9c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ A library for verifying user/service "Bearer" tokens and enforcing coarse graine
this level and more fine-grained using standard spring-security approach (e.g. @Secured annotation at class/method level)
```java

@Bean
@Qualifier("authorizedRolesExtractor")
@Bean(value = "authorizedRolesExtractor")
public Function<HttpServletRequest, Collection<String>> authorizedRolesExtractor() {
return (anyRequest) -> Collections.singletonList("citizen");
}
Expand Down Expand Up @@ -84,8 +83,7 @@ A library for verifying user/service "Bearer" tokens and enforcing coarse graine
list based on some application property
```java

@Bean
@Qualifier("authorizedServiceExtractor")
@Bean(value = "authorizedServiceExtractor")
public Function<HttpServletRequest, Collection<String>> authorizedServicesExtractor() {
return (request) -> Collections.singletonList("divorce");
}
Expand Down

0 comments on commit 15bad9c

Please sign in to comment.