lucasdillmann commented on PR #522:
URL: https://github.com/apache/shiro/pull/522#issuecomment-1373073812

   @lprimak I finished the tests here using Spring Boot 3.0.1, and everything 
seems to be working just fine.
   
   The source code of the test project is available 
[here](https://github.com/lucasdillmann/shiro-spring-boot-test). I didn't uplod 
the changes in the Shiro source, but it is just the inclusion of the 
maven-shade-plugin in the shiro-spring-boot module.
   
   In short, these are the (exploratory) tests I've made:
   - Check if subject is authenticated or not using both the annotations 
(RequiresUser, RequiresGuest and RequiresAuthentication) and programmatic code.
   - Check if subject has a permission or not, also using the 
RequiresPermissions annotation and the Subject#checkPermission method.
   - Check if subject has a role or not, also using the RequiresRoles 
annotation and Subject#checkRole
   - Login and logout procedures
   
   The only "problem" I've found is in the dependency management: If you check 
the [build.gradle file 
here](https://github.com/lucasdillmann/shiro-spring-boot-test/blob/master/build.gradle.kts#L30)
 you will see that I needed to explicitly include every module with the jakarta 
variant and exclude the regular one. This happens because of the POM file 
contents, which bring the regular JAR as transitive.
   
   I don't know if this is expected or not and, if it isn't, if it should be 
changed or not.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to