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
Constructors Constructor Description AuthenticationController(com.blueriq.component.api.security.IAuthorisationManager authorisationManager, com.blueriq.component.api.IAquimaSessionsMap sessionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonError
handleAuthenticationException(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
-
-
-
-
Method Detail
-
login
@PostMapping("/login") public org.springframework.http.ResponseEntity<Void> login(org.springframework.web.context.request.WebRequest request) throws Exception
- Throws:
Exception
-
logout
@PostMapping("/logout") @ResponseStatus(NO_CONTENT) public void logout() throws IOException
- Throws:
IOException
-
handleAuthenticationException
@ExceptionHandler(org.springframework.security.core.AuthenticationException.class) @ResponseStatus(UNAUTHORIZED) @ResponseBody public JsonError handleAuthenticationException(org.springframework.security.core.AuthenticationException exception)
-
-