authlete 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2024afa291c16d03bf3a5659175e3828265b79d
4
- data.tar.gz: 03eb92bb0b61deadd5ad56d73b23ff0a6cb7dea6
3
+ metadata.gz: d7bba8bb604d18daaa2dc40b7dcfe86fafdf7f6b
4
+ data.tar.gz: 0a71e5d0f6b5c8ac34ab7ea41d0eb0bed13ae33b
5
5
  SHA512:
6
- metadata.gz: f2cf39a30fc1434ad9109cb43b465f616dd066f53818e3460ab97adca924d53863207037e9605ff7e3bb10ccdcaae6c532c2cee049d4ffa163cc1f290ad1d14a
7
- data.tar.gz: 71ddae97dbb65d680aca24265f0c6d80990d918e0559b548b0002a464e52c8dbd88a914ea51e90327ca51391b17892bf7f3e26963aebeae29fb4454d01390a80
6
+ metadata.gz: 7bc001da1062add3e3891d864a4a6e1f6ba7f6f68641454dce2a9192dad312d7355e641580a89b0b9edf3c7d13fe2290fb9963a8be4713f21f7dfc4b2f336ff5
7
+ data.tar.gz: aeec6690dd77e0effd3ee2b90164590668a1e4e7d12c4f3cd2b3c02a159efaf970ea55683aa07c45fe6acc3c56c676dfc950f9f4c5cd48ea00ed1a1ceb3a784b
@@ -61,6 +61,12 @@ module Authlete
61
61
  alias_method :authorization_endpoint, :authorizationEndpoint
62
62
  alias_method :authorization_endpoint=, :authorizationEndpoint=
63
63
 
64
+ # The number of client applications that one developer can create.
65
+ # 0 means no limit.
66
+ attr_accessor :clientPerDeveloper
67
+ alias_method :client_per_developer, :clientPerDeveloper
68
+ alias_method :client_per_developer=, :clientPerDeveloper=
69
+
64
70
  # The timestamp at which the service was created. (Integer)
65
71
  attr_accessor :createdAt
66
72
  alias_method :created_at, :createdAt
@@ -89,6 +95,41 @@ module Authlete
89
95
  alias_method :developer_sns_credentials, :developerSnsCredentials
90
96
  alias_method :developer_sns_credentials=, :developerSnsCredentials=
91
97
 
98
+ # The flag to indicate whether the direct authorization endpoint
99
+ # is enabled or not. The path of the endpoint is
100
+ # <code>/api/auth/authorization/direct/{serviceApiKey}</code>
101
+ attr_accessor :directAuthorizationEndpointEnabled
102
+ alias_method :direct_authorization_endpoint_enabled, :directAuthorizationEndpointEnabled
103
+ alias_method :direct_authorization_endpoint_enabled=, :directAuthorizationEndpointEnabled=
104
+
105
+ # The flag to indicate whether the direct jwks endpoint
106
+ # is enabled or not. The path of the endpoint is
107
+ # <code>/api/service/jwks/get/direct/{serviceApiKey}</code>
108
+ attr_accessor :directJwksEndpointEnabled
109
+ alias_method :direct_jwks_endpoint_enabled, :directJwksEndpointEnabled
110
+ alias_method :direct_jwks_endpoint_enabled=, :directJwksEndpointEnabled=
111
+
112
+ # The flag to indicate whether the direct revocation endpoint
113
+ # is enabled or not. The path of the endpoint is
114
+ # <code>/api/auth/revocation/direct/{serviceApiKey}</code>
115
+ attr_accessor :directRevocationEndpointEnabled
116
+ alias_method :direct_revocation_endpoint_enabled, :directRevocationEndpointEnabled
117
+ alias_method :direct_revocation_endpoint_enabled=, :directRevocationEndpointEnabled=
118
+
119
+ # The flag to indicate whether the direct token endpoint
120
+ # is enabled or not. The path of the endpoint is
121
+ # <code>/api/auth/token/direct/{serviceApiKey}</code>
122
+ attr_accessor :directTokenEndpointEnabled
123
+ alias_method :direct_token_endpoint_enabled, :directTokenEndpointEnabled
124
+ alias_method :direct_token_endpoint_enabled=, :directTokenEndpointEnabled=
125
+
126
+ # The flag to indicate whether the direct user info endpoint
127
+ # is enabled or not. The path of the endpoint is
128
+ # <code>/api/auth/userinfo/direct/{serviceApiKey}</code>
129
+ attr_accessor :directUserInfoEndpointEnabled
130
+ alias_method :direct_user_info_endpoint_enabled, :directUserInfoEndpointEnabled
131
+ alias_method :direct_user_info_endpoint_enabled=, :directUserInfoEndpointEnabled=
132
+
92
133
  # The duration of ID tokens in seconds. (Integer)
93
134
  attr_accessor :idTokenDuration
94
135
  alias_method :id_token_duration, :idTokenDuration
@@ -131,6 +172,11 @@ module Authlete
131
172
  alias_method :registration_endpoint, :registrationEndpoint
132
173
  alias_method :registration_endpoint=, :registrationEndpoint=
133
174
 
175
+ # The URI of the token revocation endpoint. (URI)
176
+ attr_accessor :revocationEndpoint
177
+ alias_method :revocation_endpoint, :revocationEndpoint
178
+ alias_method :revocation_endpoint=, :revocationEndpoint=
179
+
134
180
  # The URI of the service's documentation. (URI)
135
181
  attr_accessor :serviceDocumentation
136
182
  alias_method :service_documentation, :serviceDocumentation
@@ -235,7 +281,7 @@ module Authlete
235
281
  alias_method :tos_uri, :tosUri
236
282
  alias_method :tos_uri=, :tosUri=
237
283
 
238
- # The URI of UserInfo endpoint. (URI)
284
+ # The URI of user info endpoint. (URI)
239
285
  attr_accessor :userInfoEndpoint
240
286
  alias_method :user_info_endpoint, :userInfoEndpoint
241
287
  alias_method :user_info_endpoint=, :userInfoEndpoint=
@@ -244,8 +290,14 @@ module Authlete
244
290
 
245
291
  # Integer attributes.
246
292
  INTEGER_ATTRIBUTES = ::Set.new([
247
- :accessTokenDuration, :apiKey, :createdAt, :idTokenDuration,
248
- :modifiedAt, :number, :refreshTokenDuration, :serviceOwnerNumber
293
+ :accessTokenDuration, :apiKey, :clientPerDeveloper, :createdAt,
294
+ :idTokenDuration, :modifiedAt, :number, :refreshTokenDuration, :serviceOwnerNumber
295
+ ])
296
+
297
+ # Boolean attributes.
298
+ BOOLEAN_ATTRIBUTES = ::Set.new([
299
+ :directAuthorizationEndpointEnabled, :directJwksEndpointEnabled, :directRevocationEndpointEnabled,
300
+ :directTokenEndpointEnabled, :directUserInfoEndpointEnabled
249
301
  ])
250
302
 
251
303
  # String attributes.
@@ -255,7 +307,7 @@ module Authlete
255
307
  :authorizationEndpoint, :description, :developerAuthenticationCallbackApiKey,
256
308
  :developerAuthenticationCallbackApiSecret, :developerAuthenticationCallbackEndpoint,
257
309
  :issuer, :jwks, :jwksUri, :policyUri, :registrationEndpoint, :serviceDocumentation,
258
- :serviceName, :tokenEndpoint, :tosUri, :userInfoEndpoint
310
+ :serviceName, :tokenEndpoint, :tosUri, :userInfoEndpoint, :revocationEndpoint
259
311
  ])
260
312
 
261
313
  # String array attributes.
@@ -276,11 +328,17 @@ module Authlete
276
328
  :authentication_callback_api_secret => :authenticationCallbackApiSecret,
277
329
  :authentication_callback_endpoint => :authenticationCallbackEndpoint,
278
330
  :authorization_endpoint => :authorizationEndpoint,
279
- :developer_authentication_callback_api_key => :developerAuthenticationCallbackApiKey,
331
+ :developer_authentication_callback_api_key => :developerAuthenticationCallbackApiKey,
280
332
  :developer_authentication_callback_api_secret => :developerAuthenticationCallbackApiSecret,
281
333
  :developer_authentication_callback_endpoint => :developerAuthenticationCallbackEndpoint,
282
334
  :developer_sns_credentials => :developerSnsCredentials,
335
+ :client_per_developer => :clientPerDeveloper,
283
336
  :created_at => :createdAt,
337
+ :direct_authorization_endpoint_enabled => :directAuthorizationEndpointEnabled,
338
+ :direct_jwks_endpoint_enabled => :directJwksEndpointEnabled,
339
+ :direct_revocation_endpoint_enabled => :directRevocationEndpointEnabled,
340
+ :direct_token_endpoint_enabled => :directTokenEndpointEnabled,
341
+ :direct_user_info_endpoint_enabled => :directUserInfoEndpointEnabled,
284
342
  :id_tokn_duration => :idTokenDuration,
285
343
  :jwks_uri => :jwksUri,
286
344
  :modified_at => :modifiedAt,
@@ -315,6 +373,11 @@ module Authlete
315
373
  send("#{attr}=", 0)
316
374
  end
317
375
 
376
+ # Set default values to boolean attributes.
377
+ BOOLEAN_ATTRIBUTES.each do |attr|
378
+ send("#{attr}=", false)
379
+ end
380
+
318
381
  # Set default values to string attributes.
319
382
  STRING_ATTRIBUTES.each do |attr|
320
383
  send("#{attr}=", nil)
@@ -347,6 +410,7 @@ module Authlete
347
410
 
348
411
  def authlete_model_service_simple_attribute?(key)
349
412
  INTEGER_ATTRIBUTES.include?(key) or
413
+ BOOLEAN_ATTRIBUTES.include?(key) or
350
414
  STRING_ATTRIBUTES.include?(key) or
351
415
  STRING_ARRAY_ATTRIBUTES.include?(key)
352
416
  end
@@ -1,3 +1,3 @@
1
1
  module Authlete
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiko Kawasaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-08 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client