diff options
author | Renu Kumari <renu.kumari@bell.ca> | 2021-08-17 07:30:19 -0400 |
---|---|---|
committer | Renu Kumari <renu.kumari@bell.ca> | 2021-08-20 07:54:25 -0400 |
commit | 743380d1f171d4c0dd46dc0cd5b47d8ea93bea44 (patch) | |
tree | 28797238bc83b03d6f99d495a8b351c0b67c4465 /src/main/resources/application.yml | |
parent | ea04c07ad990b5543766e95e234cae746bd1fbc1 (diff) |
Add basic security to query interface
- Added WebSecurity configuration and corresponding test case
- Updated existing test cases to handle spring security
- Moved QueryResponseFactory to QueryController to avoid cyclic dependency
Issue-ID: CPS-530
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: I7e03ed9ccf983090ce514873b86fc9b2f851ed4f
Diffstat (limited to 'src/main/resources/application.yml')
-rwxr-xr-x | src/main/resources/application.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 41eddf8..a3b1cd8 100755 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -68,6 +68,12 @@ springdoc: urls: - name: query url: /swagger/openapi.yml +security: + # comma-separated uri patterns which do not require authorization + permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/swagger/openapi.yml + auth: + username: ${APP_USERNAME} + password: ${APP_PASSWORD} # Actuator management: |