authlete 1.37.0 → 1.39.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +5 -5
  2. data/authlete.gemspec +1 -2
  3. data/lib/authlete/model/service.rb +7 -1
  4. data/lib/authlete/version.rb +1 -1
  5. metadata +7 -170
  6. data/test/authlete/model/request/test_authentication-callback-request.rb +0 -100
  7. data/test/authlete/model/request/test_authorization-fail-request.rb +0 -67
  8. data/test/authlete/model/request/test_authorization-issue-request.rb +0 -94
  9. data/test/authlete/model/request/test_authorization-request.rb +0 -57
  10. data/test/authlete/model/request/test_backchannel-authentication-complete-request.rb +0 -102
  11. data/test/authlete/model/request/test_backchannel-authentication-fail-request.rb +0 -71
  12. data/test/authlete/model/request/test_backchannel-authentication-issue-request.rb +0 -57
  13. data/test/authlete/model/request/test_backchannel-authentication-request.rb +0 -75
  14. data/test/authlete/model/request/test_client-authorization-delete-request.rb +0 -57
  15. data/test/authlete/model/request/test_client-authorization-get-list-request.rb +0 -71
  16. data/test/authlete/model/request/test_client-authorization-update-request.rb +0 -63
  17. data/test/authlete/model/request/test_client-registration-request.rb +0 -68
  18. data/test/authlete/model/request/test_device-authorization-request.rb +0 -75
  19. data/test/authlete/model/request/test_device-complete-request.rb +0 -102
  20. data/test/authlete/model/request/test_device-verification-request.rb +0 -57
  21. data/test/authlete/model/request/test_granted-scopes-request.rb +0 -57
  22. data/test/authlete/model/request/test_introspection-request.rb +0 -79
  23. data/test/authlete/model/request/test_pushed-auth-req-request.rb +0 -75
  24. data/test/authlete/model/request/test_revocation-request.rb +0 -67
  25. data/test/authlete/model/request/test_standard-introspection-request.rb +0 -57
  26. data/test/authlete/model/request/test_token-create-request.rb +0 -110
  27. data/test/authlete/model/request/test_token-fail-request.rb +0 -63
  28. data/test/authlete/model/request/test_token-issue-request.rb +0 -70
  29. data/test/authlete/model/request/test_token-request.rb +0 -94
  30. data/test/authlete/model/request/test_token-revoke-request.rb +0 -71
  31. data/test/authlete/model/request/test_token-update-request.rb +0 -82
  32. data/test/authlete/model/request/test_user-info-issue-request.rb +0 -67
  33. data/test/authlete/model/request/test_user-info-request.rb +0 -75
  34. data/test/authlete/model/response/test_access-token.rb +0 -101
  35. data/test/authlete/model/response/test_authorization-fail-response.rb +0 -68
  36. data/test/authlete/model/response/test_authorization-issue-response.rb +0 -92
  37. data/test/authlete/model/response/test_authorization-response.rb +0 -145
  38. data/test/authlete/model/response/test_authorized-client-list-response.rb +0 -83
  39. data/test/authlete/model/response/test_backchannel-authentication-complete-response.rb +0 -132
  40. data/test/authlete/model/response/test_backchannel-authentication-fail-response.rb +0 -68
  41. data/test/authlete/model/response/test_backchannel-authentication-issue-response.rb +0 -80
  42. data/test/authlete/model/response/test_backchannel-authentication-response.rb +0 -156
  43. data/test/authlete/model/response/test_client-list-response.rb +0 -79
  44. data/test/authlete/model/response/test_client-secret-refresh-response.rb +0 -68
  45. data/test/authlete/model/response/test_client-secret-update-response.rb +0 -68
  46. data/test/authlete/model/response/test_device-authorization-response.rb +0 -140
  47. data/test/authlete/model/response/test_device-complete-response.rb +0 -64
  48. data/test/authlete/model/response/test_device-verification-response.rb +0 -112
  49. data/test/authlete/model/response/test_granted-scopes-get-response.rb +0 -84
  50. data/test/authlete/model/response/test_introspection-response.rb +0 -127
  51. data/test/authlete/model/response/test_pushed-auth-req-response.rb +0 -76
  52. data/test/authlete/model/response/test_revocation-response.rb +0 -68
  53. data/test/authlete/model/response/test_service-list-response.rb +0 -72
  54. data/test/authlete/model/response/test_standard-introspection-response.rb +0 -68
  55. data/test/authlete/model/response/test_token-create-response.rb +0 -107
  56. data/test/authlete/model/response/test_token-fail-response.rb +0 -68
  57. data/test/authlete/model/response/test_token-issue-response.rb +0 -127
  58. data/test/authlete/model/response/test_token-list-response.rb +0 -84
  59. data/test/authlete/model/response/test_token-response.rb +0 -147
  60. data/test/authlete/model/response/test_token-revoke-response.rb +0 -63
  61. data/test/authlete/model/response/test_token-update-response.rb +0 -87
  62. data/test/authlete/model/response/test_user-info-issue-response.rb +0 -68
  63. data/test/authlete/model/response/test_user-info-response.rb +0 -107
  64. data/test/authlete/model/test_client-extension.rb +0 -98
  65. data/test/authlete/model/test_client.rb +0 -604
  66. data/test/authlete/model/test_hsk.rb +0 -108
  67. data/test/authlete/model/test_named-uri.rb +0 -83
  68. data/test/authlete/model/test_pair.rb +0 -83
  69. data/test/authlete/model/test_property.rb +0 -88
  70. data/test/authlete/model/test_result.rb +0 -68
  71. data/test/authlete/model/test_scope.rb +0 -104
  72. data/test/authlete/model/test_service-owner.rb +0 -80
  73. data/test/authlete/model/test_service.rb +0 -896
  74. data/test/authlete/model/test_sns-credentials.rb +0 -88
  75. data/test/authlete/model/test_tagged-value.rb +0 -83
  76. data/test/authlete/model/test_trust-anchor.rb +0 -84
  77. data/test/authlete/test_exception.rb +0 -70
  78. data/test/authlete/types/test_application-type.rb +0 -44
  79. data/test/authlete/types/test_client-auth-method.rb +0 -64
  80. data/test/authlete/types/test_delivery-mode.rb +0 -48
  81. data/test/authlete/types/test_grant-type.rb +0 -72
  82. data/test/authlete/types/test_jwealg.rb +0 -104
  83. data/test/authlete/types/test_jweenc.rb +0 -60
  84. data/test/authlete/types/test_jwsalg.rb +0 -96
  85. data/test/authlete/types/test_response-type.rb +0 -68
  86. data/test/authlete/types/test_subject-type.rb +0 -44
@@ -1,60 +0,0 @@
1
- # :nodoc:
2
- #
3
- # Copyright (C) 2022 Authlete, Inc.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
-
18
- require 'authlete'
19
- require 'minitest/autorun'
20
-
21
-
22
- class JWEEncTest < Minitest::Test
23
- def do_test(input, expected)
24
- output = Authlete::Types::JWEEnc::constant_get(input)
25
-
26
- if expected.nil?
27
- assert_nil output
28
- else
29
- assert_equal expected, output
30
- end
31
- end
32
-
33
- def test_unknown
34
- do_test('UNKNOWN', nil)
35
- end
36
-
37
- def test_a128cbc_hs256
38
- do_test('A128CBC_HS256', 'A128CBC-HS256')
39
- end
40
-
41
- def test_a192cbc_hs384
42
- do_test('A192CBC_HS384', 'A192CBC-HS384')
43
- end
44
-
45
- def test_a256cbc_hs512
46
- do_test('A256CBC_HS512', 'A256CBC-HS512')
47
- end
48
-
49
- def test_a128gcm
50
- do_test('A128GCM', 'A128GCM')
51
- end
52
-
53
- def test_a192gcm
54
- do_test('A192GCM', 'A192GCM')
55
- end
56
-
57
- def test_a256gcm
58
- do_test('A256GCM', 'A256GCM')
59
- end
60
- end
@@ -1,96 +0,0 @@
1
- # :nodoc:
2
- #
3
- # Copyright (C) 2022 Authlete, Inc.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
-
18
- require 'authlete'
19
- require 'minitest/autorun'
20
-
21
-
22
- class JWSAlgTest < Minitest::Test
23
- def do_test(input, expected)
24
- output = Authlete::Types::JWSAlg::constant_get(input)
25
-
26
- if expected.nil?
27
- assert_nil output
28
- else
29
- assert_equal expected, output
30
- end
31
- end
32
-
33
- def test_unknown
34
- do_test('UNKNOWN', nil)
35
- end
36
-
37
- def test_none
38
- do_test('NONE', 'none')
39
- end
40
-
41
- def test_hs256
42
- do_test('HS256', 'HS256')
43
- end
44
-
45
- def test_hs384
46
- do_test('HS384', 'HS384')
47
- end
48
-
49
- def test_hs512
50
- do_test('HS512', 'HS512')
51
- end
52
-
53
- def test_rs256
54
- do_test('RS256', 'RS256')
55
- end
56
-
57
- def test_rs384
58
- do_test('RS384', 'RS384')
59
- end
60
-
61
- def test_rs512
62
- do_test('RS512', 'RS512')
63
- end
64
-
65
- def test_es256
66
- do_test('ES256', 'ES256')
67
- end
68
-
69
- def test_es384
70
- do_test('ES384', 'ES384')
71
- end
72
-
73
- def test_es512
74
- do_test('ES512', 'ES512')
75
- end
76
-
77
- def test_ps256
78
- do_test('PS256', 'PS256')
79
- end
80
-
81
- def test_ps384
82
- do_test('PS384', 'PS384')
83
- end
84
-
85
- def test_ps512
86
- do_test('PS512', 'PS512')
87
- end
88
-
89
- def test_es256k
90
- do_test('ES256K', 'ES256K')
91
- end
92
-
93
- def test_eddsa
94
- do_test('EdDSA', 'EdDSA')
95
- end
96
- end
@@ -1,68 +0,0 @@
1
- # :nodoc:
2
- #
3
- # Copyright (C) 2022 Authlete, Inc.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
-
18
- require 'authlete'
19
- require 'minitest/autorun'
20
-
21
-
22
- class ResponseTypeTest < Minitest::Test
23
- def do_test(input, expected)
24
- output = Authlete::Types::ResponseType::constant_get(input)
25
-
26
- if expected.nil?
27
- assert_nil output
28
- else
29
- assert_equal expected, output
30
- end
31
- end
32
-
33
- def test_unknown
34
- do_test('UNKNOWN', nil)
35
- end
36
-
37
- def test_none
38
- do_test('NONE', 'none')
39
- end
40
-
41
- def test_code
42
- do_test('CODE', 'code')
43
- end
44
-
45
- def test_token
46
- do_test('TOKEN', 'token')
47
- end
48
-
49
- def test_id_token
50
- do_test('ID_TOKEN', 'id_token')
51
- end
52
-
53
- def test_code_token
54
- do_test('CODE_TOKEN', 'code token')
55
- end
56
-
57
- def test_code_id_token
58
- do_test('CODE_ID_TOKEN', 'code id_token')
59
- end
60
-
61
- def test_id_token_token
62
- do_test('ID_TOKEN_TOKEN', 'id_token token')
63
- end
64
-
65
- def test_code_id_token_token
66
- do_test('CODE_ID_TOKEN_TOKEN', 'code id_token token')
67
- end
68
- end
@@ -1,44 +0,0 @@
1
- # :nodoc:
2
- #
3
- # Copyright (C) 2022 Authlete, Inc.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
-
18
- require 'authlete'
19
- require 'minitest/autorun'
20
-
21
-
22
- class SubjectTypeTest < Minitest::Test
23
- def do_test(input, expected)
24
- output = Authlete::Types::SubjectType::constant_get(input)
25
-
26
- if expected.nil?
27
- assert_nil output
28
- else
29
- assert_equal expected, output
30
- end
31
- end
32
-
33
- def test_unknown
34
- do_test('UNKNOWN', nil)
35
- end
36
-
37
- def test_public
38
- do_test('PUBLIC', 'public')
39
- end
40
-
41
- def test_pairwise
42
- do_test('PAIRWISE', 'pairwise')
43
- end
44
- end