where is the url /manage/auth/cloudfoundry
nkuacac opened this issue · comments
Follow is my step, please forgive me if there is something obviously.
- I setup mysql-broker local. (rackup -p 80)
- cf create broker and make plans public.
- cf create service.
- get service instance dashboard url.
- Browse the dashboard url.
the mysql-broker shows:
[29/Jul/2014 19:17:07] "GET /manage/instances/ed93c2c8-b611-40b6-93a0-00adfe9be4cc HTTP/1.1" 302 - 0.3368
[29/Jul/2014 19:17:07] "GET /manage/auth/cloudfoundry HTTP/1.1" 404 17174 0.0490
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/75942216.
I believe this is an endpoint on the dashboard UI that runs on the broker. This app depends on UAA, Login Server, and Cloud Controller. It also requires that the broker catalog advertises the dashboard_client param; after creating the broker in CC, this client should have been added to UAA.
@shalako Thanks.
I find the reason now.
https://github.com/cloudfoundry/cf-mysql-broker/blob/master/config/initializers/omniauth.rb#L8
The default Rails.env is developer. because the code above, broker will not response the url /manage/auth/cloudfoundry
.
make a new database.yml and settings.yml in config with other name.
production:
adapter: mysql2
encoding: utf8
database: development
pool: 5
username: root
password: root
host: localhost
port: 3306
production:
auth_password: 'secret'
<<: *defaults
@nkuacac Hello, you should also confirm that cc_service_broker_client is configured in your manifest for cloud controller (in cf-release), otherwise the client for mysql dashboard won't be created in UAA when broker is registered. For more info, see http://docs.cloudfoundry.org/services/dashboard-sso.html.