authlete 1.0.23 → 1.0.24

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: ad28a48d4a810e9518ef0d5ab526020b44009e3b
4
- data.tar.gz: 5aa75eb7364fe2d1685a9f0d908b6dc868ab61fc
3
+ metadata.gz: ec596fd6d870c0035ee2425fa46196ac1b52a9d6
4
+ data.tar.gz: 059948b5a01074063771f602d1860c4d8c0f0c3f
5
5
  SHA512:
6
- metadata.gz: c72e4e0aadffa8e648d3ffdd6ab5f8d9d3ebe99ebd66cd6d7ef4ed628af096e6d2a64b93cd6160f1e6f726bc8fcb655cd9fe86fdfbe1be8de178bbff6474c71b
7
- data.tar.gz: b7930844955f11598cbec883c8ac20da76c48f7a974f4816a45aaa811be2f735ec0c853f1b14f8c9306994ef46e35e8f7008a72c64f3247af0f82e4b6b1eeb6f
6
+ metadata.gz: bebb3f3c4d4426362ca20d5a04432520c2aacad9067fe5e7070bdd1c8c46d372c5be4ae0d5141933f468810a4524c27b2208ef090607d0b94cfc35db4329602c
7
+ data.tar.gz: e00b22aa7280f7145f3752b1c89ac441de7a98df45f471cef88538049cc9cb28359d90cee4cddbf87feb58d88b1d6a4b81b2df2ece252ad8b6eb4c4dc4e09d04
@@ -90,12 +90,14 @@ module Authlete
90
90
  def execute(parameters)
91
91
  begin
92
92
  return RestClient::Request.new(parameters).execute
93
+ rescue RestClient::Exception => e
94
+ raise on_rest_client_exception(e)
93
95
  rescue => e
94
- raise create_api_exception(e)
96
+ raise on_general_exception(e)
95
97
  end
96
98
  end
97
99
 
98
- def create_api_exception(exception)
100
+ def on_rest_client_exception(exception)
99
101
  message = exception.message
100
102
  response = exception.response
101
103
 
@@ -146,6 +148,10 @@ module Authlete
146
148
  body.length == 0 ? nil : body
147
149
  end
148
150
 
151
+ def on_general_exception(exception)
152
+ Authlete::Exception.new(:message => exception.message)
153
+ end
154
+
149
155
  def call_api_service_owner(method, path, content_type, payload)
150
156
  call_api(method, path, content_type, payload, @service_owner_api_key, @service_owner_api_secret)
151
157
  end
@@ -588,6 +588,19 @@ module Authlete
588
588
  alias_method :traditional_request_object_processing_applied, :traditionalRequestObjectProcessingApplied
589
589
  alias_method :traditional_request_object_processing_applied=, :traditionalRequestObjectProcessingApplied=
590
590
 
591
+ # Flag of whether claims specified by shortcut scopes (e.g. profile)
592
+ # are included in the issued ID token only when no access token is issued.
593
+ # (Boolean)
594
+ attr_accessor :claimShortcutRestrictive
595
+ alias_method :claim_shortcut_restrictive, :claimShortcutRestrictive
596
+ alias_method :claim_shortcut_restrictive=, :claimShortcutRestrictive=
597
+
598
+ # Flag of whether requests that request no scope are rejected or not.
599
+ # (Boolean)
600
+ attr_accessor :scopeRequired
601
+ alias_method :scope_required, :scopeRequired
602
+ alias_method :scope_required=, :scopeRequired=
603
+
591
604
  private
592
605
 
593
606
  # Integer attributes.
@@ -602,14 +615,14 @@ module Authlete
602
615
  # Boolean attributes.
603
616
  BOOLEAN_ATTRIBUTES = ::Set.new([
604
617
  :backchannelBindingMessageRequiredInFapi, :backchannelUserCodeParameterSupported,
605
- :clientIdAliasEnabled,
618
+ :claimShortcutRestrictive, :clientIdAliasEnabled,
606
619
  :directAuthorizationEndpointEnabled, :directIntrospectionEndpointEnabled,
607
620
  :directJwksEndpointEnabled, :directRevocationEndpointEnabled, :directTokenEndpointEnabled,
608
621
  :directUserInfoEndpointEnabled, :errorDescriptionOmitted, :errorUriOmitted,
609
622
  :mutualTlsValidatePkiCertChain, :pkceRequired, :pkceS256Required, :refreshTokenKept,
610
623
  :singleAccessTokenPerSubject, :tlsClientCertificateBoundAccessTokens,
611
624
  :dynamicRegistrationSupported, :missingClientIdAllowed, :refreshTokenDurationKept,
612
- :parRequired, :requestObjectRequired, :traditionalRequestObjectProcessingApplied
625
+ :parRequired, :requestObjectRequired, :scopeRequired, :traditionalRequestObjectProcessingApplied
613
626
  ])
614
627
 
615
628
  # String attributes.
@@ -739,7 +752,9 @@ module Authlete
739
752
  :refresh_token_duration_kept => :refreshTokenDurationKept,
740
753
  :par_required => :parRequired,
741
754
  :request_object_required => :requestObjectRequired,
742
- :traditional_request_object_processing_applied => :traditionalRequestObjectProcessingApplied
755
+ :traditional_request_object_processing_applied => :traditionalRequestObjectProcessingApplied,
756
+ :claim_shortcut_restrictive => :claimShortcutRestrictive,
757
+ :scope_required => :scopeRequired
743
758
  }
744
759
 
745
760
  # The constructor
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.0.23"
19
+ VERSION = "1.0.24"
20
20
  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: 1.0.23
4
+ version: 1.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiko Kawasaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-01 00:00:00.000000000 Z
11
+ date: 2020-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client