Class: Scimitar::ServiceProviderConfiguration
- Inherits:
-
Object
- Object
- Scimitar::ServiceProviderConfiguration
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/scimitar/service_provider_configuration.rb
Overview
Represents the service provider info. Used by the /ServiceProviderConfig endpoint to provide specification compliance, authentication schemes and data models. Renders to JSON as a SCIM ServiceProviderConfig type.
See config/initializers/scimitar.rb for more information.
Instance Attribute Summary collapse
-
#authenticationSchemes ⇒ Object
Returns the value of attribute authenticationSchemes.
-
#bulk ⇒ Object
Returns the value of attribute bulk.
-
#changePassword ⇒ Object
Returns the value of attribute changePassword.
-
#etag ⇒ Object
Returns the value of attribute etag.
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#patch ⇒ Object
Returns the value of attribute patch.
-
#schemas ⇒ Object
Returns the value of attribute schemas.
-
#sort ⇒ Object
Returns the value of attribute sort.
-
#uses_defaults ⇒ Object
Returns the value of attribute uses_defaults.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ServiceProviderConfiguration
constructor
A new instance of ServiceProviderConfiguration.
Constructor Details
#initialize(attributes = {}) ⇒ ServiceProviderConfiguration
Returns a new instance of ServiceProviderConfiguration.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'app/models/scimitar/service_provider_configuration.rb', line 25 def initialize(attributes = {}) @uses_defaults = attributes.empty? defaults = { bulk: Supportable.unsupported, changePassword: Supportable.unsupported, sort: Supportable.unsupported, etag: Supportable.unsupported, patch: Supportable.supported, filter: Scimitar::Filter.new( supported: true, maxResults: Scimitar::Filter::MAX_RESULTS_DEFAULT ), schemas: ["urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"], meta: Meta.new( resourceType: 'ServiceProviderConfig', created: Time.now, lastModified: Time.now, version: '1' ), authenticationSchemes: [ AuthenticationScheme.basic, AuthenticationScheme.bearer ] } super(defaults.merge(attributes)) end |
Instance Attribute Details
#authenticationSchemes ⇒ Object
Returns the value of attribute authenticationSchemes.
12 13 14 |
# File 'app/models/scimitar/service_provider_configuration.rb', line 12 def authenticationSchemes @authenticationSchemes end |
#bulk ⇒ Object
Returns the value of attribute bulk.
12 13 14 |
# File 'app/models/scimitar/service_provider_configuration.rb', line 12 def bulk @bulk end |
#changePassword ⇒ Object
Returns the value of attribute changePassword.
12 13 14 |
# File 'app/models/scimitar/service_provider_configuration.rb', line 12 def changePassword @changePassword end |
#etag ⇒ Object
Returns the value of attribute etag.
12 13 14 |
# File 'app/models/scimitar/service_provider_configuration.rb', line 12 def etag @etag end |
#filter ⇒ Object
Returns the value of attribute filter.
12 13 14 |
# File 'app/models/scimitar/service_provider_configuration.rb', line 12 def filter @filter end |
#patch ⇒ Object
Returns the value of attribute patch.
12 13 14 |
# File 'app/models/scimitar/service_provider_configuration.rb', line 12 def patch @patch end |
#schemas ⇒ Object
Returns the value of attribute schemas.
12 13 14 |
# File 'app/models/scimitar/service_provider_configuration.rb', line 12 def schemas @schemas end |
#sort ⇒ Object
Returns the value of attribute sort.
12 13 14 |
# File 'app/models/scimitar/service_provider_configuration.rb', line 12 def sort @sort end |
#uses_defaults ⇒ Object
Returns the value of attribute uses_defaults.
12 13 14 |
# File 'app/models/scimitar/service_provider_configuration.rb', line 12 def uses_defaults @uses_defaults end |