authlete 1.30.0 → 1.31.0
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 +4 -4
- data/lib/authlete/model/service.rb +6 -0
- data/lib/authlete/version.rb +1 -1
- data/test/authlete/model/test_service.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b8bef7f2f9497453b9826f3d939da50a901bc476daf85c0d7428bd8aa1aaded
|
|
4
|
+
data.tar.gz: 50d52b0c5193cd7aa5610abead42bb9cd29b9f4098ac1f7dd1727ce027f9ffaa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6af80ebd79b50ec3856ec53ae123cfc026f150ff061c3f2c8bfcf6415d41cedf7952806afb77e13657e5f316899ce9d3b65b1ce5158315cc39cccc341ae42f2c
|
|
7
|
+
data.tar.gz: 22d15dcfe1c9517f3c85cfb3af32358a80da85650735f5d354b5334699a4b0fa0ee27235b94dc40db3609d2810a6d737bc996073cf99369b6f9c5761460da795
|
|
@@ -615,6 +615,10 @@ module Authlete
|
|
|
615
615
|
alias_method :supported_documents_check_methods, :supportedDocumentsCheckMethods
|
|
616
616
|
alias_method :supported_documents_check_methods=, :supportedDocumentsCheckMethods=
|
|
617
617
|
|
|
618
|
+
attr_accessor :idTokenAudType
|
|
619
|
+
alias_method :id_token_aud_type, :idTokenAudType
|
|
620
|
+
alias_method :id_token_aud_type=, :idTokenAudType=
|
|
621
|
+
|
|
618
622
|
private
|
|
619
623
|
|
|
620
624
|
def defaults
|
|
@@ -771,6 +775,7 @@ module Authlete
|
|
|
771
775
|
dcrDuplicateSoftwareIdBlocked: false,
|
|
772
776
|
openidDroppedOnRefreshWithoutOfflineAccess: false,
|
|
773
777
|
supportedDocumentsCheckMethods: nil,
|
|
778
|
+
idTokenAudType: nil,
|
|
774
779
|
}
|
|
775
780
|
end
|
|
776
781
|
|
|
@@ -927,6 +932,7 @@ module Authlete
|
|
|
927
932
|
@dcrDuplicateSoftwareIdBlocked = hash[:dcrDuplicateSoftwareIdBlocked]
|
|
928
933
|
@openidDroppedOnRefreshWithoutOfflineAccess = hash[:openidDroppedOnRefreshWithoutOfflineAccess]
|
|
929
934
|
@supportedDocumentsCheckMethods = hash[:supportedDocumentsCheckMethods]
|
|
935
|
+
@idTokenAudType = hash[:idTokenAudType]
|
|
930
936
|
|
|
931
937
|
end
|
|
932
938
|
|
data/lib/authlete/version.rb
CHANGED
|
@@ -196,6 +196,7 @@ class ServiceTest < Minitest::Test
|
|
|
196
196
|
DCR_DUPLICATE_SOFTWARE_ID_BLOCKED = false
|
|
197
197
|
OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS = false
|
|
198
198
|
SUPPORTED_DOCUMENTS_CHECK_METHODS = ['supported', 'documents']
|
|
199
|
+
ID_TOKEN_AUD_TYPE = '<id-token-aud-type>'
|
|
199
200
|
|
|
200
201
|
def generate_json
|
|
201
202
|
return <<~JSON
|
|
@@ -351,7 +352,8 @@ class ServiceTest < Minitest::Test
|
|
|
351
352
|
"federationConfigurationDuration": 100,
|
|
352
353
|
"dcrDuplicateSoftwareIdBlocked": false,
|
|
353
354
|
"openidDroppedOnRefreshWithoutOfflineAccess": false,
|
|
354
|
-
"supportedDocumentsCheckMethods": ["supported","documents"]
|
|
355
|
+
"supportedDocumentsCheckMethods": ["supported","documents"],
|
|
356
|
+
"idTokenAudType": "<id-token-aud-type>"
|
|
355
357
|
}
|
|
356
358
|
JSON
|
|
357
359
|
|
|
@@ -511,7 +513,8 @@ class ServiceTest < Minitest::Test
|
|
|
511
513
|
federationConfigurationDuration: 100,
|
|
512
514
|
dcrDuplicateSoftwareIdBlocked: false,
|
|
513
515
|
openidDroppedOnRefreshWithoutOfflineAccess: false,
|
|
514
|
-
supportedDocumentsCheckMethods: ['supported', 'documents']
|
|
516
|
+
supportedDocumentsCheckMethods: ['supported', 'documents'],
|
|
517
|
+
idTokenAudType: '<id-token-aud-type>'
|
|
515
518
|
}
|
|
516
519
|
end
|
|
517
520
|
|
|
@@ -667,6 +670,7 @@ class ServiceTest < Minitest::Test
|
|
|
667
670
|
obj.dcr_duplicate_software_id_blocked = DCR_DUPLICATE_SOFTWARE_ID_BLOCKED
|
|
668
671
|
obj.openidDroppedOnRefreshWithoutOfflineAccess = OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS
|
|
669
672
|
obj.supported_documents_check_methods = SUPPORTED_DOCUMENTS_CHECK_METHODS
|
|
673
|
+
obj.id_token_aud_type = ID_TOKEN_AUD_TYPE
|
|
670
674
|
end
|
|
671
675
|
|
|
672
676
|
def match(obj)
|
|
@@ -837,6 +841,7 @@ class ServiceTest < Minitest::Test
|
|
|
837
841
|
assert_equal DCR_DUPLICATE_SOFTWARE_ID_BLOCKED, obj.dcrDuplicateSoftwareIdBlocked
|
|
838
842
|
assert_equal OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS, obj.openidDroppedOnRefreshWithoutOfflineAccess
|
|
839
843
|
assert_equal SUPPORTED_DOCUMENTS_CHECK_METHODS, obj.supported_documents_check_methods
|
|
844
|
+
assert_equal ID_TOKEN_AUD_TYPE, obj.id_token_aud_type
|
|
840
845
|
end
|
|
841
846
|
|
|
842
847
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: authlete
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.31.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Takahiko Kawasaki
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2023-04-
|
|
13
|
+
date: 2023-04-19 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rest-client
|