Class 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 Detail

      • OpenIdConnectAuthenticationController

        public OpenIdConnectAuthenticationController​(OpenIdConnectSettings openIdConnectSettings,
                                                     OpenIdConnectClient client,
                                                     @Qualifier("blueriqAuthenticationManager")
                                                     org.springframework.security.authentication.AuthenticationManager authenticationManager,
                                                     SecurityConfigProperties securitySettings)
    • Method Detail

      • 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()