Skip to content

Commit

Permalink
Merge pull request #5050 from dhaura/DP-bump-react-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan authored Dec 19, 2023
2 parents 7e6ff99 + 4e0f432 commit f4234aa
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .changeset/chilled-jokes-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@wso2is/myaccount": patch
"@wso2is/console": patch
---

Add Functionality Enable or Disable ID Token Issuer Validation in My Account and Console
2 changes: 1 addition & 1 deletion apps/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"typecheck": "pnpm run compile"
},
"dependencies": {
"@asgardeo/auth-react": "^1.1.24",
"@asgardeo/auth-react": "^3.1.1",
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@microsoft/applicationinsights-core-js": "^3.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class AuthenticateUtils {
authorizationEndpoint: window["AppUtils"]?.getConfig()?.idpConfigs?.authorizeEndpointURL,
checkSessionIframe: window["AppUtils"]?.getConfig()?.idpConfigs?.oidcSessionIFrameEndpointURL,
endSessionEndpoint: window["AppUtils"]?.getConfig()?.idpConfigs?.logoutEndpointURL,
issuer: window["AppUtils"]?.getConfig()?.idpConfigs?.issuer,
jwksUri: window["AppUtils"]?.getConfig()?.idpConfigs?.jwksEndpointURL,
revocationEndpoint: window["AppUtils"]?.getConfig()?.idpConfigs?.tokenRevocationEndpointURL,
tokenEndpoint: window["AppUtils"]?.getConfig()?.idpConfigs?.tokenEndpointURL
Expand All @@ -73,6 +74,7 @@ export class AuthenticateUtils {
signInRedirectURL: window["AppUtils"]?.getConfig()?.loginCallbackURL,
signOutRedirectURL: window["AppUtils"]?.getConfig()?.loginCallbackURL,
storage: AuthenticateUtils.resolveStorage() as Storage.WebWorker,
validateIDTokenIssuer: window["AppUtils"]?.getConfig()?.idpConfigs?.validateIDTokenIssuer,
...window["AppUtils"]?.getConfig().idpConfigs
};
};
Expand Down
2 changes: 1 addition & 1 deletion apps/myaccount/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"typecheck": "pnpm run compile"
},
"dependencies": {
"@asgardeo/auth-react": "^1.1.24",
"@asgardeo/auth-react": "^3.1.1",
"@babel/polyfill": "^7.0.0",
"@microsoft/applicationinsights-core-js": "^3.0.0",
"@microsoft/applicationinsights-react-js": "^3.4.2",
Expand Down
2 changes: 2 additions & 0 deletions apps/myaccount/src/utils/authenticate-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export const getAuthInitializeConfig = (): AuthReactConfig => {
authorizationEndpoint: window["AppUtils"]?.getConfig().idpConfigs?.authorizeEndpointURL,
checkSessionIframe: window["AppUtils"]?.getConfig().idpConfigs?.oidcSessionIFrameEndpointURL,
endSessionEndpoint: window["AppUtils"]?.getConfig().idpConfigs?.logoutEndpointURL,
issuer: window["AppUtils"]?.getConfig()?.idpConfigs?.issuer,
jwksUri: window["AppUtils"]?.getConfig().idpConfigs?.jwksEndpointURL,
revocationEndpoint: window["AppUtils"]?.getConfig().idpConfigs?.tokenRevocationEndpointURL,
tokenEndpoint: window["AppUtils"]?.getConfig().idpConfigs?.tokenEndpointURL
Expand All @@ -138,6 +139,7 @@ export const getAuthInitializeConfig = (): AuthReactConfig => {
signInRedirectURL: window["AppUtils"]?.getConfig().loginCallbackURL,
signOutRedirectURL: window["AppUtils"]?.getConfig().loginCallbackURL,
storage: resolveStorage() as Storage.WebWorker,
validateIDTokenIssuer: window["AppUtils"]?.getConfig()?.idpConfigs?.validateIDTokenIssuer,
...window["AppUtils"]?.getConfig().idpConfigs
};
};
35 changes: 27 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f4234aa

Please sign in to comment.