@PostMapping(path = "/import", consumes = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Import account as a JSON document", parameters = @Parameter(name = "request", required = true, description = "The request"))
    public ResponseEntity importAccount(final HttpServletRequest request) throws Exception {
        val requestBody = IOUtils.toString(request.getInputStream(), StandardCharsets.UTF_8);
        LOGGER.trace("Submitted account: [{}]", requestBody);
        val serializer = new GoogleAuthenticatorAccountSerializer(applicationContext);
        val account = serializer.from(requestBody);
        LOGGER.trace("Storing account: [{}]", account);
        repository.getObject().save(account);
        return ResponseEntity.status(HttpStatus.CREATED).build();
    }
Import account.

@param request the request
@return the http status
@throws Exception the exception
support/cas-server-support-gauth-core/src/main/java/org/apereo/cas/gauth/credential/GoogleAuthenticatorTokenCredentialRepositoryEndpoint.java