Reputation: 148
I´m wondering how the Subject from Shiro is filled with Pac4j ? Normally I can use:
Subject subject = SecurityUtils.getSubject();
I´m using Keycloak with Pac4j. It´s working and the user is authenticated. But do I specifically set the Subject Object?
If I try to get the Subject object after successful authentication I still got subject.isAuthenticated = false
?
Or is Pac4J using another Subject Object?
Upvotes: 0
Views: 151
Reputation: 2699
pac4j populates the Shiro subject thanks to the: https://github.com/bujiio/buji-pac4j/blob/master/src/main/java/io/buji/pac4j/profile/ShiroProfileManager.java
Upvotes: 0