Skip to content
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

Refactor: Enable and Disable Keycloak Security Configuration by Profile #12

Open
rehammuzzamil opened this issue Sep 27, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@rehammuzzamil
Copy link
Contributor

We can do a bit of RnD to enable and disable the Keycloak Security Configuration class by passing a param in application.yml or by using Spring/Maven Profiling.

Reason:
To avoid failing existing unit tests that do not pass an Authorization header.
Reference: #8

Possible Solutions:

  • Use the configuration only for a profile add @Profile to the class
  • Enable it by the property, add @ConditionalOnProperty to the class.

cc : @dubdabasoduba

@rehammuzzamil rehammuzzamil added enhancement New feature or request documentation Improvements or additions to documentation labels Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant