Skip to content

Commit 23f61f5

Browse files
authored
Merge pull request #1082 from zhx828/support-premium-api
Allow premium user to access actionable variants and annotated variants
2 parents eba6335 + 09d573e commit 23f61f5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/mskcc/cbio/oncokb/config/SecurityConfiguration.java

+7
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ public void configure(HttpSecurity http) throws Exception {
107107
.antMatchers("/api/v1/utils/cancerGeneList").permitAll()
108108
.antMatchers("/api/v1/utils/cancerGeneList.txt").permitAll()
109109
.antMatchers("/api/v1/utils/cancerGeneList.json").permitAll()
110+
111+
.antMatchers("/api/v1/annotation/search").hasAnyAuthority(AuthoritiesConstants.PREMIUM_USER, AuthoritiesConstants.ADMIN)
112+
.antMatchers("/api/v1/utils/allActionableVariants").hasAnyAuthority(AuthoritiesConstants.PREMIUM_USER, AuthoritiesConstants.ADMIN)
113+
.antMatchers("/api/v1/utils/allActionableVariants.txt").hasAnyAuthority(AuthoritiesConstants.PREMIUM_USER, AuthoritiesConstants.ADMIN)
114+
.antMatchers("/api/v1/utils/allAnnotatedVariants").hasAnyAuthority(AuthoritiesConstants.PREMIUM_USER, AuthoritiesConstants.ADMIN)
115+
.antMatchers("/api/v1/utils/allAnnotatedVariants.txt").hasAnyAuthority(AuthoritiesConstants.PREMIUM_USER, AuthoritiesConstants.ADMIN)
116+
110117
.antMatchers("/api/v1/**").hasAnyAuthority(AuthoritiesConstants.ADMIN)
111118

112119
.antMatchers("/api/account/reset-password/init").permitAll()

0 commit comments

Comments
 (0)