com.gentics.contentnode.rest.resource
Interface AuthenticationResource


public interface AuthenticationResource

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


Method Summary
 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(String sid)
          Do a logout for the current session
 String ssoLogin()
          Perform a login to the system with SSO systems
 AuthenticationResponse validate(String sid)
          Validate the given SID
 

Method Detail

validate

AuthenticationResponse validate(String sid)
Validate the given SID

Parameters:
sid - sid to validate
Returns:
response containing validation result and (possibly) a user

alternateSsoLogin

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

Returns:
SID or "NOTFOUND" or "FAILURE"

ssoLogin

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(String sid)
Do a logout for the current session

Returns:
generic response


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.