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/test/resources | |
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/test/resources')
-rw-r--r-- | src/test/resources/application.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml index fce4a17..6765057 100644 --- a/src/test/resources/application.yml +++ b/src/test/resources/application.yml @@ -63,4 +63,11 @@ app: topic: cps.cfg-state-events query: response: - max-page-size: 20
\ No newline at end of file + max-page-size: 20 + +security: + # comma-separated uri patterns which do not require authorization + permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/swagger/openapi.yml + auth: + username: testUser + password: testPassword |