Class: Tanker::OIDCAuthorizationCodeVerification

Inherits:
Verification
  • Object
show all
Defined in:
lib/tanker/core/verification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider_id, authorization_code, state) ⇒ OIDCAuthorizationCodeVerification

Returns a new instance of OIDCAuthorizationCodeVerification.



80
81
82
83
84
85
86
87
88
89
90
# File 'lib/tanker/core/verification.rb', line 80

def initialize(provider_id, authorization_code, state)
  super()

  ASSERT_UTF8.call(provider_id)
  ASSERT_UTF8.call(authorization_code)
  ASSERT_UTF8.call(state)

  @provider_id = provider_id
  @authorization_code = authorization_code
  @state = state
end

Instance Attribute Details

#authorization_codeObject (readonly)

Returns the value of attribute authorization_code.



78
79
80
# File 'lib/tanker/core/verification.rb', line 78

def authorization_code
  @authorization_code
end

#provider_idObject (readonly)

Returns the value of attribute provider_id.



78
79
80
# File 'lib/tanker/core/verification.rb', line 78

def provider_id
  @provider_id
end

#stateObject (readonly)

Returns the value of attribute state.



78
79
80
# File 'lib/tanker/core/verification.rb', line 78

def state
  @state
end