authlete 1.0.23 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Makefile +40 -0
- data/Rakefile +5 -0
- data/authlete.gemspec +2 -2
- data/lib/authlete.rb +28 -9
- data/lib/authlete/api.rb +153 -322
- data/lib/authlete/authentication-server.rb +2 -2
- data/lib/authlete/exception.rb +14 -15
- data/lib/authlete/model/base.rb +30 -0
- data/lib/authlete/model/client-extension.rb +17 -119
- data/lib/authlete/model/client.rb +205 -349
- data/lib/authlete/model/hashable.rb +13 -33
- data/lib/authlete/model/named-uri.rb +13 -74
- data/lib/authlete/model/pair.rb +13 -74
- data/lib/authlete/model/param-initializer.rb +45 -0
- data/lib/authlete/model/property.rb +15 -85
- data/lib/authlete/model/request/authentication-callback-request.rb +63 -55
- data/lib/authlete/model/request/authorization-fail-request.rb +14 -75
- data/lib/authlete/model/request/authorization-issue-request.rb +38 -119
- data/lib/authlete/model/request/authorization-request.rb +8 -73
- data/lib/authlete/model/request/backchannel-authentication-complete-request.rb +97 -0
- data/lib/authlete/model/request/backchannel-authentication-fail-request.rb +55 -0
- data/lib/authlete/model/request/backchannel-authentication-issue-request.rb +37 -0
- data/lib/authlete/model/request/backchannel-authentication-request.rb +63 -0
- data/lib/authlete/model/request/base.rb +26 -0
- data/lib/authlete/model/request/client-authorization-delete-request.rb +7 -93
- data/lib/authlete/model/request/client-authorization-get-list-request.rb +17 -89
- data/lib/authlete/model/request/client-authorization-update-request.rb +11 -86
- data/lib/authlete/model/request/client-registration-request.rb +49 -0
- data/lib/authlete/model/request/client-secret-update-request.rb +7 -89
- data/lib/authlete/model/request/developer-authentication-callback-request.rb +40 -43
- data/lib/authlete/model/request/device-authorization-request.rb +63 -0
- data/lib/authlete/model/request/device-complete-request.rb +99 -0
- data/lib/authlete/model/request/device-verification-request.rb +40 -0
- data/lib/authlete/model/request/granted-scopes-request.rb +8 -74
- data/lib/authlete/model/request/introspection-request.rb +24 -83
- data/lib/authlete/model/request/pushed-auth-req-request.rb +64 -0
- data/lib/authlete/model/request/revocation-request.rb +14 -88
- data/lib/authlete/model/request/standard-introspection-request.rb +8 -73
- data/lib/authlete/model/request/token-create-request.rb +52 -183
- data/lib/authlete/model/request/token-fail-request.rb +12 -74
- data/lib/authlete/model/request/token-issue-request.rb +22 -80
- data/lib/authlete/model/request/token-request.rb +44 -81
- data/lib/authlete/model/request/token-update-request.rb +35 -121
- data/lib/authlete/model/request/user-info-issue-request.rb +14 -80
- data/lib/authlete/model/request/user-info-request.rb +25 -70
- data/lib/authlete/model/response/access-token.rb +96 -0
- data/lib/authlete/model/response/authentication-callback-response.rb +24 -19
- data/lib/authlete/model/response/authorization-fail-response.rb +13 -15
- data/lib/authlete/model/response/authorization-issue-response.rb +29 -32
- data/lib/authlete/model/response/authorization-response.rb +97 -123
- data/lib/authlete/model/response/authorized-client-list-response.rb +37 -0
- data/lib/authlete/model/response/backchannel-authentication-complete-response.rb +143 -0
- data/lib/authlete/model/response/backchannel-authentication-fail-response.rb +47 -0
- data/lib/authlete/model/response/backchannel-authentication-issue-response.rb +63 -0
- data/lib/authlete/model/response/backchannel-authentication-response.rb +160 -0
- data/lib/authlete/model/response/client-list-response.rb +58 -0
- data/lib/authlete/model/response/client-registration-response.rb +50 -0
- data/lib/authlete/model/response/client-secret-refresh-response.rb +12 -12
- data/lib/authlete/model/response/client-secret-update-response.rb +12 -12
- data/lib/authlete/model/response/developer-authentication-callback-response.rb +24 -19
- data/lib/authlete/model/response/device-authorization-response.rb +134 -0
- data/lib/authlete/model/response/device-complete-response.rb +39 -0
- data/lib/authlete/model/response/device-verification-response.rb +96 -0
- data/lib/authlete/model/response/granted-scopes-get-response.rb +27 -19
- data/lib/authlete/model/response/introspection-response.rb +64 -58
- data/lib/authlete/model/response/pushed-auth-req-response.rb +59 -0
- data/lib/authlete/model/response/revocation-response.rb +12 -15
- data/lib/authlete/model/response/service-list-response.rb +54 -0
- data/lib/authlete/model/response/standard-introspection-response.rb +13 -15
- data/lib/authlete/model/response/token-create-response.rb +50 -55
- data/lib/authlete/model/response/token-fail-response.rb +14 -17
- data/lib/authlete/model/response/token-issue-response.rb +49 -62
- data/lib/authlete/model/response/token-list-response.rb +64 -0
- data/lib/authlete/model/response/token-response.rb +59 -79
- data/lib/authlete/model/response/token-update-response.rb +28 -23
- data/lib/authlete/model/response/user-info-issue-response.rb +16 -16
- data/lib/authlete/model/response/user-info-response.rb +48 -42
- data/lib/authlete/model/result.rb +14 -13
- data/lib/authlete/model/scope.rb +29 -119
- data/lib/authlete/model/service-owner.rb +32 -116
- data/lib/authlete/model/service.rb +488 -677
- data/lib/authlete/model/sns-credentials.rb +18 -91
- data/lib/authlete/model/tagged-value.rb +14 -69
- data/lib/authlete/utility.rb +3 -32
- data/lib/authlete/version.rb +3 -3
- data/test/authlete/model/request/test_authentication-callback-request.rb +100 -0
- data/test/authlete/model/request/test_authorization-fail-request.rb +67 -0
- data/test/authlete/model/request/test_authorization-issue-request.rb +94 -0
- data/test/authlete/model/request/test_authorization-request.rb +57 -0
- data/test/authlete/model/request/test_backchannel-authentication-complete-request.rb +102 -0
- data/test/authlete/model/request/test_backchannel-authentication-fail-request.rb +71 -0
- data/test/authlete/model/request/test_backchannel-authentication-issue-request.rb +57 -0
- data/test/authlete/model/request/test_backchannel-authentication-request.rb +75 -0
- data/test/authlete/model/request/test_client-authorization-delete-request.rb +57 -0
- data/test/authlete/model/request/test_client-authorization-get-list-request.rb +71 -0
- data/test/authlete/model/request/test_client-authorization-update-request.rb +63 -0
- data/test/authlete/model/request/test_client-registration-request.rb +68 -0
- data/test/authlete/model/request/test_device-authorization-request.rb +75 -0
- data/test/authlete/model/request/test_device-complete-request.rb +102 -0
- data/test/authlete/model/request/test_device-verification-request.rb +57 -0
- data/test/authlete/model/request/test_granted-scopes-request.rb +57 -0
- data/test/authlete/model/request/test_introspection-request.rb +79 -0
- data/test/authlete/model/request/test_pushed-auth-req-request.rb +75 -0
- data/test/authlete/model/request/test_revocation-request.rb +67 -0
- data/test/authlete/model/request/test_standard-introspection-request.rb +57 -0
- data/test/authlete/model/request/test_token-create-request.rb +110 -0
- data/test/authlete/model/request/test_token-fail-request.rb +63 -0
- data/test/authlete/model/request/test_token-issue-request.rb +70 -0
- data/test/authlete/model/request/test_token-request.rb +94 -0
- data/test/authlete/model/request/test_token-update-request.rb +82 -0
- data/test/authlete/model/request/test_user-info-issue-request.rb +67 -0
- data/test/authlete/model/request/test_user-info-request.rb +75 -0
- data/test/authlete/model/response/test_access-token.rb +101 -0
- data/test/authlete/model/response/test_authorization-fail-response.rb +68 -0
- data/test/authlete/model/response/test_authorization-issue-response.rb +92 -0
- data/test/authlete/model/response/test_authorization-response.rb +145 -0
- data/test/authlete/model/response/test_authorized-client-list-response.rb +83 -0
- data/test/authlete/model/response/test_backchannel-authentication-complete-response.rb +132 -0
- data/test/authlete/model/response/test_backchannel-authentication-fail-response.rb +68 -0
- data/test/authlete/model/response/test_backchannel-authentication-issue-response.rb +80 -0
- data/test/authlete/model/response/test_backchannel-authentication-response.rb +156 -0
- data/test/authlete/model/response/test_client-list-response.rb +79 -0
- data/test/authlete/model/response/test_client-secret-refresh-response.rb +68 -0
- data/test/authlete/model/response/test_client-secret-update-response.rb +68 -0
- data/test/authlete/model/response/test_device-authorization-response.rb +140 -0
- data/test/authlete/model/response/test_device-complete-response.rb +64 -0
- data/test/authlete/model/response/test_device-verification-response.rb +112 -0
- data/test/authlete/model/response/test_granted-scopes-get-response.rb +84 -0
- data/test/authlete/model/response/test_introspection-response.rb +127 -0
- data/test/authlete/model/response/test_pushed-auth-req-response.rb +76 -0
- data/test/authlete/model/response/test_revocation-response.rb +68 -0
- data/test/authlete/model/response/test_service-list-response.rb +72 -0
- data/test/authlete/model/response/test_standard-introspection-response.rb +68 -0
- data/test/authlete/model/response/test_token-create-response.rb +107 -0
- data/test/authlete/model/response/test_token-fail-response.rb +68 -0
- data/test/authlete/model/response/test_token-issue-response.rb +127 -0
- data/test/authlete/model/response/test_token-list-response.rb +84 -0
- data/test/authlete/model/response/test_token-response.rb +147 -0
- data/test/authlete/model/response/test_token-update-response.rb +87 -0
- data/test/authlete/model/response/test_user-info-issue-response.rb +68 -0
- data/test/authlete/model/response/test_user-info-response.rb +107 -0
- data/test/authlete/model/test_client-extension.rb +93 -0
- data/test/authlete/model/test_client.rb +469 -0
- data/test/authlete/model/test_named-uri.rb +83 -0
- data/test/authlete/model/test_pair.rb +83 -0
- data/test/authlete/model/test_property.rb +88 -0
- data/test/authlete/model/test_result.rb +68 -0
- data/test/authlete/model/test_scope.rb +104 -0
- data/test/authlete/model/test_service-owner.rb +80 -0
- data/test/authlete/model/test_service.rb +630 -0
- data/test/authlete/model/test_sns-credentials.rb +88 -0
- data/test/authlete/model/test_tagged-value.rb +83 -0
- data/test/authlete/test_exception.rb +70 -0
- metadata +169 -9
- data/lib/authlete/model/client-list.rb +0 -129
- data/lib/authlete/model/response/client-authorization-get-list-response.rb +0 -60
- data/lib/authlete/model/response/service-creatable-response.rb +0 -51
- data/lib/authlete/model/service-list.rb +0 -128
@@ -0,0 +1,47 @@
|
|
1
|
+
# :nodoc:
|
2
|
+
#
|
3
|
+
# Copyright (C) 2014-2020 Authlete, Inc.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
|
18
|
+
module Authlete
|
19
|
+
module Model
|
20
|
+
module Response
|
21
|
+
class BackchannelAuthenticationFailResponse < Authlete::Model::Result
|
22
|
+
|
23
|
+
attr_accessor :action
|
24
|
+
|
25
|
+
attr_accessor :responseContent
|
26
|
+
alias_method :response_content, :responseContent
|
27
|
+
alias_method :response_content=, :responseContent=
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def defaults
|
32
|
+
super.merge(
|
33
|
+
action: nil,
|
34
|
+
responseContent: nil
|
35
|
+
)
|
36
|
+
end
|
37
|
+
|
38
|
+
def set_params(hash)
|
39
|
+
super(hash)
|
40
|
+
|
41
|
+
@action = hash[:action]
|
42
|
+
@responseContent = hash[:responseContent]
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# :nodoc:
|
2
|
+
#
|
3
|
+
# Copyright (C) 2014-2020 Authlete, Inc.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
|
18
|
+
module Authlete
|
19
|
+
module Model
|
20
|
+
module Response
|
21
|
+
class BackchannelAuthenticationIssueResponse < Authlete::Model::Result
|
22
|
+
|
23
|
+
attr_accessor :action
|
24
|
+
|
25
|
+
attr_accessor :responseContent
|
26
|
+
alias_method :response_content, :responseContent
|
27
|
+
alias_method :response_content=, :responseContent=
|
28
|
+
|
29
|
+
attr_accessor :authReqId
|
30
|
+
alias_method :auth_req_id, :authReqId
|
31
|
+
alias_method :auth_req_id=, :authReqId=
|
32
|
+
|
33
|
+
attr_accessor :expiresIn
|
34
|
+
alias_method :expires_in, :expiresIn
|
35
|
+
alias_method :expires_in=, :expiresIn=
|
36
|
+
|
37
|
+
attr_accessor :interval
|
38
|
+
|
39
|
+
private
|
40
|
+
|
41
|
+
def defaults
|
42
|
+
super.merge(
|
43
|
+
action: nil,
|
44
|
+
responseContent: nil,
|
45
|
+
authReqId: nil,
|
46
|
+
expiresIn: 0,
|
47
|
+
interval: 0
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
def set_params(hash)
|
52
|
+
super(hash)
|
53
|
+
|
54
|
+
@action = hash[:action]
|
55
|
+
@responseContent = hash[:responseContent]
|
56
|
+
@authReqId = hash[:authReqId]
|
57
|
+
@expiresIn = hash[:expiresIn]
|
58
|
+
@interval = hash[:interval]
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,160 @@
|
|
1
|
+
# :nodoc:
|
2
|
+
#
|
3
|
+
# Copyright (C) 2014-2020 Authlete, Inc.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
|
18
|
+
module Authlete
|
19
|
+
module Model
|
20
|
+
module Response
|
21
|
+
class BackchannelAuthenticationResponse < Authlete::Model::Result
|
22
|
+
include Authlete::Utility
|
23
|
+
|
24
|
+
attr_accessor :action
|
25
|
+
|
26
|
+
attr_accessor :responseContent
|
27
|
+
alias_method :response_content, :responseContent
|
28
|
+
alias_method :response_content=, :responseContent=
|
29
|
+
|
30
|
+
attr_accessor :clientId
|
31
|
+
alias_method :client_id, :clientId
|
32
|
+
alias_method :client_id=, :clientId=
|
33
|
+
|
34
|
+
attr_accessor :clientIdAlias
|
35
|
+
alias_method :client_id_alias, :clientIdAlias
|
36
|
+
alias_method :client_id_alias=, :clientIdAlias=
|
37
|
+
|
38
|
+
attr_accessor :clientIdAliasUsed
|
39
|
+
alias_method :client_id_alias_used, :clientIdAliasUsed
|
40
|
+
alias_method :client_id_alias_used=, :clientIdAliasUsed=
|
41
|
+
|
42
|
+
attr_accessor :clientName
|
43
|
+
alias_method :client_name, :clientName
|
44
|
+
alias_method :client_name=, :clientName=
|
45
|
+
|
46
|
+
attr_accessor :clientAuthMethod
|
47
|
+
alias_method :client_auth_method, :clientAuthMethod
|
48
|
+
alias_method :client_auth_method=, :clientAuthMethod=
|
49
|
+
|
50
|
+
attr_accessor :deliveryMethod
|
51
|
+
alias_method :delivery_method, :deliveryMethod
|
52
|
+
alias_method :delivery_method=, :deliveryMethod=
|
53
|
+
|
54
|
+
attr_accessor :scopes
|
55
|
+
|
56
|
+
attr_accessor :clientNames
|
57
|
+
alias_method :client_names, :clientNames
|
58
|
+
alias_method :client_names=, :clientNames=
|
59
|
+
|
60
|
+
attr_accessor :clientNotificationToken
|
61
|
+
alias_method :client_notification_token, :clientNotificationToken
|
62
|
+
alias_method :client_notification_token=, :clientNotificationToken=
|
63
|
+
|
64
|
+
attr_accessor :acrs
|
65
|
+
|
66
|
+
attr_accessor :hintType
|
67
|
+
alias_method :hint_type, :hintType
|
68
|
+
alias_method :hint_type=, :hintType=
|
69
|
+
|
70
|
+
attr_accessor :hint
|
71
|
+
|
72
|
+
attr_accessor :sub
|
73
|
+
|
74
|
+
attr_accessor :bindingMessage
|
75
|
+
alias_method :binding_message, :bindingMessage
|
76
|
+
alias_method :binding_message=, :bindingMessage=
|
77
|
+
|
78
|
+
attr_accessor :userCode
|
79
|
+
alias_method :user_code, :userCode
|
80
|
+
alias_method :user_code=, :userCode=
|
81
|
+
|
82
|
+
attr_accessor :userCodeRequired
|
83
|
+
alias_method :user_code_required, :userCodeRequired
|
84
|
+
alias_method :user_code_required=, :userCodeRequired=
|
85
|
+
|
86
|
+
attr_accessor :requestedExpiry
|
87
|
+
alias_method :requested_expiry, :requestedExpiry
|
88
|
+
alias_method :requested_expiry=, :requestedExpiry=
|
89
|
+
|
90
|
+
attr_accessor :requestContext
|
91
|
+
alias_method :request_context, :requestContext
|
92
|
+
alias_method :request_context=, :requestContext=
|
93
|
+
|
94
|
+
attr_accessor :resources
|
95
|
+
|
96
|
+
attr_accessor :warnings
|
97
|
+
|
98
|
+
attr_accessor :ticket
|
99
|
+
|
100
|
+
private
|
101
|
+
|
102
|
+
def defaults()
|
103
|
+
super.merge(
|
104
|
+
action: nil,
|
105
|
+
responseContent: nil,
|
106
|
+
clientId: 0,
|
107
|
+
clientIdAlias: nil,
|
108
|
+
clientIdAliasUsed: false,
|
109
|
+
clientName: nil,
|
110
|
+
clientAuthMethod: nil,
|
111
|
+
deliveryMethod: nil,
|
112
|
+
scopes: nil,
|
113
|
+
clientNames: nil,
|
114
|
+
clientNotificationToken: nil,
|
115
|
+
acrs: nil,
|
116
|
+
hintType: nil,
|
117
|
+
hint: nil,
|
118
|
+
sub: nil,
|
119
|
+
bindingMessage: nil,
|
120
|
+
userCode: nil,
|
121
|
+
userCodeRequired: false,
|
122
|
+
requestedExpiry: 0,
|
123
|
+
requestContext: nil,
|
124
|
+
resources: nil,
|
125
|
+
warnings: nil,
|
126
|
+
ticket: nil
|
127
|
+
)
|
128
|
+
end
|
129
|
+
|
130
|
+
def set_params(hash)
|
131
|
+
super(hash)
|
132
|
+
|
133
|
+
@action = hash[:action]
|
134
|
+
@responseContent = hash[:responseContent]
|
135
|
+
@clientId = hash[:clientId]
|
136
|
+
@clientIdAlias = hash[:clientIdAlias]
|
137
|
+
@clientIdAliasUsed = hash[:clientIdAliasUsed]
|
138
|
+
@clientName = hash[:clientName]
|
139
|
+
@clientAuthMethod = hash[:clientAuthMethod]
|
140
|
+
@deliveryMethod = hash[:deliveryMethod]
|
141
|
+
@scopes = get_parsed_array(hash[:scopes]) { |e| Authlete::Model::Scope.parse(e) }
|
142
|
+
@clientNames = hash[:clientNames]
|
143
|
+
@clientNotificationToken = hash[:clientNotificationToken]
|
144
|
+
@acrs = hash[:acrs]
|
145
|
+
@hintType = hash[:hintType]
|
146
|
+
@hint = hash[:hint]
|
147
|
+
@sub = hash[:sub]
|
148
|
+
@bindingMessage = hash[:bindingMessage]
|
149
|
+
@userCode = hash[:userCode]
|
150
|
+
@userCodeRequired = hash[:userCodeRequired]
|
151
|
+
@requestedExpiry = hash[:requestedExpiry]
|
152
|
+
@requestContext = hash[:requestContext]
|
153
|
+
@resources = hash[:resources]
|
154
|
+
@warnings = hash[:warnings]
|
155
|
+
@ticket = hash[:ticket]
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# :nodoc:
|
2
|
+
#
|
3
|
+
# Copyright (C) 2014-2020 Authlete, Inc.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
|
18
|
+
module Authlete
|
19
|
+
module Model
|
20
|
+
module Response
|
21
|
+
class ClientListResponse < Authlete::Model::Base
|
22
|
+
include Authlete::Utility
|
23
|
+
|
24
|
+
attr_accessor :start
|
25
|
+
|
26
|
+
attr_accessor :end
|
27
|
+
|
28
|
+
attr_accessor :developer
|
29
|
+
|
30
|
+
attr_accessor :totalCount
|
31
|
+
alias_method :total_count, :totalCount
|
32
|
+
alias_method :total_count=, :totalCount=
|
33
|
+
|
34
|
+
attr_accessor :clients
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def defaults
|
39
|
+
{
|
40
|
+
start: 0,
|
41
|
+
end: 0,
|
42
|
+
developer: nil,
|
43
|
+
totalCount: 0,
|
44
|
+
clients: nil
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
def set_params(hash)
|
49
|
+
@start = hash[:start]
|
50
|
+
@end = hash[:end]
|
51
|
+
@developer = hash[:developer]
|
52
|
+
@totalCount = hash[:totalCount]
|
53
|
+
@clients = get_parsed_array(hash[:clients]) { |e| Authlete::Model::Client.parse(e) }
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# :nodoc:
|
2
|
+
#
|
3
|
+
# Copyright (C) 2014-2020 Authlete, Inc.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
|
18
|
+
module Authlete
|
19
|
+
module Model
|
20
|
+
module Response
|
21
|
+
class ClientRegistrationResponse < Authlete::Model::Result
|
22
|
+
attr_accessor :action
|
23
|
+
|
24
|
+
attr_accessor :responseContent
|
25
|
+
alias_method :response_content, :responseContent
|
26
|
+
alias_method :response_content=, :responseContent=
|
27
|
+
|
28
|
+
attr_accessor :client
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def defaults
|
33
|
+
super.merge(
|
34
|
+
action: nil,
|
35
|
+
responseContent: nil,
|
36
|
+
client: nil
|
37
|
+
)
|
38
|
+
end
|
39
|
+
|
40
|
+
def set_params(hash)
|
41
|
+
super(hash)
|
42
|
+
|
43
|
+
@action = hash[:action]
|
44
|
+
@responseContent = hash[:responseContent]
|
45
|
+
@client = hash[:client]
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# :nodoc:
|
2
2
|
#
|
3
|
-
# Copyright (C) 2014-
|
3
|
+
# Copyright (C) 2014-2020 Authlete, Inc.
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
6
|
# you may not use this file except in compliance with the License.
|
@@ -18,31 +18,31 @@
|
|
18
18
|
module Authlete
|
19
19
|
module Model
|
20
20
|
module Response
|
21
|
-
# == Authlete::Model::Response::ClientSecretRefreshResponse class
|
22
|
-
#
|
23
|
-
# This class represents a response from Authlete's /api/client/secret/refresh/{clientIdentifier} API.
|
24
21
|
class ClientSecretRefreshResponse < Authlete::Model::Result
|
25
|
-
# The new client secret. (String)
|
26
22
|
attr_accessor :newClientSecret
|
27
23
|
alias_method :new_client_secret, :newClientSecret
|
28
24
|
alias_method :new_client_secret=, :newClientSecret=
|
29
25
|
|
30
|
-
# The old client secret. (String)
|
31
26
|
attr_accessor :oldClientSecret
|
32
27
|
alias_method :old_client_secret, :oldClientSecret
|
33
28
|
alias_method :old_client_secret=, :oldClientSecret=
|
34
29
|
|
35
30
|
private
|
36
31
|
|
37
|
-
|
38
|
-
|
39
|
-
|
32
|
+
def defaults
|
33
|
+
super.merge(
|
34
|
+
newClientSecret: nil,
|
35
|
+
oldClientSecret: nil
|
36
|
+
)
|
37
|
+
end
|
38
|
+
|
39
|
+
def set_params(hash)
|
40
40
|
super(hash)
|
41
41
|
|
42
|
-
@newClientSecret =
|
43
|
-
@oldClientSecret =
|
42
|
+
@newClientSecret = hash[:newClientSecret]
|
43
|
+
@oldClientSecret = hash[:oldClientSecret]
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
48
|
-
end
|
48
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# :nodoc:
|
2
2
|
#
|
3
|
-
# Copyright (C) 2014-
|
3
|
+
# Copyright (C) 2014-2020 Authlete, Inc.
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
6
|
# you may not use this file except in compliance with the License.
|
@@ -18,31 +18,31 @@
|
|
18
18
|
module Authlete
|
19
19
|
module Model
|
20
20
|
module Response
|
21
|
-
# == Authlete::Model::Response::ClientSecretUpdateResponse class
|
22
|
-
#
|
23
|
-
# This class represents a response from Authlete's /api/client/secret/update/{clientIdentifier} API.
|
24
21
|
class ClientSecretUpdateResponse < Authlete::Model::Result
|
25
|
-
# The new client secret. (String)
|
26
22
|
attr_accessor :newClientSecret
|
27
23
|
alias_method :new_client_secret, :newClientSecret
|
28
24
|
alias_method :new_client_secret=, :newClientSecret=
|
29
25
|
|
30
|
-
# The old client secret. (String)
|
31
26
|
attr_accessor :oldClientSecret
|
32
27
|
alias_method :old_client_secret, :oldClientSecret
|
33
28
|
alias_method :old_client_secret=, :oldClientSecret=
|
34
29
|
|
35
30
|
private
|
36
31
|
|
37
|
-
|
38
|
-
|
39
|
-
|
32
|
+
def defaults
|
33
|
+
super.merge(
|
34
|
+
newClientSecret: nil,
|
35
|
+
oldClientSecret: nil
|
36
|
+
)
|
37
|
+
end
|
38
|
+
|
39
|
+
def set_params(hash)
|
40
40
|
super(hash)
|
41
41
|
|
42
|
-
@newClientSecret =
|
43
|
-
@oldClientSecret =
|
42
|
+
@newClientSecret = hash[:newClientSecret]
|
43
|
+
@oldClientSecret = hash[:oldClientSecret]
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
48
|
-
end
|
48
|
+
end
|