diff --git a/lambda/permissionUtil.js b/lambda/permissionUtil.js index 554f81f..40a80d8 100644 --- a/lambda/permissionUtil.js +++ b/lambda/permissionUtil.js @@ -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 diff --git a/postman/A&R - DEV.postman_environment.json b/postman/A&R - DEV.postman_environment.json index 442f97d..be1c065 100644 --- a/postman/A&R - DEV.postman_environment.json +++ b/postman/A&R - DEV.postman_environment.json @@ -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 }, diff --git a/postman/A&R - LOCAL.postman_environment.json b/postman/A&R - LOCAL.postman_environment.json index 40fa951..e5ac929 100644 --- a/postman/A&R - LOCAL.postman_environment.json +++ b/postman/A&R - LOCAL.postman_environment.json @@ -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 }, diff --git a/postman/A&R - TEST.postman_environment.json b/postman/A&R - TEST.postman_environment.json index 0ce5139..5b922bb 100644 --- a/postman/A&R - TEST.postman_environment.json +++ b/postman/A&R - TEST.postman_environment.json @@ -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 }, diff --git a/tools/KeyCloakUtilities.js b/tools/KeyCloakUtilities.js index 87900dd..a765fe7 100644 --- a/tools/KeyCloakUtilities.js +++ b/tools/KeyCloakUtilities.js @@ -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 #