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
|
-
@
|
46
|
-
@
|
47
|
-
@
|
48
|
-
@
|
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
|
data/lib/authlete/version.rb
CHANGED