Class: ScimEngine::ServiceProviderConfiguration

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/models/scim_engine/service_provider_configuration.rb

Overview

Represnts the service provider info. Used by the /ServiceProviderConfig endpoint to privide specification compliance, authentication schemes, data models.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ServiceProviderConfiguration

Returns a new instance of ServiceProviderConfiguration.


10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'app/models/scim_engine/service_provider_configuration.rb', line 10

def initialize(attributes = {})
  defaults = {
    bulk: Supportable.unsupported,
    patch: Supportable.unsupported,
    filter: Supportable.unsupported,
    changePassword: Supportable.unsupported,
    sort: Supportable.unsupported,
    etag: Supportable.unsupported,
    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]
  }
  super(defaults.merge(attributes))
end

Instance Attribute Details

#authenticationSchemesObject

Returns the value of attribute authenticationSchemes


6
7
8
# File 'app/models/scim_engine/service_provider_configuration.rb', line 6

def authenticationSchemes
  @authenticationSchemes
end

#bulkObject

Returns the value of attribute bulk


6
7
8
# File 'app/models/scim_engine/service_provider_configuration.rb', line 6

def bulk
  @bulk
end

#changePasswordObject

Returns the value of attribute changePassword


6
7
8
# File 'app/models/scim_engine/service_provider_configuration.rb', line 6

def changePassword
  @changePassword
end

#etagObject

Returns the value of attribute etag


6
7
8
# File 'app/models/scim_engine/service_provider_configuration.rb', line 6

def etag
  @etag
end

#filterObject

Returns the value of attribute filter


6
7
8
# File 'app/models/scim_engine/service_provider_configuration.rb', line 6

def filter
  @filter
end

#metaObject

Returns the value of attribute meta


6
7
8
# File 'app/models/scim_engine/service_provider_configuration.rb', line 6

def meta
  @meta
end

#patchObject

Returns the value of attribute patch


6
7
8
# File 'app/models/scim_engine/service_provider_configuration.rb', line 6

def patch
  @patch
end

#schemasObject

Returns the value of attribute schemas


6
7
8
# File 'app/models/scim_engine/service_provider_configuration.rb', line 6

def schemas
  @schemas
end

#sortObject

Returns the value of attribute sort


6
7
8
# File 'app/models/scim_engine/service_provider_configuration.rb', line 6

def sort
  @sort
end