Skip to content

Commit

Permalink
Ticket ## : Get user information from user edp
Browse files Browse the repository at this point in the history
  • Loading branch information
thabart committed May 3, 2021
1 parent 5a2ece8 commit 766f30b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ export class AppComponent implements OnInit {
let self = this;
this.oauthService.loadDiscoveryDocumentAndTryLogin({
disableOAuth2StateCheck: true
}).then(() => {
this.oauthService.loadUserProfile();
});
this.sessionCheckTimer = setInterval(function () {
if (!self.oauthService.hasValidIdToken()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export const authConfig: AuthConfig = {
clientId: 'caseManagementTasklistWebsite',
scope: 'openid profile email role',
redirectUri: process.env.REDIRECT_URL,
responseType: 'id_token',
responseType: 'code',
requireHttps: false
}
2 changes: 2 additions & 0 deletions src/CaseManagement.Website/angularApp/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ export class AppComponent implements OnInit {
let self = this;
this.oauthService.loadDiscoveryDocumentAndTryLogin({
disableOAuth2StateCheck: true
}).then(() => {
this.oauthService.loadUserProfile();
});
this.sessionCheckTimer = setInterval(function () {
if (!self.oauthService.hasValidIdToken()) {
Expand Down
2 changes: 1 addition & 1 deletion src/CaseManagement.Website/angularApp/app/auth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export const authConfig: AuthConfig = {
clientId: 'caseManagementWebsite',
scope: 'openid profile email role',
redirectUri: process.env.REDIRECT_URL,
responseType: 'id_token',
responseType: 'code',
requireHttps: false
}

0 comments on commit 766f30b

Please sign in to comment.