-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/21 builtin users #27
Conversation
- loading knownUsers objects from config - debug controller (`GET /users`) to test the outcome easily // todo remove
…vider (actually consumes config)
sh: line 1: w: command not found
24283a8
to
63c740a
Compare
63c740a
to
33a239b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (just checked the code for now), will approve once the problem caused by my PR is fixed (sorry)
service/src/main/scala/za/co/absa/logingw/rest/SecurityConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/logingw/rest/SecurityConfig.scala
Outdated
Show resolved
Hide resolved
service/src/main/scala/za/co/absa/logingw/rest/config/ConfigValidatable.scala
Outdated
Show resolved
Hide resolved
…pl ConfigValidationError and empty ConfigValidationSuccess). ConfigValidationResult helper methods ( .merge(CVR), .getErrors, ConfigValidationError creation shorthands) ConfigValidatable.validate - does not throw now returns ConfigValidationResult. Implemented a throwing wrapper .failOnValidationError
…onfigValidationResult.validate()) -> ConfigValidationResult.throwOnErrors, ConfigValidationResult.getErrors -> .errors unit tests added/updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (checked code, ran locally)
# Conflicts: # service/src/main/resources/application.properties
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR introduces configuration of the user section where known users can be added (instead of previously built-in) single user.
Configuration redone to YAML in order to properly set list of user details.
Individual configuration classes split - they feature their own validations -- that are run on startup (preventing the application to run if invalid).
Tests added for config classes and the related auth provider.
Closes #21