-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
14601 authorization api #16495
base: main
Are you sure you want to change the base?
14601 authorization api #16495
Conversation
…m:CDCgov/prime-reportstream into platform/jamie/15864-spring-cloud-swagger
…m:CDCgov/prime-reportstream into platform/jamie/15864-spring-cloud-swagger
…m:CDCgov/prime-reportstream into platform/jamie/15864-spring-cloud-swagger
auth/src/main/kotlin/gov/cdc/prime/reportstream/auth/service/OktaGroupsJWTWriter.kt
Show resolved
Hide resolved
auth/src/main/kotlin/gov/cdc/prime/reportstream/auth/service/OktaGroupsService.kt
Show resolved
Hide resolved
shared/src/main/kotlin/gov/cdc/prime/reportstream/shared/auth/AuthZService.kt
Show resolved
Hide resolved
…ime-reportstream into platform/jamie/14601-authz-api
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.
Tried to follow the test steps, but I get connection refused when I try to submit a report.
.setClientId(oktaClientProperties.clientId) | ||
.setScopes(oktaClientProperties.requiredScopes) | ||
.setPrivateKey(oktaClientProperties.apiPrivateKey) | ||
// .setCacheManager(...) TODO: investigate caching since groups don't often change |
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.
Is there a ticket for this?
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.
I would just leave this be for now. Caching is something we can worry about if performance becomes a problem especially since this is currently a POC.
...st/kotlin/gov/cdc/prime/reportstream/auth/filter/AppendOktaGroupsGatewayFilterFactoryTest.kt
Show resolved
Hide resolved
path: /swagger/api-docs | ||
|
||
#Uncomment for verbose logging |
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.
This appears to be uncommented already, is that intentional?
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.
Nope, good catch. It's helpful for debugging as it spits out tons of logs.
submissions/src/test/kotlin/SubmissionControllerIntegrationTest.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Arnej <118766341+arnejduranovic@users.noreply.github.com>
…ime-reportstream into platform/jamie/14601-authz-api
This PR adds authorization functionality to the auth and submission microservices.
Test Steps:
Bonus points: run the tests in the auth and submissions project to ensure they are passing on your machine locally.
Changes
Checklist
Testing
./prime test
or./gradlew testSmoke
against local Docker ReportStream container?Linked Issues