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
Constructors Constructor Description OpenIdConnectAuthenticationController(OpenIdConnectSettings openIdConnectSettings, OpenIdConnectClient client, org.springframework.security.authentication.AuthenticationManager authenticationManager, SecurityConfigProperties securitySettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Void>
authorizationCallback(javax.servlet.http.HttpServletRequest httpRequest, String code, String redirectUri, String state)
org.springframework.http.ResponseEntity<String>
incorrectParametersException()
OpenIdConnectLoginResponse
login(javax.servlet.http.HttpServletRequest httpRequest, String redirectUri)
-
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 Detail
-
OpenIdConnectAuthenticationController
public OpenIdConnectAuthenticationController(OpenIdConnectSettings openIdConnectSettings, OpenIdConnectClient client, @Qualifier("blueriqAuthenticationManager") org.springframework.security.authentication.AuthenticationManager authenticationManager, SecurityConfigProperties securitySettings)
-
-
Method Detail
-
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, @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()
-
-