Code cleanup

6.19.x
Sergii Kabashniuk 2017-09-27 11:29:54 +03:00
parent 7de938ec50
commit de52d5f04b
3 changed files with 1 additions and 135 deletions

View File

@ -507,9 +507,7 @@ CHE_KEYCLOAK_GITHUB_ENDPOINT=NULL
CHE_KEYCLOAK_AUTH__SERVER__URL=http://172.17.0.1:5050/auth
CHE_KEYCLOAK_REALM=che
CHE_KEYCLOAK_CLIENT__ID=che-public
CHE_KEYCLOAK_PRIVATE_REALM=che
CHE_KEYCLOAK_PRIVATE_CLIENT__ID=che
CHE_KEYCLOAK_PRIVATE_CLIENT__SECRET=2c1b2621-d251-4701-82c4-a7dd447faa97
########################################################################################
##### #####

View File

@ -39,7 +39,6 @@
"containerId" : "che"
} ],
"client" : {
"che" : [ ],
"che-public" : [ ]
}
},
@ -53,127 +52,6 @@
"otpPolicyLookAheadWindow" : 1,
"otpPolicyPeriod" : 30,
"clients" : [ {
"id" : "d64c54cb-dbcc-43d7-9ae4-909d1725d976",
"clientId" : "che",
"rootUrl" : "",
"surrogateAuthRequired" : false,
"enabled" : true,
"clientAuthenticatorType" : "client-secret",
"secret" : "2c1b2621-d251-4701-82c4-a7dd447faa97",
"redirectUris" : [ "*" ],
"webOrigins" : [ "*" ],
"notBefore" : 0,
"bearerOnly" : false,
"consentRequired" : false,
"standardFlowEnabled" : true,
"implicitFlowEnabled" : false,
"directAccessGrantsEnabled" : true,
"serviceAccountsEnabled" : false,
"publicClient" : false,
"frontchannelLogout" : false,
"protocol" : "openid-connect",
"attributes" : {
"saml.assertion.signature" : "false",
"saml.force.post.binding" : "false",
"saml.multivalued.roles" : "false",
"saml.encrypt" : "false",
"saml_force_name_id_format" : "false",
"saml.client.signature" : "false",
"saml.authnstatement" : "false",
"saml.server.signature" : "false",
"saml.server.signature.keyinfo.ext" : "false",
"saml.onetimeuse.condition" : "false"
},
"fullScopeAllowed" : true,
"nodeReRegistrationTimeout" : -1,
"protocolMappers" : [ {
"id" : "f94a3cb9-7da0-441b-8dcb-7b4d091f51cb",
"name" : "full name",
"protocol" : "openid-connect",
"protocolMapper" : "oidc-full-name-mapper",
"consentRequired" : true,
"consentText" : "${fullName}",
"config" : {
"id.token.claim" : "true",
"access.token.claim" : "true",
"userinfo.token.claim" : "true"
}
}, {
"id" : "04ba17f0-fd2d-44f5-b2fc-e05439b57f86",
"name" : "role list",
"protocol" : "saml",
"protocolMapper" : "saml-role-list-mapper",
"consentRequired" : false,
"config" : {
"single" : "false",
"attribute.nameformat" : "Basic",
"attribute.name" : "Role"
}
}, {
"id" : "e029b6de-ce4b-4980-bb95-0508474220a7",
"name" : "username",
"protocol" : "openid-connect",
"protocolMapper" : "oidc-usermodel-property-mapper",
"consentRequired" : true,
"consentText" : "${username}",
"config" : {
"userinfo.token.claim" : "true",
"user.attribute" : "username",
"id.token.claim" : "true",
"access.token.claim" : "true",
"claim.name" : "preferred_username",
"jsonType.label" : "String"
}
}, {
"id" : "725ecaa1-27ae-4cb2-aaed-f355e8273007",
"name" : "family name",
"protocol" : "openid-connect",
"protocolMapper" : "oidc-usermodel-property-mapper",
"consentRequired" : true,
"consentText" : "${familyName}",
"config" : {
"userinfo.token.claim" : "true",
"user.attribute" : "lastName",
"id.token.claim" : "true",
"access.token.claim" : "true",
"claim.name" : "family_name",
"jsonType.label" : "String"
}
}, {
"id" : "062088af-742f-47e2-a85b-6981a9a2e657",
"name" : "email",
"protocol" : "openid-connect",
"protocolMapper" : "oidc-usermodel-property-mapper",
"consentRequired" : true,
"consentText" : "${email}",
"config" : {
"userinfo.token.claim" : "true",
"user.attribute" : "email",
"id.token.claim" : "true",
"access.token.claim" : "true",
"claim.name" : "email",
"jsonType.label" : "String"
}
}, {
"id" : "df30381f-b746-4d23-93f8-2e8faa34245b",
"name" : "given name",
"protocol" : "openid-connect",
"protocolMapper" : "oidc-usermodel-property-mapper",
"consentRequired" : true,
"consentText" : "${givenName}",
"config" : {
"userinfo.token.claim" : "true",
"user.attribute" : "firstName",
"id.token.claim" : "true",
"access.token.claim" : "true",
"claim.name" : "given_name",
"jsonType.label" : "String"
}
} ],
"useTemplateConfig" : false,
"useTemplateScope" : false,
"useTemplateMappers" : false
}, {
"id" : "40162c8f-5c44-4b61-91cf-a6eac6b9e61a",
"clientId" : "che-public",
"surrogateAuthRequired" : false,

View File

@ -14,21 +14,11 @@ package org.eclipse.che.multiuser.keycloak.shared;
public class KeycloakConstants {
private static final String KEYCLOAK_SETTING_PREFIX = "che.keycloak.";
private static final String PRIVATE_PREFIX = "private.";
private static final String KEYCLOAK_SETTINGS_ENDPOINT_PATH = "/keycloak/settings";
public static final String AUTH_SERVER_URL_SETTING = KEYCLOAK_SETTING_PREFIX + "auth_server_url";
public static final String REALM_SETTING = KEYCLOAK_SETTING_PREFIX + "realm";
public static final String CLIENT_ID_SETTING = KEYCLOAK_SETTING_PREFIX + "client_id";
public static final String REWRITE_RULE_SETTING =
KEYCLOAK_SETTING_PREFIX + "redirect_rewrite_rules";
public static final String PRIVATE_REALM_SETTING =
KEYCLOAK_SETTING_PREFIX + PRIVATE_PREFIX + "realm";
public static final String PRIVATE_CLIENT_ID_SETTING =
KEYCLOAK_SETTING_PREFIX + PRIVATE_PREFIX + "client_id";
public static final String PRIVATE_CLIENT_SECRET_SETTING =
KEYCLOAK_SETTING_PREFIX + PRIVATE_PREFIX + "client_secret";
public static final String OSO_ENDPOINT_SETTING = KEYCLOAK_SETTING_PREFIX + "oso.endpoint";
public static final String PROFILE_ENDPOINT_SETTING =