authlete 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,6 +26,13 @@ module Authlete
26
26
  class AuthenticationCallbackRequest
27
27
  include Authlete::Utility
28
28
 
29
+ # The API key of the service.
30
+ attr_accessor :service_api_key
31
+
32
+ # The ID of the client application which has triggered the authentication
33
+ # callback request.
34
+ attr_accessor :client_id
35
+
29
36
  # The login ID that the end-user input to the login ID field.
30
37
  attr_accessor :id
31
38
 
@@ -42,10 +49,12 @@ module Authlete
42
49
  # The constructor which takes a hash that represents a JSON request
43
50
  # to an authentication callback endpoint.
44
51
  def initialize(hash = {})
45
- @id = extract_value(hash, :id)
46
- @password = extract_value(hash, :password)
47
- @claims = extract_value(hash, :claims)
48
- @claimsLocales = extract_value(hash, :claimsLocales)
52
+ @service_api_key = extract_value(hash, :serviceApiKey)
53
+ @client_id = extract_value(hash, :clientId)
54
+ @id = extract_value(hash, :id)
55
+ @password = extract_value(hash, :password)
56
+ @claims = extract_value(hash, :claims)
57
+ @claimsLocales = extract_value(hash, :claimsLocales)
49
58
  end
50
59
 
51
60
  # Parse a JSON string which represents a request to an authentication
@@ -1,3 +1,3 @@
1
1
  module Authlete
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: