Class: Scimitar::AuthenticationScheme

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'app/models/scimitar/authentication_scheme.rb', line 4

def description
  @description
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'app/models/scimitar/authentication_scheme.rb', line 4

def name
  @name
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'app/models/scimitar/authentication_scheme.rb', line 4

def type
  @type
end

Class Method Details

.basicObject



6
7
8
9
10
# File 'app/models/scimitar/authentication_scheme.rb', line 6

def self.basic
  new type:        'httpbasic',
      name:        'HTTP Basic',
      description: 'Authentication scheme using the HTTP Basic Standard'
end

.bearerObject



12
13
14
15
16
# File 'app/models/scimitar/authentication_scheme.rb', line 12

def self.bearer
  new type:        'oauthbearertoken',
      name:        'OAuth Bearer Token',
      description: 'Authentication scheme using the OAuth Bearer Token Standard'
end