-
Notifications
You must be signed in to change notification settings - Fork 1
JASPER-792 CSO service account OAUTH. #775
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
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| public static bool IsCsoServiceAccountUser(this ClaimsPrincipal claimsPrincipal) | ||
| => claimsPrincipal.HasClaim(c => c.Type == CustomClaimTypes.PreferredUsername) && | ||
| claimsPrincipal.FindFirstValue(CustomClaimTypes.PreferredUsername).Equals("service-account-cso-jasper-dev"); |
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.
should the -dev be ommited?
| "Microsoft.Hosting.Lifetime": "Information" | ||
| } | ||
| }, | ||
| "CsoKeycloak": { |
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.
Should this be reflected in our [docker-compose.yaml] (https://github.com/bcgov/jasper/blob/master/docker/docker-compose.yaml) file and in Terraform too?
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.
missed pushing a commit, and updated.
| } | ||
|
|
||
| resource "aws_secretsmanager_secret" "keycloak_cso_secret" { | ||
| name = "external/${var.app_name}-keycloak_cso_secret-${var.environment}" |
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.
| name = "external/${var.app_name}-keycloak_cso_secret-${var.environment}" | |
| name = "external/${var.app_name}-keycloak-cso-secret-${var.environment}" |
Just so its consistent with other secret names
b71a3f9 to
55e99dc
Compare
|



Pull Request for JIRA Ticket: ----JASPER-702----
Issue ticket number and link
https://jira.justice.gov.bc.ca/browse/JASPER-702
Description
Add service account oauth to JASPER CSO order upsert API endpoint.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Tested via postman. confirmed authentication, authorization on endpoint.
Test Configuration:
If applicable
Checklist:
Documentation References
Put any doc references here