Interface IAuthentication

All Known Subinterfaces:
IInCoreAuthentication

@Path("/auth") public interface IAuthentication
Authentication service
  • Method Details

    • login

      @POST @Path("login") LoginResponse login(@QueryParam("login") String login, String password, @QueryParam("origin") String origin) throws ServerFault
      Try to log in user into Blue-Mind and create valid session on success
      Parameters:
      password - user password
      origin - Blue Mind application from which user try to log in
      user - user login
      Returns:
      LoginResponse
      Throws:
      ServerFault
    • loginWithParams

      @POST @Path("loginWithParams") LoginResponse loginWithParams(@QueryParam("login") String login, String password, @QueryParam("origin") String origin, @QueryParam("interactive") Boolean interactive) throws ServerFault
      Try to log in user into Blue-Mind and create valid session on success
      Parameters:
      password - user password
      origin - Blue Mind application from which user try to log in
      interactive - interactive
      user - user login
      Returns:
      LoginResponse
      Throws:
      ServerFault
    • validate

      @POST @Path("validate") ValidationKind validate(@QueryParam("login") String login, String password, @QueryParam("origin") String origin) throws ServerFault
      Validate credential
      Parameters:
      password - user password
      origin - Blue Mind application from which user try to log in
      user - user login
      Returns:
      LoginResponse
      Throws:
      ServerFault
    • ping

      @GET @Path("ping") void ping() throws ServerFault
      Refreshes the session, or throws exception if the SecurityContext is invalid.
      Throws:
      ServerFault
    • logout

      @POST @Path("logout") void logout() throws ServerFault
      Close a Blue-Mind session
      Throws:
      ServerFault
    • su

      @POST @Path("_su") LoginResponse su(@QueryParam("login") String login) throws ServerFault
      Create Blue-Mind access token for requested user.
      This token can be used for authenticate against Blue-Mind components

      Only token from global domain are allowed to do this.

      Parameters:
      login - requested login@domain access token
      Returns:
      LoginResponse
      Throws:
      ServerFault
    • suWithParams

      @POST @Path("_suWithParams") LoginResponse suWithParams(@QueryParam("login") String login, @QueryParam("interactive") Boolean interactive) throws ServerFault
      Throws:
      ServerFault
    • getCurrentUser

      @GET AuthUser getCurrentUser() throws ServerFault
      Throws:
      ServerFault