Skip to content

Commit

Permalink
Merge pull request #856 from stuartwdouglas/security-tccl
Browse files Browse the repository at this point in the history
Use TCCL to load security resources so shamrock:dev works
  • Loading branch information
dmlloyd committed Feb 12, 2019
2 parents 2398151 + 7526d59 commit ba28e5a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public void loadRealm(RuntimeValue<SecurityRealm> realm, PropertiesRealmConfig c
return;
}
log.debugf("Trying to loader users: /%s", config.users);
URL users = getClass().getResource("/" + config.users);
URL users = Thread.currentThread().getContextClassLoader().getResource( config.users);
log.debugf("users: %s", users);
log.debugf("Trying to loader roles: %s", config.roles);
URL roles = getClass().getResource("/" + config.roles);
URL roles = Thread.currentThread().getContextClassLoader().getResource( config.roles);
log.debugf("roles: %s", roles);
if(users == null && roles == null) {
String msg = String.format("No PropertiesRealmConfig users/roles settings found. Configure the shamrock.security.file.%s properties", config.help());
Expand Down

0 comments on commit ba28e5a

Please sign in to comment.