diff --git a/.gitignore b/.gitignore index 174ed728..643d11aa 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ xcuserdata/ *.sublime-workspace # IDE - VSCode +.vscode .vscode/* !.vscode/settings.json !.vscode/tasks.json diff --git a/env.sample b/env.sample index 132e58cc..26fe4145 100644 --- a/env.sample +++ b/env.sample @@ -27,10 +27,22 @@ export PH_OAUTH_CLIENT_ID=opsapp export PH_OAUTH_CLIENT_SECRET=Y2xpZW50Og= +export PH_OAUTH_CLIENT_UUUID=Y2xpZW50Og= + export PH_OAUTH_BASIC_AUTH=true export PH_OAUTH_BASIC_AUTH_TOKEN=Y2xpZW50Og== +export PH_JBPM_API_URL=http://localhost:8180/kie-server/services/rest/server + +export PH_JBPM_CONTAINER_ID=PaymentHubEE_1.0.0-SNAPSHOT + +export PH_JBPM_CREDENTIALS_ADMIN_MAKER=Y2xpZW50Og== + +export PH_JBPM_CREDENTIALS_ADMIN_CHECKER=Y2xpZW50Og== + +export PH_JBPM_CREDENTIALS_BOTH=Y2xpZW50Og== + export PH_DEFAULT_LANGUAGE=en export PH_SUPPORTED_LANGUAGES=en,fr,es diff --git a/src/app/core/authentication/authentication.service.ts b/src/app/core/authentication/authentication.service.ts index 10792b68..5ce105bb 100644 --- a/src/app/core/authentication/authentication.service.ts +++ b/src/app/core/authentication/authentication.service.ts @@ -164,7 +164,7 @@ export class AuthenticationService { */ private getUserDetails(loginContext: LoginContext, tokenResponse: OAuth2Token) { if (this.isOauthKeyCloak()) { - this.oauthKeycloakService.introspect(tokenResponse).subscribe((userDetails: Introspect) => { + this.oauthKeycloakService.getUserInfo(tokenResponse).subscribe((userDetails: Introspect) => { this.storage.setItem(this.oAuthUserDetailsStorageKey, JSON.stringify(userDetails)); this.onLoginSuccess({ username: loginContext.username, accessToken: tokenResponse.access_token, authenticated: true, tenantId: loginContext.tenant } as any); diff --git a/src/app/core/authentication/keycloak/oauth-keycloak.service.ts b/src/app/core/authentication/keycloak/oauth-keycloak.service.ts index 92af2717..96e90cd7 100644 --- a/src/app/core/authentication/keycloak/oauth-keycloak.service.ts +++ b/src/app/core/authentication/keycloak/oauth-keycloak.service.ts @@ -91,6 +91,18 @@ export class OauthKeycloakService { return this.http.post(url, payload.toString(), httpOptions); } + getUserInfo(token: OAuth2Token): Observable { + + const httpOptions = { + headers: new HttpHeaders({ + Authorization: `Bearer ${token.access_token}`, + 'Content-Type': 'application/json' + }) + }; + const url: string = `${this.url()}/userinfo`; + return this.http.get(url, httpOptions); + } + private url(): string { return `${environment.oauth.serverUrl}/realms/${environment.oauth.realm}/protocol/openid-connect`; } diff --git a/src/app/core/shell/content/content.component.html b/src/app/core/shell/content/content.component.html index 4020fabe..9c0bf3fc 100644 --- a/src/app/core/shell/content/content.component.html +++ b/src/app/core/shell/content/content.component.html @@ -6,7 +6,7 @@ - chevron_right + diff --git a/src/app/core/shell/content/content.component.scss b/src/app/core/shell/content/content.component.scss index efe5f3b9..0271e766 100644 --- a/src/app/core/shell/content/content.component.scss +++ b/src/app/core/shell/content/content.component.scss @@ -1,9 +1,23 @@ -.container { - width: 80%; +@import 'theme/theme'; +.container { + width: 90%; + margin: 0 auto; .breadcrumb { padding-left: 18%; margin: 0; - font-size: x-large; + font-size: 1.6rem; + font-weight: 600; } } + +::ng-deep .xng-breadcrumb-link{ + color: $primary !important; + font-size:1.3rem; + font-weight: 400; + cursor: pointer; +} + +::ng-deep .xng-breadcrumb-link:hover{ + text-decoration: none !important; +} diff --git a/src/app/core/shell/shell.component.html b/src/app/core/shell/shell.component.html index d0a2a802..9926116f 100644 --- a/src/app/core/shell/shell.component.html +++ b/src/app/core/shell/shell.component.html @@ -26,10 +26,8 @@ -
-
diff --git a/src/app/core/shell/shell.component.scss b/src/app/core/shell/shell.component.scss index 5521eed4..97da48f6 100644 --- a/src/app/core/shell/shell.component.scss +++ b/src/app/core/shell/shell.component.scss @@ -9,15 +9,10 @@ } .sidebar-full { - width: 22rem; + width: 18rem; } .sidebar-compact { - width: 8rem; - } - - .vertical-space { - line-height: 40px; - height: 40px; + width: 6rem; } } diff --git a/src/app/core/shell/sidenav/sidenav.component.html b/src/app/core/shell/sidenav/sidenav.component.html index c0111d5f..d9ea5be6 100644 --- a/src/app/core/shell/sidenav/sidenav.component.html +++ b/src/app/core/shell/sidenav/sidenav.component.html @@ -8,10 +8,10 @@
-