File tree Expand file tree Collapse file tree 9 files changed +24
-19
lines changed Expand file tree Collapse file tree 9 files changed +24
-19
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 1.0.2] - 2024-02-14
8
+ ### Changed
9
+ - OIDC instead of KEYCLOAK
10
+
11
+
7
12
## [ 1.0.1] - 2023-12-13
8
13
### Fixed
9
14
- Router link blank and router link
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ services:
13
13
environment :
14
14
DEFAULT_LANGUAGE : " DE"
15
15
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"
19
19
TEILER_ADMIN_NAME : " Max Mustermann"
20
20
TEILER_ADMIN_EMAIL : " max.mustermann@teiler-example.com"
21
21
TEILER_ADMIN_PHONE : " +49 123 456789"
Original file line number Diff line number Diff line change 5
5
window [ "env" ] [ "teiler" ] [ "config" ] = {
6
6
"DEFAULT_LANGUAGE" : "${DEFAULT_LANGUAGE}" ,
7
7
"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 }" ,
12
12
"TEILER_ADMIN_NAME" : "${TEILER_ADMIN_NAME}" ,
13
13
"TEILER_ADMIN_EMAIL" : "${TEILER_ADMIN_EMAIL}" ,
14
14
"TEILER_ADMIN_PHONE" : "${TEILER_ADMIN_PHONE}" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " teiler-dashboard" ,
3
- "version" : " 1.0.1 " ,
3
+ "version" : " 1.0.2 " ,
4
4
"scripts" : {
5
5
"ng" : " ng" ,
6
6
"start" : " ng serve" ,
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ export function initializeKeycloak(keycloak: KeycloakService){
8
8
9
9
10
10
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
14
14
} ,
15
15
16
16
initOptions : {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export class TeilerAuthService {
35
35
36
36
public getGroups ( ) : string [ ] {
37
37
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 ] || [ ] ;
39
39
40
40
return result . map ( ( group : string ) => {
41
41
if ( typeof group === 'string' && group . charAt ( 0 ) === '/' ) {
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export class TeilerService {
102
102
} else if ( teilerAppRoles . has ( TeilerRole . TEILER_PUBLIC ) ) {
103
103
isAuthorized = true ;
104
104
} 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 ( ) ;
106
106
for ( let role of roles ) {
107
107
let mappedRole = this . fetchRoleFromEnvironment ( role ) ;
108
108
if ( mappedRole != undefined && teilerAppRoles . has ( mappedRole ) ) {
Original file line number Diff line number Diff line change 5
5
window [ "env" ] [ "teiler" ] [ "config" ] = {
6
6
"DEFAULT_LANGUAGE" : "DE" ,
7
7
"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" ,
12
12
"TEILER_ADMIN_NAME" : "Max Mustermann" ,
13
13
"TEILER_ADMIN_EMAIL" : "max.mustermann@teiler-example.com" ,
14
14
"TEILER_ADMIN_PHONE" : "+49 123 456789" ,
You can’t perform that action at this time.
0 commit comments