Skip to content

Commit

Permalink
Use config to get profile infor from id token
Browse files Browse the repository at this point in the history
  • Loading branch information
thivi committed Jul 19, 2022
1 parent 0ebe0a7 commit 9ffc864
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const getProfileInformation = (

dispatch(setProfileInfoRequestLoadingStatus(true));

const getProfileInfoFromToken = true;
const getProfileInfoFromToken = window[ "AppUtils" ].getConfig().getProfileInfoFromIDToken ?? false;

const getProfileSchema = (): void => {
// If the schemas in the redux store is empty, fetch the SCIM schemas from the API.
Expand Down
1 change: 1 addition & 0 deletions apps/console/src/init/app-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export const AppUtils = (function() {
docSiteUrl: _config.docSiteUrl,
documentation: _config.documentation,
extensions: _config.extensions,
getProfileInfoFromIDToken: _config.getProfileInfoFromIDToken,
idpConfigs: this.resolveIdpConfigs(),
isSaas: this.isSaas(),
loginCallbackURL: this.constructRedirectURLs(_config.loginCallbackPath),
Expand Down
1 change: 1 addition & 0 deletions apps/console/src/public/deployment.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"logoutEndpointURL": "${serverOrigin}/${tenantPrefix}/${superTenantDomain}/oidc/logout",
"oidcSessionIFrameEndpointURL": "${serverOrigin}/${tenantPrefix}/${superTenantDomain}/oidc/checksession"
},
"getProfileInfoFromIDToken": true,
"i18nResourcePath": "",
"isSaas": true,
"loginCallbackPath": "",
Expand Down

0 comments on commit 9ffc864

Please sign in to comment.