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 +4 -4
- data/lib/authlete/api.rb +8 -2
- data/lib/authlete/model/service.rb +18 -3
- data/lib/authlete/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec596fd6d870c0035ee2425fa46196ac1b52a9d6
|
4
|
+
data.tar.gz: 059948b5a01074063771f602d1860c4d8c0f0c3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bebb3f3c4d4426362ca20d5a04432520c2aacad9067fe5e7070bdd1c8c46d372c5be4ae0d5141933f468810a4524c27b2208ef090607d0b94cfc35db4329602c
|
7
|
+
data.tar.gz: e00b22aa7280f7145f3752b1c89ac441de7a98df45f471cef88538049cc9cb28359d90cee4cddbf87feb58d88b1d6a4b81b2df2ece252ad8b6eb4c4dc4e09d04
|
data/lib/authlete/api.rb
CHANGED
@@ -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
|
96
|
+
raise on_general_exception(e)
|
95
97
|
end
|
96
98
|
end
|
97
99
|
|
98
|
-
def
|
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
|
data/lib/authlete/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|