Skip to content

Commit

Permalink
Fix compilation with OAuth2 + Microservices \
Browse files Browse the repository at this point in the history
  • Loading branch information
jdubois committed Feb 27, 2018
1 parent 3eec6f9 commit 6463bbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public class CacheConfiguration {
cacheManager.getCache("oAuth2Authentication").getAdvancedCache(), this,
ConfigurationAdapter.create()));
<%_ } _%>
<%_ if (!skipUserManagement || authenticationType === 'oauth2') { _%>
<%_ if (!skipUserManagement || (authenticationType === 'oauth2' && applicationType !== 'microservice')) { _%>
registerPredefinedCache(<%=packageName%>.repository.UserRepository.USERS_BY_LOGIN_CACHE, new JCache<Object, Object>(
cacheManager.getCache(<%=packageName%>.repository.UserRepository.USERS_BY_LOGIN_CACHE).getAdvancedCache(), this,
ConfigurationAdapter.create()));
Expand Down

0 comments on commit 6463bbd

Please sign in to comment.