Skip to content

Instantly share code, notes, and snippets.

@kishansagathiya
Created October 12, 2017 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kishansagathiya/e70202920a092c949d1bd7078a3cdbcc to your computer and use it in GitHub Desktop.
Save kishansagathiya/e70202920a092c949d1bd7078a3cdbcc to your computer and use it in GitHub Desktop.
{
"realm": "tobedeleted",
"enabled": true,
"loginTheme": "fabric8",
"privateKey": "MIICXAIBAAKBgQCyM+ODEAdKbhj+IJUjqONXXYLtmpLODrbtLB4zPXf174OsenO68aGJPUBWgZ3mRN9nU19A8m75ZfnKKkRxfrrawQgoT7Ww5cDhaHuAEYF2+tlfet0Fvc6Q8j/LUPsWoG59Dx5N6yX2lu9p/JcFyZdPNb3FJGHWaXScVDPgufS0ZQIDAQABAoGAfKIl4Sh4sOnHuRT4ufQI7LWOOLf/LPbFoaNVi+jV2cAmi58pCfqtS9r3AImu8boBtbZtzHLCgtN7nJVrQSWtcNvH6HhutSxV3dzyH1G4fRsyL8BVUnqqaLGpR+J1Tq3s3QmP8iZoNrfg3YK1j6fEoasHW994AzN7PEN9+NM5HAECQQD3bC+aT6dLvO3KaUfLqj2s6kc0NGleHAT3n5mi2xjC82qSRipJxe/7/oa/aF1kc9xWAI6tlU8AETQKGjduLnYlAkEAuGFkraxg+xFpIp4XolqXt5vK/G/7+A4I6COdXOkYOzOnxptxDKnVJI+WQYWBKF7jigNHXCtwW+z7UcuUVXtRQQJALF8Jdmn8fZenKVqSFpM0NlNZa6JOlyL9PQ8xNUSHf0a6APt2T/6gWBfAQIlN3lrs07uL2tNg9IkhRQKImEjaxQJBALgKPvw7+/Gfx1mOg/jChH35O/wNq2xGVg2gvwpmgJFXVjigH4+MVfxQdqKgJ/OsA2NXMnuFwHmBarqSglVw6gECQGp+2Jg27pv1psU3ONcy0AUkAuIoObdC6z9WLEWXp08TWmycIFEVopiXIRNmlmkzwYxc4MJFBEvP6MBrmDsYK2k=",
"publicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyM+ODEAdKbhj+IJUjqONXXYLtmpLODrbtLB4zPXf174OsenO68aGJPUBWgZ3mRN9nU19A8m75ZfnKKkRxfrrawQgoT7Ww5cDhaHuAEYF2+tlfet0Fvc6Q8j/LUPsWoG59Dx5N6yX2lu9p/JcFyZdPNb3FJGHWaXScVDPgufS0ZQIDAQAB",
"sslRequired": "external",
"accessTokenLifespan": 2592000,
"accessTokenLifespanForImplicitFlow": 1296000,
"ssoSessionIdleTimeout": 2592000,
"accessCodeLifespanUserAction": 36000,
"accessCodeLifespanLogin": 2592000,
"ssoSessionMaxLifespan": 2592000,
"offlineSessionIdleTimeout": 2592000,
"accessCodeLifespan": 60,
"clients": [
{
"clientId": "fabric8-online-platform",
"enabled": true,
"standardFlowEnabled": true,
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": true,
"authorizationServicesEnabled": true,
"fullScopeAllowed": true,
"serviceAccountsEnabled": true,
"clientAuthenticatorType": "client-secret",
"secret": "addfc67d-8b85-49b1-969e-8f46c556fc67",
"publicClient": true,
"adminUrl": "",
"baseUrl": "",
"redirectUris": [
"http://localhost:8080/api/login/*",
"http://localhost:8089/*",
"http://localhost:8080/*",
"${JENKINS_URL}/securityRealm/finishLogin",
"${KEYCLOAK_URL}/*"
],
"webOrigins": [
"*"
],
"defaultRoles": [
"uma_protection"
],
"authorizationSettings": {
"allowRemoteResourceManagement": true,
"policyEnforcementMode": "ENFORCING",
"scopes": [
{
"name": "read:space"
},
{
"name": "admin:space"
}
]
}
},
{
"clientId": "che",
"enabled": true,
"redirectUris": [
"*"
],
"implicitFlowEnabled": false,
"directAccessGrantsEnabled": true,
"publicClient": true,
"protocol": "openid-connect",
"fullScopeAllowed": true
}
],
"users": [
{
"username": "service-account-fabric8-online-platform",
"enabled": true,
"totp": false,
"emailVerified": false,
"email": "service-account-fabric8-online-platform@placeholder.org",
"serviceAccountClientId": "fabric8-online-platform",
"credentials": [],
"disableableCredentialTypes": [],
"requiredActions": [],
"realmRoles": [
"offline_access",
"uma_authorization"
],
"clientRoles": {
"realm-management": [
"view-users",
"manage-authorization"
],
"broker": [
"read-token"
],
"fabric8-online-platform": [
"uma_protection"
],
"account": [
"manage-account",
"view-profile"
]
},
"groups": []
}
],
"clientScopeMappings": {
"realm-management": [
{
"client": "fabric8-online-platform",
"roles": [
"view-users"
]
},
{
"client": "fabric8-online-platform",
"roles": [
"manage-authorization"
]
}
],
"broker": [
{
"client": "fabric8-online-platform",
"roles": [
"read-token"
]
}
]
},
"roles": {
"realm": [
{
"name": "read:space",
"description": "Read space"
},
{
"name": "admin:space",
"description": "Admin space"
}
]
},
"identityProviders": [
{
"alias": "openshift-v3",
"providerId": "openshift-v3",
"enabled": true,
"updateProfileFirstLogin": "true",
"storeToken": "true",
"addReadTokenRoleOnCreate": true,
"config": {
"hideOnLoginPage": "${HIDE_OPENSHIFT_BTN}",
"baseUrl": "${K8S_API_SERVER}",
"clientId": "fabric8-online-platform",
"defaultScope": "user:full",
"clientSecret": "fabric8"
}
},
{
"alias": "github",
"providerId": "github",
"enabled": true,
"updateProfileFirstLogin": "true",
"storeToken": "true",
"trustEmail": true,
"addReadTokenRoleOnCreate": true,
"config": {
"hideOnLoginPage": "${HIDE_GITHUB_BTN}",
"clientSecret": "${GITHUB_OAUTH_CLIENT_SECRET}",
"clientId": "${GITHUB_OAUTH_CLIENT_ID}",
"defaultScope": "admin:repo_hook read:org repo user gist",
"useJwksUrl": "true"
}
}
],
"identityProviderMappers": [
{
"name": "approved",
"identityProviderAlias": "openshift-v3",
"identityProviderMapper": "hardcoded-attribute-idp-mapper",
"config": {
"attribute.value": "true",
"attribute": "approved"
}
},
{
"name": "approved",
"identityProviderAlias": "github",
"identityProviderMapper": "hardcoded-attribute-idp-mapper",
"config": {
"attribute.value": "true",
"attribute": "approved"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment