Package com.aquima.web.api.controller.v1
Class AuthenticationController
java.lang.Object
com.aquima.web.api.controller.v1.AbstractBaseController
com.aquima.web.api.controller.v1.AuthenticationController
@RestController("apiAuthenticationController")
@RequestMapping(path="/api/v1",
produces="application/json")
@ServerContext
public class AuthenticationController
extends AbstractBaseController
Controller that handles authentication related actions on the API.
- Since:
- 9.2
- Author:
- T. Middeldorp
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationController
(com.blueriq.component.api.security.IAuthorisationManager authorisationManager, com.blueriq.component.api.IAquimaSessionsMap sessionManager) -
Method Summary
Modifier and TypeMethodDescriptionhandleAuthenticationException
(org.springframework.security.core.AuthenticationException exception) org.springframework.http.ResponseEntity<Void>
login
(org.springframework.web.context.request.WebRequest request) void
logout()
Methods inherited from class com.aquima.web.api.controller.v1.AbstractBaseController
handleConversionException, handleDecisionTreeNotExposedException, handleEmptySymptomException, handleFlowEndedException, handleForbiddenException, handleFunctionParameterException, handleFunctionValidationException, handleFunctionValidationException, handleMethodArgumentTypeMismatchException, handleRequestWardException, handleStartApplicationForbiddenException, handleStartFlowForbiddenException, handleStartShortcutForbiddenException, handleUnauthorizedException, handleUnknownApplicationException, handleUnknownDecisionTreeException, handleUnknownFlowException, handleUnknownFunctionFlowException, handleUnknownLanguageException, handleUnknownModuleException, handleUnknownSessionException, handleUnknownShortcutException, handleUnknownSubscriptionException, handleUnsupportedOpenApiSpecException, isAuthenticated
-
Constructor Details
-
AuthenticationController
public AuthenticationController(com.blueriq.component.api.security.IAuthorisationManager authorisationManager, com.blueriq.component.api.IAquimaSessionsMap sessionManager)
-
-
Method Details
-
login
@PostMapping("/login") public org.springframework.http.ResponseEntity<Void> login(org.springframework.web.context.request.WebRequest request) throws Exception - Throws:
Exception
-
logout
- Throws:
IOException
-
handleAuthenticationException
@ExceptionHandler(org.springframework.security.core.AuthenticationException.class) @ResponseStatus(UNAUTHORIZED) @ResponseBody public JsonError handleAuthenticationException(org.springframework.security.core.AuthenticationException exception)
-