Package com.aquima.web.api.controller.v2
Class OpenIdConnectAuthenticationController
java.lang.Object
com.aquima.web.api.controller.v2.AbstractBaseController
com.aquima.web.api.controller.v2.OpenIdConnectAuthenticationController
@ConditionalOnProperty(name="blueriq.security.login-type",
havingValue="openid-connect")
@RestController("v2OpenIdConnectAuthenticationController")
@RequestMapping(path="/api/v2",
produces="application/json")
@ServerContext
public class OpenIdConnectAuthenticationController
extends AbstractBaseController
This controller is used specifically for clients that only accept JSON and use OpenID Connect Identity Provider.
Controller is only available if log in type property is set to openid connect
- Since:
- 11.4
- Author:
- Mihai Bob
-
Constructor Summary
ConstructorsConstructorDescriptionOpenIdConnectAuthenticationController
(OpenIdConnectSettings openIdConnectSettings, OpenIdConnectClient client, org.springframework.security.authentication.AuthenticationManager authenticationManager, SecurityConfigProperties securitySettings, org.springframework.security.web.context.SecurityContextRepository securityContextRepository) -
Method Summary
Methods inherited from class com.aquima.web.api.controller.v2.AbstractBaseController
clientParametersException, handleConversionException, handleDecisionTreeNotExposedException, handleEmptySymptomException, handleFlowEndedException, handleForbiddenException, handleFunctionParameterException, handleFunctionValidationException, handleFunctionValidationException, handleMethodArgumentTypeMismatchException, handleRequestWardException, handleStartApplicationForbiddenException, handleStartShortcutForbiddenException, handleUnauthorizedException, handleUnknownApplicationException, handleUnknownDecisionTreeException, handleUnknownFlowException, handleUnknownFunctionFlowException, handleUnknownLanguageException, handleUnknownModuleException, handleUnknownSessionException, handleUnknownShortcutException, handleUnknownSubscriptionException, handleUnsupportedOpenApiSpecException, isAuthenticated
-
Constructor Details
-
OpenIdConnectAuthenticationController
public OpenIdConnectAuthenticationController(OpenIdConnectSettings openIdConnectSettings, OpenIdConnectClient client, @Qualifier("blueriqAuthenticationManager") org.springframework.security.authentication.AuthenticationManager authenticationManager, SecurityConfigProperties securitySettings, org.springframework.security.web.context.SecurityContextRepository securityContextRepository)
-
-
Method Details
-
login
@GetMapping("/oidc/login") public OpenIdConnectLoginResponse login(javax.servlet.http.HttpServletRequest httpRequest, @RequestParam("redirect_uri") String redirectUri) throws Exception - Throws:
Exception
-
authorizationCallback
@PostMapping("/oidc/callback") public org.springframework.http.ResponseEntity<Void> authorizationCallback(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse response, @RequestParam("code") String code, @RequestParam("redirect_uri") String redirectUri, @RequestParam("state") String state) -
incorrectParametersException
@ExceptionHandler(org.springframework.web.bind.MissingServletRequestParameterException.class) public org.springframework.http.ResponseEntity<String> incorrectParametersException()
-