Questions tagged [light-4j]

This tag to be used for light-4j micro-service framework

This tag to be used for light-4j micro-service framework https://doc.networknt.com/faq/what-is-light-4j/

43 questions
4
votes
2 answers

Light-OAuth2 Refresh Tokens live forever? (Must be explictly deleted)

I have a question about light-oauth2 refresh tokens. It appears that they never expire so must be manually revoked, which IMO causes maintenance and security issues, and also seems to contradict the light-oauth2 docs. (Note: My ears are open to…
2
votes
0 answers

How to validate against an OpenAPI schema with $refs using json-schema-validator

One caveat here is that the OpenAPI Schema is not being used for the purposes of validating requests and responses. The OpenAPI schema can't be changed to a regular JSON Schema. Say we have an OpenAPI schema in the form TestSchema.json { …
daelynj
  • 21
  • 3
2
votes
1 answer

Why there are primary and secondary certificates for JWT verification in light-4j

When enabling light-4j security, there are two files that need to be in the config folder for JWT verification. primary.crt and secondary.crt. I am wondering why there are two certificates for JWT verification.
Steve Hu
  • 358
  • 2
  • 10
1
vote
1 answer

How to use environment variables in light-4j configuration files?

In light-4j, is there a way to use environment variables in configuration files (like cors.yml, consul.yml, client.yml) similar to docker-compose files?
Steve Hu
  • 358
  • 2
  • 10
1
vote
2 answers

Spring boot or Vertx or any other framework for reactive micro-service development

I want to convert my monolith application to microservices because it is more in size and all the modules are tightly coupled in the same. I went through many documents but still not able to figure it out which framework should I use. My Use cases:-…
Ravat Tailor
  • 1,193
  • 3
  • 20
  • 44
1
vote
1 answer

Any recommendations around caching for light-4j applications?

I want to add a cache layer at the rest API endpoint to reduce the latency and increase the throughput.
Steve Hu
  • 358
  • 2
  • 10
1
vote
1 answer

How to customized JWT verification in light-4j

We are using a light-4j proxy service with openapi3 and one of the api methods require more than one scope. Using enableVerifyScope of the jwt, we are getting success if one of the jwtScopes matches any of the specsScopes. Is there a way that we can…
Steve Hu
  • 358
  • 2
  • 10
1
vote
1 answer

Graceful shutdown in Undertow

I'm building a light Java app using light4j and Undertow and I need a mechanism for waiting for existing requests to finish before shutting down the server. I discovered the existence of GracefulShutdownHandler and I managed to wrap it around a…
Radu Cosma
  • 11
  • 3
0
votes
1 answer

Add aditional information to json-schema and get it when validate through the networknt json validator

I'm using json-schema to validate a JSON payload with the help of networknt json-schema-validator. Now I need to set a severity level like "warning" or "error" to each attribute, and based on its value I'm deciding how to print that validation…
Prasad
  • 83
  • 1
  • 8
0
votes
1 answer

How to validate array item types with networknt/json-schema-validator?

its probably a very simple thing that Im missing, but my json-schema-validator (networknt/json-schema-validator) doesnt validate the type of my items inside an array. This Java-snippet should yield errors: var schema = "{\n" + " …
jdo
  • 71
  • 5
0
votes
1 answer

How to validate JSON with schema which contains a reference to another schema?

I want to validate a JSON file with a JSON schema file, which contains a reference to another JSON schema file. I added a JSON Schema Validator for my Apache Camel route. Because I use JSON schema version draft-07 and the default version is…
dur
  • 15,689
  • 25
  • 79
  • 125
0
votes
1 answer

Light4J Oauth2 docker-compose error's saying Cannot locate specified Dockerfile

Followed what was given in the documentation about running light4J oAuth locally. I was able to run maven clean install on the whole repo but when i try running the docker compose up it fails saying DockerFile does not exist. Below is the main…
0
votes
1 answer

How to Add Custom Json Schema Validators

We are using the light4j json schema validator in our project. Version 1.0.36 Is it possible to add custom validators like ISO8601 time/duration min and max for example? If so how do you add custom validation? We realize these would not be part…
akagixxer
  • 1,767
  • 3
  • 21
  • 35
0
votes
1 answer

Is there any real light 4j examples for mapping json request to Java POJO objects?

It happens to me that I am bound to use light 4j . I couldn't find a simple example of a simple CRUD service in entire source code base of light 4j. All there examples simply return dummy response in their handler. None of them have actually…
Akhil Soni
  • 73
  • 2
  • 11
0
votes
1 answer

Is Light-4j similar to the AOP programming?

While reading the Light-4j document, it looks like Light-4j is very similar to the AOP programming. What is the relationship between Light-4j and AOP programming?
Steve Hu
  • 358
  • 2
  • 10
1
2 3