@Path(value="/auth")
public interface AuthenticationResource
Modifier and Type | Method and Description |
---|---|
String |
alternateSsoLogin()
Perform a login to the system with SSO systems
|
GenericResponse |
globalPrefix()
Returns the global prefix
|
HashPasswordResponse |
hashPassword(javax.servlet.http.HttpServletRequest httpServletRequest,
HashPasswordRequest hashPasswordRequest,
int sessionId)
Create a hash of the given password and userID
The hashing algorithm can change at any time.
|
LoginResponse |
login(LoginRequest request,
String sidString)
Perform a login to the system based on user credentials.
|
LoginResponse |
loginWithRsa(LoginWithRsaRequest request,
String sidString)
Perform a login to the system based on RSA signature.
|
GenericResponse |
logout(String sid,
boolean allSessions)
Do a logout for the current session
|
GenericResponse |
matchPassword(javax.servlet.http.HttpServletRequest httpServletRequest,
MatchPasswordRequest matchPasswordRequest,
int sessionId)
Checks if the given password matches the given hash
As this method is possibly expensive (depends on the implemented hash algorithm),
we don't allow anonymous access to it.
|
String |
ssoLogin()
Perform a login to the system with SSO systems
|
AuthenticationResponse |
validate(String sid)
Validate the given SID
|
@GET @Path(value="/validate/{sid}") AuthenticationResponse validate(@PathParam(value="sid") String sid)
sid
- sid + gcn_session_secret (taken from the GCN_SESSION_SECRET cookie) to validate@GET @Path(value="/login") @Produces(value="text/plain; charset=UTF-8") String alternateSsoLogin()
@GET @Path(value="/ssologin") @Produces(value="text/plain; charset=UTF-8") String ssoLogin()
@POST @Path(value="/login") LoginResponse login(LoginRequest request, @QueryParam(value="sid") @DefaultValue(value="0") String sidString)
request
- login request (contains the login credentials)sidString
- Optional: Existing sid number, the stored secret must match the cookie@POST @Path(value="/loginwithrsa") LoginResponse loginWithRsa(LoginWithRsaRequest request, @QueryParam(value="sid") @DefaultValue(value="0") String sidString)
request
- login request (contains the login credentials)sidString
- Optional: Existing sid number, the stored secret must match the cookie@POST @Path(value="/logout/{sid}") GenericResponse logout(@PathParam(value="sid") String sid, @QueryParam(value="allSessions") @DefaultValue(value="0") boolean allSessions)
@POST @Path(value="/hashpassword") HashPasswordResponse hashPassword(@Context javax.servlet.http.HttpServletRequest httpServletRequest, HashPasswordRequest hashPasswordRequest, @QueryParam(value="sid") @DefaultValue(value="0") int sessionId)
hashPasswordRequest
- Password request object@POST @Path(value="/matchpassword") GenericResponse matchPassword(@Context javax.servlet.http.HttpServletRequest httpServletRequest, MatchPasswordRequest matchPasswordRequest, @QueryParam(value="sid") @DefaultValue(value="0") int sessionId)
matchPasswordRequest
- Password match request object@GET @Path(value="/globalprefix") GenericResponse globalPrefix()
Copyright © 2024 Gentics Software. All rights reserved.