// Path: testing/src/main/java/org/pac4j/jax/rs/resources/TestSessionResource.java
// @Path("/session")
// public class TestSessionResource extends TestResource {
// 
//     @GET
//     @Path("/logged")
//     @Pac4JSecurity(clients = "FormClient", authorizers = DefaultAuthorizers.IS_AUTHENTICATED)
//     public String logged() {
//         return "ok";
//     }
// 
//     @GET
//     @Path("/inject")
//     @Pac4JSecurity(clients = "FormClient", authorizers = DefaultAuthorizers.IS_AUTHENTICATED)
//     public String inject(@Pac4JProfile CommonProfile profile) {
//         if (profile != null) {
//             return "ok";
//         } else {
//             return "error";
//         }
//     }
// 
//     @POST
//     @Path("/login")
//     // TODO apparently we need to disable session renewal because grizzly
//     // send 2 JSESSIONID if not...
//     @Pac4JCallback(defaultUrl = "/session/logged", renewSession = false)
//     public void login() {
//         // nothing
//     }
// }


import java.util.Set;
import org.pac4j.jax.rs.resources.TestSessionResource;
package org.pac4j.jax.rs.rules;



public interface SessionContainerRule extends ContainerRule {
    
    @Override
    default Set<Class<?>> getResources() {
        Set<Class<?>> resources = ContainerRule.super.getResources();
// Path: testing/src/main/java/org/pac4j/jax/rs/resources/TestSessionResource.java
// @Path("/session")
// public class TestSessionResource extends TestResource {
// 
//     @GET
//     @Path("/logged")
//     @Pac4JSecurity(clients = "FormClient", authorizers = DefaultAuthorizers.IS_AUTHENTICATED)
//     public String logged() {
//         return "ok";
//     }
// 
//     @GET
//     @Path("/inject")
//     @Pac4JSecurity(clients = "FormClient", authorizers = DefaultAuthorizers.IS_AUTHENTICATED)
//     public String inject(@Pac4JProfile CommonProfile profile) {
//         if (profile != null) {
//             return "ok";
//         } else {
//             return "error";
//         }
//     }
// 
//     @POST
//     @Path("/login")
//     // TODO apparently we need to disable session renewal because grizzly
//     // send 2 JSESSIONID if not...
//     @Pac4JCallback(defaultUrl = "/session/logged", renewSession = false)
//     public void login() {
//         // nothing
//     }
// }


// Path: testing/src/main/java/org/pac4j/jax/rs/rules/SessionContainerRule.java
import java.util.Set;
import org.pac4j.jax.rs.resources.TestSessionResource;

package org.pac4j.jax.rs.rules;



public interface SessionContainerRule extends ContainerRule {
    
    @Override
    default Set<Class<?>> getResources() {
        Set<Class<?>> resources = ContainerRule.super.getResources();
        resources.add(TestSessionResource.class);