Class: Bosh::Director::Api::Controllers::UsersController

Inherits:
BaseController show all
Defined in:
lib/bosh/director/api/controllers/users_controller.rb

Constant Summary

Constants inherited from BaseController

BaseController::ROUTES_WITH_EXTENDED_TIMEOUT

Constants included from Http

Http::BAD_REQUEST, Http::CREATED, Http::FORBIDDEN, Http::INTERNAL_SERVER_ERROR, Http::NOT_FOUND, Http::NO_CONTENT, Http::OK, Http::UNAUTHORIZED

Constants included from ApiHelper

ApiHelper::READ_CHUNK_SIZE

Instance Attribute Summary

Attributes inherited from BaseController

#identity_provider

Instance Method Summary collapse

Methods inherited from BaseController

consumes, #requires_authentication?

Methods included from ApiHelper

#check_available_disk_space, #json_decode, #json_encode, #prepare_yml_file, #send_disposable_file, #start_task, #validate_manifest_yml, #write_file

Constructor Details

#initialize(config) ⇒ UsersController

Returns a new instance of UsersController.



6
7
8
9
# File 'lib/bosh/director/api/controllers/users_controller.rb', line 6

def initialize(config)
  super(config)
  @identity_provider = config.identity_provider
end

Instance Method Details

#validate_user_management_supportObject



40
41
42
43
44
# File 'lib/bosh/director/api/controllers/users_controller.rb', line 40

def validate_user_management_support
  unless @identity_provider.supports_api_update?
    raise UserManagementNotSupported, 'User management is not supported via API'
  end
end