Package org.cyclos.services.access
Interface InternalAuthService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
InternalAuthServiceLocal
- All Known Implementing Classes:
InternalAuthServiceImpl,InternalAuthServiceSecurity
public interface InternalAuthService extends Service
Service used for login / get current authentication on REST
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthVOgetCurrentAuth()Returns the authentication information for the currently authenticated userSessionPropertiesVOgetSessionProperties()Returns the current session properties.AuthVOlogin(InternalLoginDTO loginParams)Creates a session for the currently authenticated user, returning the auth.AuthVOloginUser(@NotNull UserLoginDTO params)Creates a session for the given user, returning the authvoidsetSessionProperties(@NotNull SetSessionPropertiesDTO properties)Sets the current session properties.
-
-
-
Method Detail
-
getCurrentAuth
AuthVO getCurrentAuth() throws FrameworkException
Returns the authentication information for the currently authenticated user- Throws:
FrameworkException
-
getSessionProperties
SessionPropertiesVO getSessionProperties() throws FrameworkException
Returns the current session properties.- Returns:
- null if not logged in with a session.
- Throws:
FrameworkException
-
login
AuthVO login(InternalLoginDTO loginParams) throws FrameworkException, LoginException, RemoteAddressBlockedException
Creates a session for the currently authenticated user, returning the auth. If a device confirmation id is given and can be validated correctly then the session will be marked as trusted meaning no confirmation password will be required. Otherwise, the session (silently) won't be marked as trusted and the confirmation password will be required according to the channel configuration.- Parameters:
loginParams- TODO- Throws:
FrameworkExceptionLoginExceptionRemoteAddressBlockedException
-
loginUser
AuthVO loginUser(@NotNull @NotNull UserLoginDTO params) throws FrameworkException, LoginException, RemoteAddressBlockedException
Creates a session for the given user, returning the auth
-
setSessionProperties
void setSessionProperties(@NotNull @NotNull SetSessionPropertiesDTO properties) throws FrameworkExceptionSets the current session properties.- Throws:
FrameworkException
-
-