AbsaOSS / login-service

AbsaOSS Common Login gateway using JWT Public key signatures
Apache License 2.0
2 stars 0 forks source link

Add config validation #24

Open dk1844 opened 1 year ago

dk1844 commented 1 year ago

Background

Add config validation logic to ensure that the configuration values provided are sensible and LGW can work with these.

Feature

This may be something completely custom, but it would be nice if we could use some already established validation options, too.

Solution Ideas:

  1. Write custom checks on the application start
  2. Consider leveraging existing JSR-303 validation approach with Springboot's @Valid and @Validation annotations. Related article. Just beware, that we use @ConstructorBinding that may not work with @ConfigurationProperties
  3. Any other solution or combination of the above.