Skip to content

External APIs to interact with other systems

Josiah Jones edited this page Dec 14, 2023 · 11 revisions

About how external APIs interact with other systems within VRO

Currently VRO supports JWT auth tokens, API auth keys, and mutual TLS to connect to LHDI. This is described in the links below.

Since the JWT Bearer token secures internal micro-services and external api communication, vro disables CSRF protection because according to spring docs it is not recommended. SecurityConfig.java The securityConfig defines a securityFilterChain that describes the behavior of the JWT lifecycle.

The API key is used for Swagger-ui which is a way to locally expose endpoints. (WIP)

When should you use CSRF protection?

Our recommendation is to use CSRF protection for any request that could be processed by a browser by normal users. If you are only creating a service that is used by non-browser clients, you will likely want to disable CSRF protection. Spring Docs Source

Clone this wiki locally