@Path(value="/auth")
public interface IAuthentication
Modifier and Type | Method and Description |
---|---|
AuthUser |
getCurrentUser() |
LoginResponse |
login(java.lang.String login,
java.lang.String password,
java.lang.String origin)
Try to log in user into Blue-Mind and create valid session on success
|
LoginResponse |
loginWithParams(java.lang.String login,
java.lang.String password,
java.lang.String origin,
java.lang.Boolean interactive)
Try to log in user into Blue-Mind and create valid session on success
|
void |
logout()
Close a Blue-Mind session
|
void |
ping()
Refreshes the session, or throws exception if the SecurityContext is
invalid.
|
LoginResponse |
su(java.lang.String login)
Create Blue-Mind access token for requested user.
This token can be used for authenticate against Blue-Mind components |
LoginResponse |
suWithParams(java.lang.String login,
java.lang.Boolean interactive) |
ValidationKind |
validate(java.lang.String login,
java.lang.String password,
java.lang.String origin)
Validate credential
|
@POST @Path(value="login") LoginResponse login(@QueryParam(value="login") java.lang.String login, java.lang.String password, @QueryParam(value="origin") java.lang.String origin) throws ServerFault
user
- user loginpassword
- user passwordorigin
- Blue Mind application from which user try to log inLoginResponse
ServerFault
@POST @Path(value="loginWithParams") LoginResponse loginWithParams(@QueryParam(value="login") java.lang.String login, java.lang.String password, @QueryParam(value="origin") java.lang.String origin, @QueryParam(value="interactive") java.lang.Boolean interactive) throws ServerFault
user
- user loginpassword
- user passwordorigin
- Blue Mind application from which user try to log ininteractive
- interactiveLoginResponse
ServerFault
@POST @Path(value="validate") ValidationKind validate(@QueryParam(value="login") java.lang.String login, java.lang.String password, @QueryParam(value="origin") java.lang.String origin) throws ServerFault
user
- user loginpassword
- user passwordorigin
- Blue Mind application from which user try to log inLoginResponse
ServerFault
@GET @Path(value="ping") void ping() throws ServerFault
ServerFault
@POST @Path(value="logout") void logout() throws ServerFault
ServerFault
@POST @Path(value="_su") LoginResponse su(@QueryParam(value="login") java.lang.String login) throws ServerFault
Only token from global domain are allowed to do this.
login
- requested login@domain access tokenLoginResponse
ServerFault
@POST @Path(value="_suWithParams") LoginResponse suWithParams(@QueryParam(value="login") java.lang.String login, @QueryParam(value="interactive") java.lang.Boolean interactive) throws ServerFault
ServerFault
@GET AuthUser getCurrentUser() throws ServerFault
ServerFault
Copyright © 2021. All Rights Reserved.