Skip to content

Commit bc57379

Browse files
authored
Merge pull request #5423 from bcgov/feat/5382
chore(5382): add new role Finance Manager
2 parents 7fd6ffe + 79e6e87 commit bc57379

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed

sandbox/keycloak-provision/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ async function main() {
130130

131131
await kc.createClientRole(AUTH_REALM_NAME, authClient?.id as string, `billing-reviewer`);
132132
await kc.createClientRole(AUTH_REALM_NAME, authClient?.id as string, `billing-reader`);
133+
await kc.createClientRole(AUTH_REALM_NAME, authClient?.id as string, `finance-manager`);
133134
await kc.createClientRole(AUTH_REALM_NAME, authClient?.id as string, `private-reviewer`);
134135
await kc.createClientRole(AUTH_REALM_NAME, authClient?.id as string, `public-reviewer`);
135136
await kc.createClientRole(AUTH_REALM_NAME, authClient?.id as string, `user-reader`);

sandbox/mock-users.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,18 @@
107107
"jobTitle": "billing-reader",
108108
"officeLocation": ""
109109
},
110+
{
111+
"id": "a008b857-36c8-4a17-a79a-518e33effed1",
112+
"extension_85cc52e9286540fcb1f97ed86114a0e5_bcgovGUID": "a008b85736c84a17a79a518e33effed1",
113+
"onPremisesSamAccountName": "FINANCE_MANAGER_SYSTEM",
114+
"userPrincipalName": "finance.manager.system@gov.bc.ca",
115+
"mail": "finance.manager.system@gov.bc.ca",
116+
"displayName": "System, Finance Manager CITZ:EX",
117+
"givenName": "Finance Manager",
118+
"surname": "System",
119+
"jobTitle": "finance-manager",
120+
"officeLocation": ""
121+
},
110122
{
111123
"id": "a008b857-36c8-4a17-a79a-518e33effec8",
112124
"extension_85cc52e9286540fcb1f97ed86114a0e5_bcgovGUID": "a008b85736c84a17a79a518e33effec8",

terraform/keycloak/dev/roles.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ resource "keycloak_role" "pltsvc_billing_reader" {
118118
description = "Registry Billing Reader"
119119
}
120120

121+
resource "keycloak_role" "pltsvc_finance_manager" {
122+
realm_id = data.keycloak_realm.pltsvc.id
123+
client_id = keycloak_openid_client.pltsvc.id
124+
125+
name = "finance-manager"
126+
description = "Registry Finance Manager"
127+
}
128+
121129
resource "keycloak_role" "pltsvc_private_reviewer" {
122130
realm_id = data.keycloak_realm.pltsvc.id
123131
client_id = keycloak_openid_client.pltsvc.id

terraform/keycloak/prod/roles.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ resource "keycloak_role" "pltsvc_billing_reader" {
118118
description = "Registry Billing Reader"
119119
}
120120

121+
resource "keycloak_role" "pltsvc_finance_manager" {
122+
realm_id = data.keycloak_realm.pltsvc.id
123+
client_id = keycloak_openid_client.pltsvc.id
124+
125+
name = "finance-manager"
126+
description = "Registry Finance Manager"
127+
}
128+
121129
resource "keycloak_role" "pltsvc_private_reviewer" {
122130
realm_id = data.keycloak_realm.pltsvc.id
123131
client_id = keycloak_openid_client.pltsvc.id

terraform/keycloak/test/roles.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ resource "keycloak_role" "pltsvc_billing_reader" {
118118
description = "Registry Billing Reader"
119119
}
120120

121+
resource "keycloak_role" "pltsvc_finance_manager" {
122+
realm_id = data.keycloak_realm.pltsvc.id
123+
client_id = keycloak_openid_client.pltsvc.id
124+
125+
name = "finance-manager"
126+
description = "Registry Finance Manager"
127+
}
128+
121129
resource "keycloak_role" "pltsvc_private_reviewer" {
122130
realm_id = data.keycloak_realm.pltsvc.id
123131
client_id = keycloak_openid_client.pltsvc.id

0 commit comments

Comments
 (0)