Skip to content

Commit c477a35

Browse files
authored
Merge pull request #32 from samply/release-1.0.2
Release 1.0.2
2 parents 4421054 + 2988173 commit c477a35

File tree

9 files changed

+24
-19
lines changed

9 files changed

+24
-19
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.0.2] - 2024-02-14
8+
### Changed
9+
- OIDC instead of KEYCLOAK
10+
11+
712
## [1.0.1] - 2023-12-13
813
### Fixed
914
- Router link blank and router link

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ services:
1313
environment:
1414
DEFAULT_LANGUAGE: "DE"
1515
TEILER_BACKEND_URL: "http://localhost:8085"
16-
KEYCLOAK_URL: "http://localhost:8380/login"
17-
KEYCLOAK_REALM: "teiler"
18-
KEYCLOAK_CLIENT_ID: "teiler"
16+
OIDC_URL: "http://localhost:8380/login"
17+
OIDC_REALM: "teiler"
18+
OIDC_CLIENT_ID: "teiler"
1919
TEILER_ADMIN_NAME: "Max Mustermann"
2020
TEILER_ADMIN_EMAIL: "max.mustermann@teiler-example.com"
2121
TEILER_ADMIN_PHONE: "+49 123 456789"

docker/env.template.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
window["env"]["teiler"]["config"] = {
66
"DEFAULT_LANGUAGE": "${DEFAULT_LANGUAGE}",
77
"TEILER_BACKEND_URL": "${TEILER_BACKEND_URL}",
8-
"KEYCLOAK_URL": "${KEYCLOAK_URL}",
9-
"KEYCLOAK_REALM": "${KEYCLOAK_REALM}",
10-
"KEYCLOAK_CLIENT_ID": "${KEYCLOAK_CLIENT_ID}",
11-
"KEYCLOAK_TOKEN_GROUP": "${KEYCLOAK_TOKEN_GROUP}",
8+
"OIDC_URL": "${OIDC_URL}",
9+
"OIDC_REALM": "${OIDC_REALM}",
10+
"OIDC_CLIENT_ID": "${OIDC_CLIENT_ID}",
11+
"OIDC_TOKEN_GROUP": "${OIDC_TOKEN_GROUP}",
1212
"TEILER_ADMIN_NAME": "${TEILER_ADMIN_NAME}",
1313
"TEILER_ADMIN_EMAIL": "${TEILER_ADMIN_EMAIL}",
1414
"TEILER_ADMIN_PHONE": "${TEILER_ADMIN_PHONE}",

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "teiler-dashboard",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",

src/app/security/keycloak/keycloak-init.factory.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ export function initializeKeycloak(keycloak: KeycloakService){
88

99

1010
config: {
11-
url: environment.config.KEYCLOAK_URL,
12-
realm: environment.config.KEYCLOAK_REALM,
13-
clientId: environment.config.KEYCLOAK_CLIENT_ID
11+
url: environment.config.OIDC_URL,
12+
realm: environment.config.OIDC_REALM,
13+
clientId: environment.config.OIDC_CLIENT_ID
1414
},
1515

1616
initOptions: {

src/app/security/teiler-auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class TeilerAuthService {
3535

3636
public getGroups(): string[] {
3737
const keycloakInstance = this.keycloakService.getKeycloakInstance();
38-
const result = keycloakInstance?.tokenParsed?.[environment.config.KEYCLOAK_TOKEN_GROUP] || [];
38+
const result = keycloakInstance?.tokenParsed?.[environment.config.OIDC_TOKEN_GROUP] || [];
3939

4040
return result.map((group: string) => {
4141
if (typeof group === 'string' && group.charAt(0) === '/') {

src/app/teiler/teiler.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class TeilerService {
102102
} else if (teilerAppRoles.has(TeilerRole.TEILER_PUBLIC)) {
103103
isAuthorized = true;
104104
} else {
105-
let roles: string[] = (environment.config.KEYCLOAK_TOKEN_GROUP) ? this.authService.getGroups() : this.authService.getRoles();
105+
let roles: string[] = (environment.config.OIDC_TOKEN_GROUP) ? this.authService.getGroups() : this.authService.getRoles();
106106
for (let role of roles) {
107107
let mappedRole = this.fetchRoleFromEnvironment(role);
108108
if (mappedRole != undefined && teilerAppRoles.has(mappedRole)) {

src/assets/env.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
window["env"]["teiler"]["config"] = {
66
"DEFAULT_LANGUAGE": "DE",
77
"TEILER_BACKEND_URL": "http://localhost:8085",
8-
"KEYCLOAK_URL": "https://login.verbis.dkfz.de",
9-
"KEYCLOAK_REALM": "test-realm-01",
10-
"KEYCLOAK_CLIENT_ID": "bridgehead-test",
11-
"KEYCLOAK_TOKEN_GROUP": "groups",
8+
"OIDC_URL": "https://login.verbis.dkfz.de",
9+
"OIDC_REALM": "test-realm-01",
10+
"OIDC_CLIENT_ID": "bridgehead-test",
11+
"OIDC_TOKEN_GROUP": "groups",
1212
"TEILER_ADMIN_NAME": "Max Mustermann",
1313
"TEILER_ADMIN_EMAIL": "max.mustermann@teiler-example.com",
1414
"TEILER_ADMIN_PHONE": "+49 123 456789",

0 commit comments

Comments
 (0)