Skip to content

Commit

Permalink
BRS-975: Point to new loginxproxy OIDC. (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
marklise authored Dec 19, 2022
1 parent 583a3c3 commit 72ffb99
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lambda/permissionUtil.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const jwt = require('jsonwebtoken');
const jwksClient = require('jwks-rsa');
const SSO_ISSUER = process.env.SSO_ISSUER || 'https://dev.oidc.gov.bc.ca/auth/realms/g7v0xlf4';
const SSO_JWKSURI = process.env.SSO_JWKSURI || 'https://dev.oidc.gov.bc.ca/auth/realms/g7v0xlf4/protocol/openid-connect/certs';
const SSO_ISSUER = process.env.SSO_ISSUER || 'https://dev.loginproxy.gov.bc.ca/auth/realms/bcparks-service-transformation';
const SSO_JWKSURI = process.env.SSO_JWKSURI || 'https://dev.loginproxy.gov.bc.ca/auth/realms/bcparks-service-transformation/protocol/openid-connect/certs';
const INVALID_TOKEN = {
decoded: false,
data: null
Expand Down
4 changes: 2 additions & 2 deletions postman/A&R - DEV.postman_environment.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
},
{
"key": "auth_url",
"value": "https://dev.oidc.gov.bc.ca/auth/realms/g7v0xlf4/protocol/openid-connect/auth",
"value": "https://dev.loginproxy.gov.bc.ca/auth/realms/bcparks-service-transformation/protocol/openid-connect/auth",
"type": "default",
"enabled": true
},
{
"key": "access_token_url",
"value": "https://dev.oidc.gov.bc.ca/auth/realms/g7v0xlf4/protocol/openid-connect/token",
"value": "https://dev.loginproxy.gov.bc.ca/auth/realms/bcparks-service-transformation/protocol/openid-connect/token",
"type": "default",
"enabled": true
},
Expand Down
4 changes: 2 additions & 2 deletions postman/A&R - LOCAL.postman_environment.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
},
{
"key": "auth_url",
"value": "https://dev.oidc.gov.bc.ca/auth/realms/g7v0xlf4/protocol/openid-connect/auth",
"value": "https://dev.loginproxy.gov.bc.ca/auth/realms/bcparks-service-transformation/protocol/openid-connect/auth",
"type": "default",
"enabled": true
},
{
"key": "access_token_url",
"value": "https://dev.oidc.gov.bc.ca/auth/realms/g7v0xlf4/protocol/openid-connect/token",
"value": "https://dev.loginproxy.gov.bc.ca/auth/realms/bcparks-service-transformation/protocol/openid-connect/token",
"type": "default",
"enabled": true
},
Expand Down
4 changes: 2 additions & 2 deletions postman/A&R - TEST.postman_environment.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
},
{
"key": "auth_url",
"value": "https://test.oidc.gov.bc.ca/auth/realms/g7v0xlf4/protocol/openid-connect/auth",
"value": "https://test.loginproxy.gov.bc.ca/auth/realms/bcparks-service-transformation/protocol/openid-connect/auth",
"type": "default",
"enabled": true
},
{
"key": "access_token_url",
"value": "https://test.oidc.gov.bc.ca/auth/realms/g7v0xlf4/protocol/openid-connect/token",
"value": "https://test.loginproxy.gov.bc.ca/auth/realms/bcparks-service-transformation/protocol/openid-connect/token",
"type": "default",
"enabled": true
},
Expand Down
2 changes: 1 addition & 1 deletion tools/KeyCloakUtilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function main() {
const clientIDs = process.argv[4] === 'ar' ? clientIDsAR : clientIDsDUP;
const clientID = clientIDs[env];
const token = process.argv[5];
const url = `https://${environment}oidc.gov.bc.ca/auth/admin/realms/g7v0xlf4/clients/${clientID}/roles`;
const url = `https://${environment}loginproxy.gov.bc.ca/auth/admin/realms/bcparks-service-transformation/clients/${clientID}/roles`;
console.log("Setting KC URL:", url);

// If parking-pass, we just need the park for now, add role by orcs #
Expand Down

0 comments on commit 72ffb99

Please sign in to comment.