@Operation(description = "Receive authenticate request from client")
    @GetMapping(value = { "/authorization", "/authenticate" })
    public RedirectView authenticate(@Valid AuthenticateRequest params, BindingResult result) throws IOException, ParseException, JOSEException, InvalidSignatureException, DienstencatalogusException {
        if (result != null && result.hasErrors()) {
            result.getAllErrors().stream().forEach(e -> logger.info("{} {}",e.getObjectName(), e.getDefaultMessage()));
            return new RedirectView(service.redirectWithError(params));
        }

        return new RedirectView(service.redirectWithSession(params));
    }
@Test
    void authenticate() throws InvalidSignatureException, IOException, ParseException, DienstencatalogusException, JOSEException {
        controller.authenticate(authenticateRequest(), null);
    }