Skip to content

Commit 24a5a66

Browse files
authored
Merge pull request #5844 from bcgov/feat/5811
refactor(5798): deprecate @azure/msal-node, @azure/identity
2 parents fa6c1af + 8168feb commit 24a5a66

File tree

11 files changed

+51
-284
lines changed

11 files changed

+51
-284
lines changed

app/app/api/token-check/validations/ches-service-account-credentials.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CHES_TOKEN_URL, CHES_CLIENT_ID, CHES_CLIENT_SECRET } from '@/config';
2-
import { validateClientCredentials } from './helpers';
2+
import { validateClientCredentials } from '@/utils/node/oauth2';
33

44
export async function validateChesServiceAccountCredentials() {
55
const isValid = await validateClientCredentials(CHES_TOKEN_URL, CHES_CLIENT_ID, CHES_CLIENT_SECRET);

app/app/api/token-check/validations/keycloak-service-account-credentials.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { KEYCLOAK_ADMIN_CLIENT_ID, KEYCLOAK_ADMIN_CLIENT_SECRET } from '@/config';
2-
import { validateClientCredentials } from './helpers';
2+
import { validateClientCredentials } from '@/utils/node/oauth2';
33

44
export async function validateKeycloakServiceAccount() {
55
const tokenUrl = `${process.env.AUTH_SERVER_URL}/realms/${process.env.AUTH_RELM}/protocol/openid-connect/token`;

app/app/api/token-check/validations/keycloak-user-login-credentials.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AUTH_RESOURCE, AUTH_SERVER_URL, AUTH_RELM, BASE_URL } from '@/config';
2-
import { validateOAuthClientId } from './helpers';
2+
import { validateOAuthClientId } from '@/utils/node/oauth2';
33

44
export async function validateKeycloakUserLogin() {
55
const authUrl = `${AUTH_SERVER_URL}/realms/${AUTH_RELM}/protocol/openid-connect/auth`;

app/app/api/token-check/validations/ms-graph-service-account-credentials.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { MS_GRAPH_API_CLIENT_ID, MS_GRAPH_API_CLIENT_SECRET, MS_GRAPH_API_AUTHORITY } from '@/config';
2-
import { validateClientCredentials } from './helpers';
2+
import { validateClientCredentials } from '@/utils/node/oauth2';
33

44
export async function validateMsGraphServiceAccountCredentials() {
55
const isValid = await validateClientCredentials(

app/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
"seed": "ts-node prisma/seed.ts"
2727
},
2828
"dependencies": {
29-
"@azure/identity": "^4.10.0",
30-
"@azure/msal-node": "^3.0.0",
3129
"@faker-js/faker": "^9.0.0",
3230
"@headlessui/react": "2.2.4",
3331
"@hookform/resolvers": "^5.0.1",

app/pnpm-lock.yaml

Lines changed: 0 additions & 215 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)