Class: Lyrebird::Defaults

Inherits:
Object
  • Object
show all
Defined in:
lib/lyrebird/defaults.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDefaults

Returns a new instance of Defaults.



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/lyrebird/defaults.rb', line 20

def initialize
  @issuer = "https://idp.example.com"
  @name_id = "user@example.com"
  @name_id_format = NAMEID_EMAIL
  @recipient = "https://sp.example.com/acs"
  @in_response_to = "_request_id"
  @valid_for = 300 # 5 minutes
  @audience = "https://sp.example.com"

  @authn_context =
    "urn:oasis:names:tc:SAML:2.0:ac:classes:" \
    "PasswordProtectedTransport"

  @attributes = {
    first_name: "Test",
    last_name: "User",
  }.freeze
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



18
19
20
# File 'lib/lyrebird/defaults.rb', line 18

def attributes
  @attributes
end

#audienceObject

Returns the value of attribute audience.



16
17
18
# File 'lib/lyrebird/defaults.rb', line 16

def audience
  @audience
end

#authn_contextObject

Returns the value of attribute authn_context.



17
18
19
# File 'lib/lyrebird/defaults.rb', line 17

def authn_context
  @authn_context
end

#in_response_toObject

Returns the value of attribute in_response_to.



14
15
16
# File 'lib/lyrebird/defaults.rb', line 14

def in_response_to
  @in_response_to
end

#issuerObject

Returns the value of attribute issuer.



10
11
12
# File 'lib/lyrebird/defaults.rb', line 10

def issuer
  @issuer
end

#name_idObject

Returns the value of attribute name_id.



11
12
13
# File 'lib/lyrebird/defaults.rb', line 11

def name_id
  @name_id
end

#name_id_formatObject

Returns the value of attribute name_id_format.



12
13
14
# File 'lib/lyrebird/defaults.rb', line 12

def name_id_format
  @name_id_format
end

#recipientObject

Returns the value of attribute recipient.



13
14
15
# File 'lib/lyrebird/defaults.rb', line 13

def recipient
  @recipient
end

#valid_forObject

Returns the value of attribute valid_for.



15
16
17
# File 'lib/lyrebird/defaults.rb', line 15

def valid_for
  @valid_for
end