authlete 1.3.0 → 1.4.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
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: b21d11f2544354dc2bb87ba83acf3f985a7e086d
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c448e654db020f2061929ae30876635d657fbbb5
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e85e7cc3f2b6207c86d58ae854c94025bd1107e3c818ebec6a88cc1ae98dbd4cfc688bcc7cfcdf8730e628963e9dbdbe6b3f26f85e0ecb00737d626e964bae07
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: ab1d9fb25251aad9fe904cef0f14d56230e56a15d11894b51bf172a1c282c3190fe5485ca4a898d4b394a3747c2e18158187891d2174137cf579ee040d3fa41b
         
     | 
| 
         @@ -275,9 +275,9 @@ module Authlete 
     | 
|
| 
       275 
275 
     | 
    
         
             
                  alias_method  :registration_access_token_hash,  :registrationAccessTokenHash
         
     | 
| 
       276 
276 
     | 
    
         
             
                  alias_method  :registration_access_token_hash=, :registrationAccessTokenHash=
         
     | 
| 
       277 
277 
     | 
    
         | 
| 
       278 
     | 
    
         
            -
                  attr_accessor : 
     | 
| 
       279 
     | 
    
         
            -
                  alias_method  : 
     | 
| 
       280 
     | 
    
         
            -
                  alias_method  : 
     | 
| 
      
 278 
     | 
    
         
            +
                  attr_accessor :authorizationDetailsTypes
         
     | 
| 
      
 279 
     | 
    
         
            +
                  alias_method  :authorization_details_types,  :authorizationDetailsTypes
         
     | 
| 
      
 280 
     | 
    
         
            +
                  alias_method  :authorization_details_types=, :authorizationDetailsTypes=
         
     | 
| 
       281 
281 
     | 
    
         | 
| 
       282 
282 
     | 
    
         
             
                  attr_accessor :parRequired
         
     | 
| 
       283 
283 
     | 
    
         
             
                  alias_method  :par_required,  :parRequired
         
     | 
| 
         @@ -360,7 +360,7 @@ module Authlete 
     | 
|
| 
       360 
360 
     | 
    
         
             
                      bcUserCodeRequired:                    false,
         
     | 
| 
       361 
361 
     | 
    
         
             
                      dynamicallyRegistered:                 false,
         
     | 
| 
       362 
362 
     | 
    
         
             
                      registrationAccessTokenHash:           nil,
         
     | 
| 
       363 
     | 
    
         
            -
                       
     | 
| 
      
 363 
     | 
    
         
            +
                      authorizationDetailsTypes:             nil,
         
     | 
| 
       364 
364 
     | 
    
         
             
                      parRequired:                           false,
         
     | 
| 
       365 
365 
     | 
    
         
             
                      requestObjectRequired:                 false,
         
     | 
| 
       366 
366 
     | 
    
         
             
                      attributes:                            nil
         
     | 
| 
         @@ -435,7 +435,7 @@ module Authlete 
     | 
|
| 
       435 
435 
     | 
    
         
             
                    @bcUserCodeRequired                    = hash[:bcUserCodeRequired]
         
     | 
| 
       436 
436 
     | 
    
         
             
                    @dynamicallyRegistered                 = hash[:dynamicallyRegistered]
         
     | 
| 
       437 
437 
     | 
    
         
             
                    @registrationAccessTokenHash           = hash[:registrationAccessTokenHash]
         
     | 
| 
       438 
     | 
    
         
            -
                    @ 
     | 
| 
      
 438 
     | 
    
         
            +
                    @authorizationDetailsTypes             = hash[:authorizationDetailsTypes]
         
     | 
| 
       439 
439 
     | 
    
         
             
                    @parRequired                           = hash[:parRequired]
         
     | 
| 
       440 
440 
     | 
    
         
             
                    @requestObjectRequired                 = hash[:requestObjectRequired]
         
     | 
| 
       441 
441 
     | 
    
         
             
                    @attributes                            = get_parsed_array(hash[:attributes]) { |e| Authlete::Model::Pair.parse(e) }
         
     | 
| 
         @@ -379,9 +379,9 @@ module Authlete 
     | 
|
| 
       379 
379 
     | 
    
         
             
                  alias_method  :mtls_endpoint_aliases,  :mtlsEndpointAliases
         
     | 
| 
       380 
380 
     | 
    
         
             
                  alias_method  :mtls_endpoint_aliases=, :mtlsEndpointAliases=
         
     | 
| 
       381 
381 
     | 
    
         | 
| 
       382 
     | 
    
         
            -
                  attr_accessor : 
     | 
| 
       383 
     | 
    
         
            -
                  alias_method  : 
     | 
| 
       384 
     | 
    
         
            -
                  alias_method  : 
     | 
| 
      
 382 
     | 
    
         
            +
                  attr_accessor :supportedAuthorizationDetailsTypes
         
     | 
| 
      
 383 
     | 
    
         
            +
                  alias_method  :supported_authorization_details_types,  :supportedAuthorizationDetailsTypes
         
     | 
| 
      
 384 
     | 
    
         
            +
                  alias_method  :supported_authorization_details_types=, :supportedAuthorizationDetailsTypes=
         
     | 
| 
       385 
385 
     | 
    
         | 
| 
       386 
386 
     | 
    
         
             
                  attr_accessor :supportedTrustFrameworks
         
     | 
| 
       387 
387 
     | 
    
         
             
                  alias_method  :supported_trust_frameworks,  :supportedTrustFrameworks
         
     | 
| 
         @@ -533,7 +533,7 @@ module Authlete 
     | 
|
| 
       533 
533 
     | 
    
         
             
                      userCodeLength:                            0,
         
     | 
| 
       534 
534 
     | 
    
         
             
                      pushedAuthReqEndpoint:                     nil,
         
     | 
| 
       535 
535 
     | 
    
         
             
                      mtlsEndpointAliases:                       nil,
         
     | 
| 
       536 
     | 
    
         
            -
                       
     | 
| 
      
 536 
     | 
    
         
            +
                      supportedAuthorizationDetailsTypes:        nil,
         
     | 
| 
       537 
537 
     | 
    
         
             
                      supportedTrustFrameworks:                  nil,
         
     | 
| 
       538 
538 
     | 
    
         
             
                      supportedEvidence:                         nil,
         
     | 
| 
       539 
539 
     | 
    
         
             
                      supportedIdentityDocuments:                nil,
         
     | 
| 
         @@ -644,7 +644,7 @@ module Authlete 
     | 
|
| 
       644 
644 
     | 
    
         
             
                    @userCodeLength                            = hash[:userCodeLength]
         
     | 
| 
       645 
645 
     | 
    
         
             
                    @pushedAuthReqEndpoint                     = hash[:pushedAuthReqEndpoint]
         
     | 
| 
       646 
646 
     | 
    
         
             
                    @mtlsEndpointAliases                       = get_parsed_array(hash[:mtlsEndpointAliases]) { |e| Authlete::Model::NamedUri.parse(e) }
         
     | 
| 
       647 
     | 
    
         
            -
                    @ 
     | 
| 
      
 647 
     | 
    
         
            +
                    @supportedAuthorizationDetailsTypes        = hash[:supportedAuthorizationDetailsTypes]
         
     | 
| 
       648 
648 
     | 
    
         
             
                    @supportedTrustFrameworks                  = hash[:supportedTrustFrameworks]
         
     | 
| 
       649 
649 
     | 
    
         
             
                    @supportedEvidence                         = hash[:supportedEvidence]
         
     | 
| 
       650 
650 
     | 
    
         
             
                    @supportedIdentityDocuments                = hash[:supportedIdentityDocuments]
         
     | 
    
        data/lib/authlete/version.rb
    CHANGED
    
    
| 
         @@ -109,7 +109,7 @@ class ClientTest < Minitest::Test 
     | 
|
| 
       109 
109 
     | 
    
         
             
              BC_USER_CODE_REQUIRED                      = true
         
     | 
| 
       110 
110 
     | 
    
         
             
              DYNAMICALLY_REGISTERED                     = false
         
     | 
| 
       111 
111 
     | 
    
         
             
              REGISTRATION_ACCESS_TOKEN_HASH             = '<registration-access-token-hash>'
         
     | 
| 
       112 
     | 
    
         
            -
               
     | 
| 
      
 112 
     | 
    
         
            +
              AUTHORIZATION_DETAILS_TYPES                = [ '<authorization-details-type0>', '<authorization-details-type1>' ]
         
     | 
| 
       113 
113 
     | 
    
         
             
              PAR_REQUIRED                               = false
         
     | 
| 
       114 
114 
     | 
    
         
             
              REQUEST_OBJECT_REQUIRED                    = true
         
     | 
| 
       115 
115 
     | 
    
         
             
              ATTRIBUTE_KEY                              = '<attribute0-key>'
         
     | 
| 
         @@ -192,7 +192,7 @@ class ClientTest < Minitest::Test 
     | 
|
| 
       192 
192 
     | 
    
         
             
                    "bcUserCodeRequired":                    true,
         
     | 
| 
       193 
193 
     | 
    
         
             
                    "dynamicallyRegistered":                 false,
         
     | 
| 
       194 
194 
     | 
    
         
             
                    "registrationAccessTokenHash":           "<registration-access-token-hash>",
         
     | 
| 
       195 
     | 
    
         
            -
                    " 
     | 
| 
      
 195 
     | 
    
         
            +
                    "authorizationDetailsTypes":             [ "<authorization-details-type0>", "<authorization-details-type1>" ],
         
     | 
| 
       196 
196 
     | 
    
         
             
                    "parRequired":                           false,
         
     | 
| 
       197 
197 
     | 
    
         
             
                    "requestObjectRequired":                 true,
         
     | 
| 
       198 
198 
     | 
    
         
             
                    "attributes":                            [{ "key": "<attribute0-key>", "value": "<attribute0-value>" }]
         
     | 
| 
         @@ -275,7 +275,7 @@ class ClientTest < Minitest::Test 
     | 
|
| 
       275 
275 
     | 
    
         
             
                  bcUserCodeRequired:                    true,
         
     | 
| 
       276 
276 
     | 
    
         
             
                  dynamicallyRegistered:                 false,
         
     | 
| 
       277 
277 
     | 
    
         
             
                  registrationAccessTokenHash:           '<registration-access-token-hash>',
         
     | 
| 
       278 
     | 
    
         
            -
                   
     | 
| 
      
 278 
     | 
    
         
            +
                  authorizationDetailsTypes:             [ '<authorization-details-type0>', '<authorization-details-type1>' ],
         
     | 
| 
       279 
279 
     | 
    
         
             
                  parRequired:                           false,
         
     | 
| 
       280 
280 
     | 
    
         
             
                  requestObjectRequired:                 true,
         
     | 
| 
       281 
281 
     | 
    
         
             
                  attributes:                            [{ key: '<attribute0-key>', value: '<attribute0-value>' }]
         
     | 
| 
         @@ -351,7 +351,7 @@ class ClientTest < Minitest::Test 
     | 
|
| 
       351 
351 
     | 
    
         
             
                obj.bc_user_code_required                      = BC_USER_CODE_REQUIRED
         
     | 
| 
       352 
352 
     | 
    
         
             
                obj.dynamically_registered                     = DYNAMICALLY_REGISTERED
         
     | 
| 
       353 
353 
     | 
    
         
             
                obj.registration_access_token_hash             = REGISTRATION_ACCESS_TOKEN_HASH
         
     | 
| 
       354 
     | 
    
         
            -
                obj. 
     | 
| 
      
 354 
     | 
    
         
            +
                obj.authorization_details_types                = AUTHORIZATION_DETAILS_TYPES
         
     | 
| 
       355 
355 
     | 
    
         
             
                obj.par_required                               = PAR_REQUIRED
         
     | 
| 
       356 
356 
     | 
    
         
             
                obj.request_object_required                    = REQUEST_OBJECT_REQUIRED
         
     | 
| 
       357 
357 
     | 
    
         
             
                obj.attributes                                 = ATTRIBUTES
         
     | 
| 
         @@ -433,7 +433,7 @@ class ClientTest < Minitest::Test 
     | 
|
| 
       433 
433 
     | 
    
         
             
                assert_equal BC_USER_CODE_REQUIRED,                      obj.bcUserCodeRequired
         
     | 
| 
       434 
434 
     | 
    
         
             
                assert_equal DYNAMICALLY_REGISTERED,                     obj.dynamicallyRegistered
         
     | 
| 
       435 
435 
     | 
    
         
             
                assert_equal REGISTRATION_ACCESS_TOKEN_HASH,             obj.registrationAccessTokenHash
         
     | 
| 
       436 
     | 
    
         
            -
                assert_equal  
     | 
| 
      
 436 
     | 
    
         
            +
                assert_equal AUTHORIZATION_DETAILS_TYPES,                obj.authorizationDetailsTypes
         
     | 
| 
       437 
437 
     | 
    
         
             
                assert_equal PAR_REQUIRED,                               obj.parRequired
         
     | 
| 
       438 
438 
     | 
    
         
             
                assert_equal REQUEST_OBJECT_REQUIRED,                    obj.requestObjectRequired
         
     | 
| 
       439 
439 
     | 
    
         
             
                assert_equal ATTRIBUTE_KEY,                              obj.attributes[0].key
         
     | 
| 
         @@ -125,7 +125,7 @@ class ServiceTest < Minitest::Test 
     | 
|
| 
       125 
125 
     | 
    
         
             
              MTLS_ENDPOINT_ALIAS_NAME                      = '<mtls-endpoint-alias0-name>'
         
     | 
| 
       126 
126 
     | 
    
         
             
              MTLS_ENDPOINT_ALIAS_URI                       = '<mtls-endpoint-alias0-uri>'
         
     | 
| 
       127 
127 
     | 
    
         
             
              MTLS_ENDPOINT_ALIASES                         = [ Authlete::Model::NamedUri.new(name: MTLS_ENDPOINT_ALIAS_NAME, uri: MTLS_ENDPOINT_ALIAS_URI) ]
         
     | 
| 
       128 
     | 
    
         
            -
               
     | 
| 
      
 128 
     | 
    
         
            +
              SUPPORTED_AUTHORIZATION_DETAILS_TYPES         = [ '<supported-authorization-details-type0>', '<supported-authorization-details-type1>' ]
         
     | 
| 
       129 
129 
     | 
    
         
             
              SUPPORTED_TRUST_FRAMEWORKS                    = [ '<supported-trust-framework0>', '<supported-trust-framework1>' ]
         
     | 
| 
       130 
130 
     | 
    
         
             
              SUPPORTED_EVIDENCE                            = [ '<supported-evidence0>', '<supported-evidence1>' ]
         
     | 
| 
       131 
131 
     | 
    
         
             
              SUPPORTED_IDENTITY_DOCUMENTS                  = [ '<supported-identity-document0>', '<supported-identity-document1>' ]
         
     | 
| 
         @@ -239,7 +239,7 @@ class ServiceTest < Minitest::Test 
     | 
|
| 
       239 
239 
     | 
    
         
             
                    "userCodeLength":                            100,
         
     | 
| 
       240 
240 
     | 
    
         
             
                    "pushedAuthReqEndpoint":                     "<pushed-auth-req-endpoint>",
         
     | 
| 
       241 
241 
     | 
    
         
             
                    "mtlsEndpointAliases":                       [ { "name": "<mtls-endpoint-alias0-name>", "uri": "<mtls-endpoint-alias0-uri>" } ],
         
     | 
| 
       242 
     | 
    
         
            -
                    " 
     | 
| 
      
 242 
     | 
    
         
            +
                    "supportedAuthorizationDetailsTypes":        [ "<supported-authorization-details-type0>", "<supported-authorization-details-type1>" ],
         
     | 
| 
       243 
243 
     | 
    
         
             
                    "supportedTrustFrameworks":                  [ "<supported-trust-framework0>", "<supported-trust-framework1>" ],
         
     | 
| 
       244 
244 
     | 
    
         
             
                    "supportedEvidence":                         [ "<supported-evidence0>", "<supported-evidence1>" ],
         
     | 
| 
       245 
245 
     | 
    
         
             
                    "supportedIdentityDocuments":                [ "<supported-identity-document0>", "<supported-identity-document1>" ],
         
     | 
| 
         @@ -353,7 +353,7 @@ class ServiceTest < Minitest::Test 
     | 
|
| 
       353 
353 
     | 
    
         
             
                  userCodeLength:                            100,
         
     | 
| 
       354 
354 
     | 
    
         
             
                  pushedAuthReqEndpoint:                     '<pushed-auth-req-endpoint>',
         
     | 
| 
       355 
355 
     | 
    
         
             
                  mtlsEndpointAliases:                       [ { name: '<mtls-endpoint-alias0-name>', uri: '<mtls-endpoint-alias0-uri>' } ],
         
     | 
| 
       356 
     | 
    
         
            -
                   
     | 
| 
      
 356 
     | 
    
         
            +
                  supportedAuthorizationDetailsTypes:        [ '<supported-authorization-details-type0>', '<supported-authorization-details-type1>' ],
         
     | 
| 
       357 
357 
     | 
    
         
             
                  supportedTrustFrameworks:                  [ '<supported-trust-framework0>', '<supported-trust-framework1>' ],
         
     | 
| 
       358 
358 
     | 
    
         
             
                  supportedEvidence:                         [ '<supported-evidence0>', '<supported-evidence1>' ],
         
     | 
| 
       359 
359 
     | 
    
         
             
                  supportedIdentityDocuments:                [ '<supported-identity-document0>', '<supported-identity-document1>' ],
         
     | 
| 
         @@ -465,7 +465,7 @@ class ServiceTest < Minitest::Test 
     | 
|
| 
       465 
465 
     | 
    
         
             
                obj.user_code_length                              = USER_CODE_LENGTH
         
     | 
| 
       466 
466 
     | 
    
         
             
                obj.pushed_auth_req_endpoint                      = PUSHED_AUTH_REQ_ENDPOINT
         
     | 
| 
       467 
467 
     | 
    
         
             
                obj.mtls_endpoint_aliases                         = MTLS_ENDPOINT_ALIASES
         
     | 
| 
       468 
     | 
    
         
            -
                obj. 
     | 
| 
      
 468 
     | 
    
         
            +
                obj.supported_authorization_details_types         = SUPPORTED_AUTHORIZATION_DETAILS_TYPES
         
     | 
| 
       469 
469 
     | 
    
         
             
                obj.supported_trust_frameworks                    = SUPPORTED_TRUST_FRAMEWORKS
         
     | 
| 
       470 
470 
     | 
    
         
             
                obj.supported_evidence                            = SUPPORTED_EVIDENCE
         
     | 
| 
       471 
471 
     | 
    
         
             
                obj.supported_identity_documents                  = SUPPORTED_IDENTITY_DOCUMENTS
         
     | 
| 
         @@ -583,7 +583,7 @@ class ServiceTest < Minitest::Test 
     | 
|
| 
       583 
583 
     | 
    
         
             
                assert_equal PUSHED_AUTH_REQ_ENDPOINT,                      obj.pushedAuthReqEndpoint
         
     | 
| 
       584 
584 
     | 
    
         
             
                assert_equal MTLS_ENDPOINT_ALIAS_NAME,                      obj.mtlsEndpointAliases[0].name
         
     | 
| 
       585 
585 
     | 
    
         
             
                assert_equal MTLS_ENDPOINT_ALIAS_URI,                       obj.mtlsEndpointAliases[0].uri
         
     | 
| 
       586 
     | 
    
         
            -
                assert_equal  
     | 
| 
      
 586 
     | 
    
         
            +
                assert_equal SUPPORTED_AUTHORIZATION_DETAILS_TYPES,         obj.supportedAuthorizationDetailsTypes
         
     | 
| 
       587 
587 
     | 
    
         
             
                assert_equal SUPPORTED_TRUST_FRAMEWORKS,                    obj.supportedTrustFrameworks
         
     | 
| 
       588 
588 
     | 
    
         
             
                assert_equal SUPPORTED_EVIDENCE,                            obj.supportedEvidence
         
     | 
| 
       589 
589 
     | 
    
         
             
                assert_equal SUPPORTED_IDENTITY_DOCUMENTS,                  obj.supportedIdentityDocuments
         
     | 
    
        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.4.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Takahiko Kawasaki
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire:
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date: 2021- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2021-05-21 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: rest-client
         
     |