Skip to content

Commit

Permalink
wip: fixed IT issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lprimak committed Dec 20, 2023
1 parent 807b360 commit dfad176
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.SimpleAuthenticationInfo;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.authc.credential.SimpleCredentialsMatcher;
import org.apache.shiro.authc.credential.Sha256CredentialsMatcher;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.authz.SimpleAuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm;
Expand All @@ -49,10 +49,11 @@ public class SampleRealm extends AuthorizingRealm {

protected UserDAO userDAO;

@SuppressWarnings("deprecation")
public SampleRealm() {
//This name must match the name in the User class's getPrincipals() method
setName("SampleRealm");
setCredentialsMatcher(new SimpleCredentialsMatcher());
setCredentialsMatcher(new Sha256CredentialsMatcher());
}

@Autowired
Expand Down

0 comments on commit dfad176

Please sign in to comment.