Class: DeviseScim::SchemasController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- DeviseScim::SchemasController
- Defined in:
- app/controllers/devise_scim/schemas_controller.rb
Constant Summary collapse
- LIST_SCHEMA =
"urn:ietf:params:scim:api:messages:2.0:ListResponse"- SCHEMA_SCHEMA =
"urn:ietf:params:scim:schemas:core:2.0:Schema"
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/devise_scim/schemas_controller.rb', line 8 def index schemas = [user_schema] schemas << group_schema if DeviseScim.configuration.enable_groups payload = { "schemas" => [LIST_SCHEMA], "totalResults" => schemas.size, "Resources" => schemas } render_scim(payload) end |