com.gentics.contentnode.rest.resource
Interface AuthenticationResource


public interface AuthenticationResource

Authentication Resource. This can be used to authenticate an existing SID.


Method Summary
 java.lang.String alternateSsoLogin()
          Perform a login to the system with SSO systems
 LoginResponse login(LoginRequest request)
          Perform a login to the system based on user credentials.
 GenericResponse logout(java.lang.String sid)
          Do a logout for the current session
 java.lang.String ssoLogin()
          Perform a login to the system with SSO systems
 AuthenticationResponse validate(java.lang.String sid)
          Validate the given SID
 

Method Detail

validate

AuthenticationResponse validate(java.lang.String sid)
Validate the given SID

Parameters:
sid - sid + gcn_session_secret (taken from the GCN_SESSION_SECRET cookie) to validate
Returns:
response containing validation result and (possibly) a user

alternateSsoLogin

java.lang.String alternateSsoLogin()
Perform a login to the system with SSO systems

Returns:
SID or "NOTFOUND" or "FAILURE"

ssoLogin

java.lang.String ssoLogin()
Perform a login to the system with SSO systems

Returns:
SID or "NOTFOUND" or "FAILURE"

login

LoginResponse login(LoginRequest request)
Perform a login to the system based on user credentials. If the user is successfully authenticated, create a new session and send back the sid. If a new sessionSecret is created, set it as a cookie

Parameters:
request - login request (contains the login credentials)
Returns:
login response

logout

GenericResponse logout(java.lang.String sid)
Do a logout for the current session

Returns:
generic response


Copyright © 2015 Gentics Software GmbH. All Rights Reserved.