зеркало из https://github.com/mozilla/labs-vcap.git
update uaa: uaa client gem, dev_setup, submodule
Change-Id: Iac958a2b0ab19d5816288c6ceb4b51735ef5266c
This commit is contained in:
Родитель
10b9d31632
Коммит
8c6bf37b82
|
@ -11,7 +11,7 @@ gem 'logging', '>= 1.5.0'
|
|||
gem 'vcap_common', :require => ['vcap/common', 'vcap/component']
|
||||
gem 'vcap_logging', :require => ['vcap/logging']
|
||||
gem 'vcap_staging'
|
||||
gem 'cf-uaa-client', '>= 0.0.5'
|
||||
gem 'cf-uaa-client', '>= 0.0.6'
|
||||
|
||||
# For queuing staging tasks
|
||||
gem 'em-hiredis'
|
||||
|
|
|
@ -33,7 +33,7 @@ GEM
|
|||
arel (2.0.9)
|
||||
bcrypt-ruby (2.1.4)
|
||||
builder (2.1.2)
|
||||
cf-uaa-client (0.0.5)
|
||||
cf-uaa-client (0.0.6)
|
||||
em-http-request (= 1.0.0.beta.3)
|
||||
eventmachine
|
||||
json_pure
|
||||
|
@ -157,7 +157,7 @@ PLATFORMS
|
|||
DEPENDENCIES
|
||||
SystemTimer (~> 1.2)
|
||||
bcrypt-ruby (~> 2.1.4)
|
||||
cf-uaa-client (>= 0.0.5)
|
||||
cf-uaa-client (>= 0.0.6)
|
||||
ci_reporter
|
||||
delorean
|
||||
em-hiredis
|
||||
|
|
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -1,21 +1,11 @@
|
|||
include_attributes "uaadb"
|
||||
default[:uaadb][:host] = "localhost"
|
||||
|
||||
# scim password => "scimsecret"
|
||||
default[:uaa][:scim][:secret] = "$2a$08$duCE9bFm.duhfe6IrjC0Q.zIvJ9DfjBPhCcuJDj9fUVXaNjNeK5fi"
|
||||
|
||||
# my client password => "myclientsecret"
|
||||
default[:uaa][:my][:secret] = "$2a$08$fsPmrV9zHPU14qpPR1c49.GVRL8JvW33y1qlYFwiZWX4M8vM36bBW"
|
||||
|
||||
# app client password => "appclientsecret"
|
||||
default[:uaa][:app][:secret] = "$2a$08$Q7ZoYHasNrVzeaZ1Vjgau.2LsOJeDm7.KlCU9w3xZMDa60WYLfVom"
|
||||
|
||||
# cloud controller client secret is the bcrypted password
|
||||
# uaa expects it bcrypted, but client must have it in the clear
|
||||
default[:uaa][:cloud_controller][:secret] = "$2a$08$BoWTL27.xae6li/bF3pybOGkEPk8v9LBwudhyuPc4DvvrFS4.TKv6"
|
||||
default[:uaa][:cloud_controller][:password] = "cloudcontrollersecret"
|
||||
|
||||
default[:uaa][:jwt_secret] = "uaa_jwt_secret"
|
||||
|
||||
default[:uaa][:batch][:username] = "batch_user"
|
||||
default[:uaa][:batch][:secret] = "batch_password"
|
||||
default[:uaa][:batch][:password] = "batch_password"
|
||||
|
||||
# uaa client registration bootstrap
|
||||
default[:uaa][:admin][:password] = "adminsecret"
|
||||
default[:uaa][:cloud_controller][:password] = "cloudcontrollersecret"
|
||||
|
|
|
@ -10,20 +10,9 @@ database:
|
|||
url: jdbc:postgresql://<%= node[:uaadb][:host] %>:<%= node[:uaadb][:port] %>/<%= node[:uaadb][:database] %>
|
||||
|
||||
jvm_args: -Xmx512m
|
||||
spring_profiles: jdbc,postgresql,!legacy
|
||||
|
||||
bootstrap:
|
||||
admin:
|
||||
username: marissa
|
||||
password: $2a$10$ikFXo9IFG6zbMbhGcssySOhjDsGPpqzKwsdVOeCvJ7JoWjSQxyfs6
|
||||
given_name: Marissa
|
||||
family_name: Bloggs
|
||||
email: marissa@test.org
|
||||
spring_profiles: postgresql
|
||||
|
||||
cloud_controller:
|
||||
login_url: http://api.vcap.me/users/{username}/tokens
|
||||
client:
|
||||
secret: <%= node[:uaa][:cloud_controller][:secret] %>
|
||||
database:
|
||||
url: jdbc:postgresql://<%= node[:ccdb][:host] %>:<%= node[:ccdb][:port] %>/<%= node[:ccdb][:database] %>
|
||||
username: <%= node[:ccdb][:user] %>
|
||||
|
@ -33,18 +22,30 @@ jwt:
|
|||
token:
|
||||
key: <%= node[:uaa][:jwt_secret] %>
|
||||
|
||||
app:
|
||||
client:
|
||||
secret: <%= node[:uaa][:app][:secret] %>
|
||||
|
||||
my:
|
||||
client:
|
||||
secret: <%= node[:uaa][:my][:secret] %>
|
||||
|
||||
scim:
|
||||
client:
|
||||
secret: <%= node[:uaa][:scim][:secret] %>
|
||||
|
||||
batch:
|
||||
username: <%= node[:uaa][:batch][:username] %>
|
||||
password: <%= node[:uaa][:batch][:secret] %>
|
||||
password: <%= node[:uaa][:batch][:password] %>
|
||||
|
||||
oauth:
|
||||
clients:
|
||||
admin:
|
||||
authorized-grant-types: client_credentials
|
||||
scope: read,write,password
|
||||
authorities: ROLE_CLIENT,ROLE_ADMIN
|
||||
id: admin
|
||||
secret: <%= node[:uaa][:admin][:password] %>
|
||||
resource-ids: scim,password,tokens,clients,openid
|
||||
cloud_controller:
|
||||
authorized-grant-types: client_credentials
|
||||
scope: read,write,password
|
||||
authorities: ROLE_CLIENT,ROLE_ADMIN
|
||||
id: cloud_controller
|
||||
secret: <%= node[:uaa][:cloud_controller][:password] %>
|
||||
resource-ids: scim,password,tokens
|
||||
vmc:
|
||||
authorized-grant-types: implicit
|
||||
scope: read,password
|
||||
authorities: ROLE_UNTRUSTED
|
||||
id: vmc
|
||||
resource-ids: cloud_controller,openid,password
|
||||
redirect-uri: http://uaa.cloudfoundry.com/redirect/vmc
|
||||
|
|
|
@ -13,7 +13,7 @@ gem 'logging', '>= 1.5.0'
|
|||
|
||||
gem 'vcap_common', '>= 1.0.6'
|
||||
gem 'vcap_logging', :require => ['vcap/logging']
|
||||
gem 'cf-uaa-client', '>= 0.0.5'
|
||||
gem 'cf-uaa-client', '>= 0.0.6'
|
||||
|
||||
group :test do
|
||||
gem "rspec"
|
||||
|
|
|
@ -3,7 +3,7 @@ GEM
|
|||
specs:
|
||||
addressable (2.2.6)
|
||||
builder (3.0.0)
|
||||
cf-uaa-client (0.0.5)
|
||||
cf-uaa-client (0.0.6)
|
||||
em-http-request (= 1.0.0.beta.3)
|
||||
eventmachine
|
||||
json_pure
|
||||
|
@ -25,7 +25,7 @@ GEM
|
|||
little-plugger (1.1.3)
|
||||
logging (1.6.2)
|
||||
little-plugger (>= 1.1.3)
|
||||
mime-types (1.17.2)
|
||||
mime-types (1.18)
|
||||
nats (0.4.22.beta.8)
|
||||
daemons (>= 1.1.4)
|
||||
eventmachine (>= 0.12.10)
|
||||
|
@ -63,7 +63,7 @@ PLATFORMS
|
|||
|
||||
DEPENDENCIES
|
||||
bundler (>= 1.0.10)
|
||||
cf-uaa-client (>= 0.0.5)
|
||||
cf-uaa-client (>= 0.0.6)
|
||||
ci_reporter
|
||||
em-http-request (~> 1.0.0.beta.3)
|
||||
eventmachine
|
||||
|
|
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
2
uaa
2
uaa
|
@ -1 +1 @@
|
|||
Subproject commit 64300683679150ca69583859c190b2d7c005b252
|
||||
Subproject commit f81c3cb58adeb623ec5767355a5104a86f98995a
|
Загрузка…
Ссылка в новой задаче