
org.picketlink.rest.AuthenticationEndpoint Maven / Gradle / Ivy
Go to download
PicketLink REST provides a set of RESTful identity services and clients, including support for SCIM 1.1
The newest version!
package org.picketlink.rest;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.picketlink.Identity;
/**
*
* @author Shane Bryzak
*/
@Path("/auth")
@RequestScoped
public class AuthenticationEndpoint {
@Inject Identity identity;
@Path("/status")
@GET
@Produces(MediaType.APPLICATION_JSON)
public boolean status() {
return identity.isLoggedIn();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy