authlete 1.0.8 → 1.0.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 636ed03f6688ad8391bafd9dccf3cec1900c8079
4
- data.tar.gz: 37b0f3e27da200e51bda5e9392c8885a22713a0d
3
+ metadata.gz: 713ab0df2e3b9624dad8599f69635dc2cbc8cda5
4
+ data.tar.gz: 7e30ae3d9135986abe5fe6d1cbaabc6080ee0516
5
5
  SHA512:
6
- metadata.gz: 647876ae68893aadea28627420cb01fad8a809356c9d6686d646fd443ca3c81d7b4dc20380347cf6ae4d787611a29c7b0093988efeb56e0ddeef849b82313e12
7
- data.tar.gz: 5230ea5040c6c0a83747ac71717353eaccf5fcf420cbe02e8e87bd9bf3dd470cace139f49da10265fc005d229d79b6e5437203b3a2420248a27d4638a46a2cf3
6
+ metadata.gz: 657b4c4f6c14a4346c681941b94a16b0114981ddc9eb797d279b1cd86ececd44a61cb17bd237abdc3269d914659108c155d6a074742bc34aef0d8bf99f788453
7
+ data.tar.gz: e26022af601c334dc43d263d24cad873299a51a88518256a19df0f8cc9d93f42242d61789eadfee31babb4e2f0ed2a797a0ea4ca5d3f95fc2c328939456cfa49
data/README.md CHANGED
@@ -3,7 +3,7 @@ authlete-ruby-gem
3
3
 
4
4
  # Overview
5
5
 
6
- Ruby library for [Authlete Web APIs](https://www.authlete.com/authlete_web_apis.html).
6
+ Ruby library for [Authlete Web APIs](https://docs.authlete.com/).
7
7
 
8
8
 
9
9
  # License
data/authlete.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Takahiko Kawasaki"]
10
10
  spec.email = ["taka@authlete.com"]
11
11
  spec.summary = "A library for Authlete Web APIs"
12
- spec.description = "A library for Authlete Web APIs. See https://www.authlete.com/documents/api for details."
12
+ spec.description = "A library for Authlete Web APIs. See https://docs.authlete.com/ for details."
13
13
  spec.homepage = "https://www.authlete.com/"
14
14
  spec.license = "Apache License, Version 2.0"
15
15
 
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "rest-client", "~> 1.7.2"
21
+ spec.add_runtime_dependency "rest-client", ">= 1.7.2"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.7"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
data/lib/authlete/api.rb CHANGED
@@ -444,7 +444,7 @@ module Authlete
444
444
  def refresh_client_secret(client_identifier)
445
445
  hash = call_api_service(:get, "/api/client/secret/refresh/#{client_identifier}", nil, nil)
446
446
 
447
- Authlete::Model::ClientSecretRefreshResponse.new(hash)
447
+ Authlete::Model::Response::ClientSecretRefreshResponse.new(hash)
448
448
  end
449
449
 
450
450
  # Call Authlete's /api/client/secret/update/{clientIdentifier} API.
@@ -455,11 +455,11 @@ module Authlete
455
455
  # On success, an instance of Authlete::Model::Response::ClientSecretUpdateResponse is returned.
456
456
  # On error, Authlete::Exception is raised.
457
457
  def update_client_secret(client_identifier, client_secret)
458
- request = Authlete::Model::ClientSecretUpdateRequest.new(:client_secret => client_secret)
458
+ request = Authlete::Model::Request::ClientSecretUpdateRequest.new(:client_secret => client_secret)
459
459
 
460
460
  hash = call_api_json_service("/api/client/secret/update/#{client_identifier}", request.to_hash)
461
461
 
462
- Authlete::Model::ClientSecretUpdateResponse.new(hash)
462
+ Authlete::Model::Response::ClientSecretUpdateResponse.new(hash)
463
463
  end
464
464
 
465
465
  # Call Authlete's /api/client/authorization/get/list API.
@@ -471,7 +471,7 @@ module Authlete
471
471
  def get_client_authorization_list(request)
472
472
  hash = call_api_json_service("/api/client/authorization/get/list", to_hash(request))
473
473
 
474
- Authlete::Model::ClientAuthorizationListResponse.new(hash)
474
+ Authlete::Model::Response::ClientAuthorizationListResponse.new(hash)
475
475
  end
476
476
 
477
477
  # Call Authlete's /api/client/authorization/update API.
@@ -490,7 +490,7 @@ module Authlete
490
490
  #
491
491
  # On error, Authlete::Exception is raised.
492
492
  def delete_client_authorization(client_id, subject)
493
- request = Authlete::Model::ClientAuthorizationDeleteRequest.new(:subject => subject)
493
+ request = Authlete::Model::Request::ClientAuthorizationDeleteRequest.new(:subject => subject)
494
494
 
495
495
  call_api_json_service("/api/client/authorization/delete/#{client_id}", request.to_hash)
496
496
  end
@@ -516,7 +516,7 @@ module Authlete
516
516
  def standard_introspection(request)
517
517
  hash = call_api_json_service('/api/auth/introspection/standard', to_hash(request))
518
518
 
519
- Authlete::Model::Response::StandardIntrospectionResopnse.new(hash)
519
+ Authlete::Model::Response::StandardIntrospectionResponse.new(hash)
520
520
  end
521
521
 
522
522
  # Call Authlete's /api/auth/revocation API.
@@ -528,7 +528,7 @@ module Authlete
528
528
  def revocation(request)
529
529
  hash = call_api_json_service("/api/auth/revocation", to_hash(request))
530
530
 
531
- Authlete::Model::RevocationResponse.new(hash)
531
+ Authlete::Model::Response::RevocationResponse.new(hash)
532
532
  end
533
533
 
534
534
  # Call Authlete's /api/auth/userinfo API.
@@ -540,7 +540,7 @@ module Authlete
540
540
  def user_info(request)
541
541
  hash = call_api_json_service("/api/auth/userinfo", to_hash(request))
542
542
 
543
- Authlete::Model::UserInfoResponse.new(hash)
543
+ Authlete::Model::Response::UserInfoResponse.new(hash)
544
544
  end
545
545
 
546
546
  # Call Authlete's /api/auth/userinfo/issue API.
@@ -552,7 +552,7 @@ module Authlete
552
552
  def user_info_issue(request)
553
553
  hash = call_api_json_service("/api/auth/userinfo/issue", to_hash(request))
554
554
 
555
- Authlete::Model::UserInfoIssueResponse.new(hash)
555
+ Authlete::Model::Response::UserInfoIssueResponse.new(hash)
556
556
  end
557
557
 
558
558
  # Call Authlete's /api/service/jwks/get API.
@@ -602,7 +602,7 @@ module Authlete
602
602
  def token_create(request)
603
603
  hash = call_api_json_service("/api/auth/token/create", to_hash(request))
604
604
 
605
- Authlete::Model::TokenCreateResponse.new(hash)
605
+ Authlete::Model::Response::TokenCreateResponse.new(hash)
606
606
  end
607
607
 
608
608
  # Call Authlete's /api/auth/token/update API.
@@ -614,7 +614,7 @@ module Authlete
614
614
  def token_update(request)
615
615
  hash = call_api_json_service("/api/auth/token/update", to_hash(request))
616
616
 
617
- Authlete::Model::TokenUpdateResponse.new(hash)
617
+ Authlete::Model::Response::TokenUpdateResponse.new(hash)
618
618
  end
619
619
 
620
620
  # Call Authlete's /api/client/granted_scopes/get/{clientId} API.
@@ -625,7 +625,7 @@ module Authlete
625
625
  # On success, an instance of Authlete::Model::Response::GrantedScopesGetResponse is returned.
626
626
  # On error, Authlete::Exception is raised.
627
627
  def get_granted_scopes(client_id, subject)
628
- request = Authlete::Model::GrantedScopesRequest.new(:subject => subject)
628
+ request = Authlete::Model::Request::GrantedScopesRequest.new(:subject => subject)
629
629
 
630
630
  hash = call_api_json_service("/api/client/granted_scopes/get/#{client_id}", request.to_hash)
631
631
 
@@ -639,7 +639,7 @@ module Authlete
639
639
  #
640
640
  # On error, Authlete::Exception is raised.
641
641
  def delete_granted_scopes(client_id, subject)
642
- request = Authlete::Model::GrantedScopesRequest.new(:subject => subject)
642
+ request = Authlete::Model::Request::GrantedScopesRequest.new(:subject => subject)
643
643
 
644
644
  call_api_json_service("/api/client/granted_scopes/delete/#{client_id}", request.to_hash)
645
645
  end
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.0.8"
19
+ VERSION = "1.0.9"
20
20
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlete
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiko Kawasaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-18 00:00:00.000000000 Z
11
+ date: 2018-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.7.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.7.2
27
27
  - !ruby/object:Gem::Dependency
@@ -52,8 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
- description: A library for Authlete Web APIs. See https://www.authlete.com/documents/api
56
- for details.
55
+ description: A library for Authlete Web APIs. See https://docs.authlete.com/ for details.
57
56
  email:
58
57
  - taka@authlete.com
59
58
  executables: []