Skip to content

Commit

Permalink
Merge pull request #10423 from cBioPortal/pvannierop-patch-1
Browse files Browse the repository at this point in the history
Fix context initialization when property 'dat.method' is missing
  • Loading branch information
inodb authored Oct 9, 2023
2 parents 80f067d + 1c62013 commit 399ca10
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public OAuth2DataAccessTokenServiceImpl oauth2DataAccessTokenService() {
}

@Bean("dataAccessTokenService")
@ConditionalOnProperty(name = "dat.method", havingValue = "none")
@ConditionalOnProperty(name = "dat.method", havingValue = "none", matchIfMissing = true)
public UnauthDataAccessTokenServiceImpl unauthDataAccessTokenService() {
return new UnauthDataAccessTokenServiceImpl();
}
Expand All @@ -65,4 +65,4 @@ public JwtDataAccessTokenServiceImpl jwtDataAccessTokenService() {
return new JwtDataAccessTokenServiceImpl();
}

}
}

0 comments on commit 399ca10

Please sign in to comment.