Skip to content

Commit de52d5f

Browse files
committed
Code cleanup
1 parent 7de938e commit de52d5f

3 files changed

Lines changed: 1 addition & 135 deletions

File tree

dockerfiles/init/manifests/che.env

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,7 @@ CHE_KEYCLOAK_GITHUB_ENDPOINT=NULL
507507
CHE_KEYCLOAK_AUTH__SERVER__URL=http://172.17.0.1:5050/auth
508508
CHE_KEYCLOAK_REALM=che
509509
CHE_KEYCLOAK_CLIENT__ID=che-public
510-
CHE_KEYCLOAK_PRIVATE_REALM=che
511-
CHE_KEYCLOAK_PRIVATE_CLIENT__ID=che
512-
CHE_KEYCLOAK_PRIVATE_CLIENT__SECRET=2c1b2621-d251-4701-82c4-a7dd447faa97
510+
513511

514512
########################################################################################
515513
##### #####

dockerfiles/init/modules/keycloak/templates/che-realm.json.erb

Lines changed: 0 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"containerId" : "che"
4040
} ],
4141
"client" : {
42-
"che" : [ ],
4342
"che-public" : [ ]
4443
}
4544
},
@@ -53,127 +52,6 @@
5352
"otpPolicyLookAheadWindow" : 1,
5453
"otpPolicyPeriod" : 30,
5554
"clients" : [ {
56-
"id" : "d64c54cb-dbcc-43d7-9ae4-909d1725d976",
57-
"clientId" : "che",
58-
"rootUrl" : "",
59-
"surrogateAuthRequired" : false,
60-
"enabled" : true,
61-
"clientAuthenticatorType" : "client-secret",
62-
"secret" : "2c1b2621-d251-4701-82c4-a7dd447faa97",
63-
"redirectUris" : [ "*" ],
64-
"webOrigins" : [ "*" ],
65-
"notBefore" : 0,
66-
"bearerOnly" : false,
67-
"consentRequired" : false,
68-
"standardFlowEnabled" : true,
69-
"implicitFlowEnabled" : false,
70-
"directAccessGrantsEnabled" : true,
71-
"serviceAccountsEnabled" : false,
72-
"publicClient" : false,
73-
"frontchannelLogout" : false,
74-
"protocol" : "openid-connect",
75-
"attributes" : {
76-
"saml.assertion.signature" : "false",
77-
"saml.force.post.binding" : "false",
78-
"saml.multivalued.roles" : "false",
79-
"saml.encrypt" : "false",
80-
"saml_force_name_id_format" : "false",
81-
"saml.client.signature" : "false",
82-
"saml.authnstatement" : "false",
83-
"saml.server.signature" : "false",
84-
"saml.server.signature.keyinfo.ext" : "false",
85-
"saml.onetimeuse.condition" : "false"
86-
},
87-
"fullScopeAllowed" : true,
88-
"nodeReRegistrationTimeout" : -1,
89-
"protocolMappers" : [ {
90-
"id" : "f94a3cb9-7da0-441b-8dcb-7b4d091f51cb",
91-
"name" : "full name",
92-
"protocol" : "openid-connect",
93-
"protocolMapper" : "oidc-full-name-mapper",
94-
"consentRequired" : true,
95-
"consentText" : "${fullName}",
96-
"config" : {
97-
"id.token.claim" : "true",
98-
"access.token.claim" : "true",
99-
"userinfo.token.claim" : "true"
100-
}
101-
}, {
102-
"id" : "04ba17f0-fd2d-44f5-b2fc-e05439b57f86",
103-
"name" : "role list",
104-
"protocol" : "saml",
105-
"protocolMapper" : "saml-role-list-mapper",
106-
"consentRequired" : false,
107-
"config" : {
108-
"single" : "false",
109-
"attribute.nameformat" : "Basic",
110-
"attribute.name" : "Role"
111-
}
112-
}, {
113-
"id" : "e029b6de-ce4b-4980-bb95-0508474220a7",
114-
"name" : "username",
115-
"protocol" : "openid-connect",
116-
"protocolMapper" : "oidc-usermodel-property-mapper",
117-
"consentRequired" : true,
118-
"consentText" : "${username}",
119-
"config" : {
120-
"userinfo.token.claim" : "true",
121-
"user.attribute" : "username",
122-
"id.token.claim" : "true",
123-
"access.token.claim" : "true",
124-
"claim.name" : "preferred_username",
125-
"jsonType.label" : "String"
126-
}
127-
}, {
128-
"id" : "725ecaa1-27ae-4cb2-aaed-f355e8273007",
129-
"name" : "family name",
130-
"protocol" : "openid-connect",
131-
"protocolMapper" : "oidc-usermodel-property-mapper",
132-
"consentRequired" : true,
133-
"consentText" : "${familyName}",
134-
"config" : {
135-
"userinfo.token.claim" : "true",
136-
"user.attribute" : "lastName",
137-
"id.token.claim" : "true",
138-
"access.token.claim" : "true",
139-
"claim.name" : "family_name",
140-
"jsonType.label" : "String"
141-
}
142-
}, {
143-
"id" : "062088af-742f-47e2-a85b-6981a9a2e657",
144-
"name" : "email",
145-
"protocol" : "openid-connect",
146-
"protocolMapper" : "oidc-usermodel-property-mapper",
147-
"consentRequired" : true,
148-
"consentText" : "${email}",
149-
"config" : {
150-
"userinfo.token.claim" : "true",
151-
"user.attribute" : "email",
152-
"id.token.claim" : "true",
153-
"access.token.claim" : "true",
154-
"claim.name" : "email",
155-
"jsonType.label" : "String"
156-
}
157-
}, {
158-
"id" : "df30381f-b746-4d23-93f8-2e8faa34245b",
159-
"name" : "given name",
160-
"protocol" : "openid-connect",
161-
"protocolMapper" : "oidc-usermodel-property-mapper",
162-
"consentRequired" : true,
163-
"consentText" : "${givenName}",
164-
"config" : {
165-
"userinfo.token.claim" : "true",
166-
"user.attribute" : "firstName",
167-
"id.token.claim" : "true",
168-
"access.token.claim" : "true",
169-
"claim.name" : "given_name",
170-
"jsonType.label" : "String"
171-
}
172-
} ],
173-
"useTemplateConfig" : false,
174-
"useTemplateScope" : false,
175-
"useTemplateMappers" : false
176-
}, {
17755
"id" : "40162c8f-5c44-4b61-91cf-a6eac6b9e61a",
17856
"clientId" : "che-public",
17957
"surrogateAuthRequired" : false,

multiuser/keycloak/che-multiuser-keycloak-shared/src/main/java/org/eclipse/che/multiuser/keycloak/shared/KeycloakConstants.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,11 @@
1414
public class KeycloakConstants {
1515

1616
private static final String KEYCLOAK_SETTING_PREFIX = "che.keycloak.";
17-
private static final String PRIVATE_PREFIX = "private.";
1817
private static final String KEYCLOAK_SETTINGS_ENDPOINT_PATH = "/keycloak/settings";
1918

2019
public static final String AUTH_SERVER_URL_SETTING = KEYCLOAK_SETTING_PREFIX + "auth_server_url";
2120
public static final String REALM_SETTING = KEYCLOAK_SETTING_PREFIX + "realm";
2221
public static final String CLIENT_ID_SETTING = KEYCLOAK_SETTING_PREFIX + "client_id";
23-
public static final String REWRITE_RULE_SETTING =
24-
KEYCLOAK_SETTING_PREFIX + "redirect_rewrite_rules";
25-
26-
public static final String PRIVATE_REALM_SETTING =
27-
KEYCLOAK_SETTING_PREFIX + PRIVATE_PREFIX + "realm";
28-
public static final String PRIVATE_CLIENT_ID_SETTING =
29-
KEYCLOAK_SETTING_PREFIX + PRIVATE_PREFIX + "client_id";
30-
public static final String PRIVATE_CLIENT_SECRET_SETTING =
31-
KEYCLOAK_SETTING_PREFIX + PRIVATE_PREFIX + "client_secret";
3222

3323
public static final String OSO_ENDPOINT_SETTING = KEYCLOAK_SETTING_PREFIX + "oso.endpoint";
3424
public static final String PROFILE_ENDPOINT_SETTING =

0 commit comments

Comments
 (0)