diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 7f0a702..286223d 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,23 +1,23 @@ lockVersion: 2.0.0 id: 0a8a4187-e84f-4270-962c-75ec55a6d5eb management: - docChecksum: c75366e57f08beda78b68196e6d6998b + docChecksum: a882a4894cfcca065b1ff4385f1737df docVersion: 3.0.16 - speakeasyVersion: 1.761.1 - generationVersion: 2.879.6 + speakeasyVersion: 1.785.0 + generationVersion: 2.912.1 releaseVersion: 1.0.0 - configChecksum: 6fdfc08f742c8653f5b89a58894b1354 + configChecksum: f72fc7c2e620d4d51909eda9627679b1 repoURL: https://github.com/authlete/authlete-ruby-sdk.git installationURL: https://github.com/authlete/authlete-ruby-sdk published: true persistentEdits: - generation_id: 0e012236-7d11-45bd-a52f-53240249c537 - pristine_commit_hash: f3af4af681d076eb95352f55be74f4e38bf88d18 - pristine_tree_hash: ba155ce5ac2e1cc7a07917a200cf62a01b9b5160 + generation_id: 8cef5430-d907-4255-8e06-a81b296a822e + pristine_commit_hash: 30f1b15b356dff6f01292820aa7b8e36eb3b486c + pristine_tree_hash: 8cbb52aeb50fdc50fafd3f73cb70e1b478187ef6 features: ruby: additionalProperties: 0.1.0 - core: 3.11.27 + core: 3.11.30 flattening: 2.81.1 globalSecurity: 2.81.11 globalSecurityFlattening: 0.1.0 @@ -46,8 +46,8 @@ trackedFiles: pristine_git_object: b0ea40558f3ca80dcf7d30b159d34a1e5ab33440 Gemfile.lock: id: 21fb5836b499 - last_write_checksum: sha1:185b91ba504d9af631b984d43ff25264e1088c9c - pristine_git_object: c12763fbfc9e5d3aa6ea111ae085677a4c9556dd + last_write_checksum: sha1:35721b31710df3b3437e32da0d546869bf3bdade + pristine_git_object: 7ac5f9d203879b9fad8ff754d3a147dc86b8daa2 Rakefile: id: 44b7fa1ba503 last_write_checksum: sha1:c572639efdae8c7b24141ee5c02d8f009e101ed8 @@ -58,8 +58,8 @@ trackedFiles: pristine_git_object: 2a97b0347ef576d0c4608f319dc9c5d8ead5a893 authlete_ruby_sdk.gemspec: id: 2466cacca632 - last_write_checksum: sha1:7e804d1efaed9a01ab8f7e1990a01532355f4b0f - pristine_git_object: 925d07866d387f245474190fd08bf0092580a01f + last_write_checksum: sha1:bf32b464ea0b82508cad4a1f0d910d091b1a1d81 + pristine_git_object: b46cd27550519ba2db4d4193c5d4a6d424aedae9 docs/models/components/accesstoken.md: id: 94ff2e4425e9 last_write_checksum: sha1:a5016925cce7e46d50ebfd351c53fb906209283f @@ -610,16 +610,16 @@ trackedFiles: pristine_git_object: c354116bb722d0a31ba8633530aaa4084040d77f docs/models/components/service.md: id: 4385ff500f60 - last_write_checksum: sha1:17742e13641d77c75d923febc91aba2776d6f1b2 - pristine_git_object: 0ac1fe3bb4a385df0a434e3e0bc98f46cdaffd0d + last_write_checksum: sha1:3177f8d3c7a5421c83db2a1472ab164fe166f3ee + pristine_git_object: a9495b35fe4563e745056ca4fa439dd9db3fca7e docs/models/components/servicegetlistresponse.md: id: bca50759f1e5 last_write_checksum: sha1:d938ee1af873c8ee66690acf5b9261e3ac55a96a pristine_git_object: 9b7483df75f867fb8673989166d520ce4a346ae4 docs/models/components/serviceinput.md: id: 75371ad54a11 - last_write_checksum: sha1:24df95a6cc3c8cf808a7b8eca7004e647bd40b6a - pristine_git_object: f7d5a9b6810fc62d77fd0769cc96cecfecfb592b + last_write_checksum: sha1:35c50a2301c96b9ed007c3bcb0c454eafc19754d + pristine_git_object: ccf2fb1f9414f96d6d133e2451c22ec046845d7d docs/models/components/servicejwksgetresponse.md: id: 9496edebea4d last_write_checksum: sha1:f929ee455b78c84549edfbe2524c5fd68a82a406 @@ -1686,8 +1686,8 @@ trackedFiles: pristine_git_object: 9553366a7244dbb2dfca43c9891353ed904b4c55 docs/sdks/services/README.md: id: bfab970adeb1 - last_write_checksum: sha1:7a8fb214173a754a04a9dc5ed6bda89abe439c64 - pristine_git_object: 266e44669b17881f489604023c0ebdf7036a3a26 + last_write_checksum: sha1:465716b61628308cba0d6c6c8ebd6f44bacc3df4 + pristine_git_object: 6b57d63aa09ea72dba5875cd4730422e4fd4cbd2 docs/sdks/tokenmanagement/README.md: id: 134765d94546 last_write_checksum: sha1:973e12c38e03f8c19514f3386e920b8f4fec1a32 @@ -1706,64 +1706,64 @@ trackedFiles: pristine_git_object: b37a694acc0a535be78a16d4700f9c2a713c7472 lib/authlete/authorization.rb: id: e07235826cdb - last_write_checksum: sha1:8e5166ad79835d097224472b760418fb39b3d8b4 - pristine_git_object: b6802e4c935640da3b41764fe2e23961ad42d653 + last_write_checksum: sha1:8ee36c5192899e09930d1fadb7f30a2549eeeca9 + pristine_git_object: 4fae3b282f13ac76dc9e05806d52cbc07e50ae64 lib/authlete/authorization_management.rb: id: 7c583c687218 - last_write_checksum: sha1:664b8f7bae7f02e9d6d63c6b3e95c1dd27521956 - pristine_git_object: 619239e765eb51f67bb89bc39c5c36cf808c39e1 + last_write_checksum: sha1:e0a7a706e1f54d11bff29e2042c357c0ddda924d + pristine_git_object: 0d3ae7defe0136fedbabd5e84230625fae3b84cf lib/authlete/ciba.rb: id: 6d353d221874 - last_write_checksum: sha1:da4a9f9bdf98c480f8854bab947797f5c3e836e9 - pristine_git_object: 8a8563a3d6c9e4f38f67f200560034ce2fa7e75b + last_write_checksum: sha1:860a961d634a553f84030dfa02189981016ae2df + pristine_git_object: 52a2460086331b53ad2a950015bf58966288c224 lib/authlete/client.rb: id: e4c99f52c448 last_write_checksum: sha1:e61363a9d9dfc68f7ba4c9813e8439ef4386257c pristine_git_object: 004ff32617dec6f2ab4df07287f7b6f820e9aed6 lib/authlete/client_management.rb: id: 602ce96744f2 - last_write_checksum: sha1:5eba6cbb822e0f5dee0b00f41a2f2135604bd8c3 - pristine_git_object: 7e268f4c8e435d1791d96a4464b7e6484218ec6c + last_write_checksum: sha1:d6cc5d4ae63b071ea978138c55252ad9c778b9ee + pristine_git_object: 19bea7490a040be6348c09a2fbfcda6246fcaae6 lib/authlete/clients.rb: id: 64b7cfd1a20d - last_write_checksum: sha1:7b64e1ad2362b7a87f88478ed6e33780a6243205 - pristine_git_object: 2622cb29654acce4e31345cd6b51ada01dfdbeaf + last_write_checksum: sha1:bd53933096bd0d5b5e3f5a96cb7c5e2bd9469159 + pristine_git_object: 9500d37c22d762628107204f6668d4b3826692dc lib/authlete/device_flow.rb: id: 374d08d0519a - last_write_checksum: sha1:df7330ff87d02b159c7af3e214ef83e3c2db9166 - pristine_git_object: e9943164f6a0795fd0fb93ec382f2b665318ad26 + last_write_checksum: sha1:f55dc6c423b9c5b50d0db187672c249c8776f9f6 + pristine_git_object: e438efc05494927918747a41cbb56a2ab433f681 lib/authlete/dynamic_client_registration.rb: id: 8902a4efc8a0 - last_write_checksum: sha1:3b2ac0b154a6f442fad9eb5d837edf68e0c2e445 - pristine_git_object: 5370831ddce9676ee0fae499983a9c9e40a05215 + last_write_checksum: sha1:11c0938ebc2175f0e79cc130264c1f4b11cde1df + pristine_git_object: 595531573c158ba2b6c04bd82dcf6bf85c106af9 lib/authlete/federation.rb: id: c83bc4114d0c - last_write_checksum: sha1:cfbd0943661efc03cd7e198a865e992dfcc204bb - pristine_git_object: dcf4992d57baf1ea69cbc70bed20fb4e6857c5fe + last_write_checksum: sha1:af20e7150078a0a9d54c233e054070c7382a7b48 + pristine_git_object: f41b4c5d4fe6d90839eccae56814ab0e08749041 lib/authlete/grant_management.rb: id: 0d294fbbc95b - last_write_checksum: sha1:d8eb1a396e8e5fcf424f287a933463c30e0b4837 - pristine_git_object: 39d82a8b4cb31fc57517b9a8c99343d34c39471b + last_write_checksum: sha1:bb94d99ffd510e43ec56ec64025eabf378da94a4 + pristine_git_object: eee52d8884d18e91bb0e342f52d91030e712c400 lib/authlete/hardware_security_keys.rb: id: 7f770d182e08 - last_write_checksum: sha1:7c5670f5733b0519da457b487340da3eb5ce5a06 - pristine_git_object: c42a467403709c8c0d4e998c0b6f23cf14f72433 + last_write_checksum: sha1:cccced220d7dddb3b8f72143d656477a7894f4d7 + pristine_git_object: 076ad1a30c127685ba1a885686eea26c69808cfa lib/authlete/introspection.rb: id: f82a20aeda91 - last_write_checksum: sha1:946e2d32bec4ad02afc3e6d9e9dbd4ab0a34a207 - pristine_git_object: 39d26a95f3d8dfef5569a1cfdf82dc6dbefe5e6a + last_write_checksum: sha1:67f3da9182cb907670da23371435b8bd8516fc8b + pristine_git_object: 83a80b0f89c33bb769a1fd41a9c071e84322438a lib/authlete/jose_object.rb: id: 39f072503701 - last_write_checksum: sha1:c8e13b328197e138da7ad19e99a5d7d6c89118f3 - pristine_git_object: c9641c3a18687055099adb12d5900bf72d218278 + last_write_checksum: sha1:30f14cef436749154cd83eee53c9cfc81a70cfa3 + pristine_git_object: c4c0b4184f4d3deb496a9ecfc7c860ac0e48a243 lib/authlete/jwk_set_endpoint.rb: id: 528cb78d6aff - last_write_checksum: sha1:ce224ab658873645b94512514f9a2dda00cb98fc - pristine_git_object: 425d2fc01193efcb4d11a6d96ae5b629239f2c2c + last_write_checksum: sha1:4f0868fb1ce78bd94197778039a218369f66972a + pristine_git_object: 0db589b764d1de9a97b4b296d59f12910b375b61 lib/authlete/lifecycle.rb: id: eaa2a5a20e62 - last_write_checksum: sha1:11e139b684e7435cd1ef33b3c347031f4e892579 - pristine_git_object: 7eb85b40b2bd05dbf1d25af129895e86abd8cb97 + last_write_checksum: sha1:2f791a6179e1d82b7b9b17d9fb9d99d4ebeef5bd + pristine_git_object: 93b0325750ae2327c8bfd26b3cdd73b8302cc794 lib/authlete/models/callbacks.rb: id: b7b34e0302de last_write_checksum: sha1:19cdc1c08b73749b208eb7df28f4bbd9aa9a6ebb @@ -2870,12 +2870,12 @@ trackedFiles: pristine_git_object: 9430bdbf02245aea9469a5f63bc69602229494a5 lib/authlete/models/components/service.rb: id: cd3393b6bb2d - last_write_checksum: sha1:f82fbee56618454c5c425dbcb66fd94bca027d23 - pristine_git_object: 21c5dca09c250369b12a22d2a365c2b950fd0ec7 + last_write_checksum: sha1:bb073d6b66826ab890c1b3edba17d497f6726ff0 + pristine_git_object: 55116c6d3c0fa8f531c7f62ff3f11dbae0df65cf lib/authlete/models/components/service.rbi: id: b86298cce669 - last_write_checksum: sha1:e5bb107303c14e7673d30122c390983c4f3a6b6a - pristine_git_object: 46a0886be83424b5024f03dc8293f75e30c8dc4e + last_write_checksum: sha1:4ee602e594435862647b122bd8527541fea054dc + pristine_git_object: 1adb53ae01f2d10774f5a27a5735821d6f801ce7 lib/authlete/models/components/service_get_list_response.rb: id: 163fd06ae469 last_write_checksum: sha1:7265b9554e67513ae1eaca7645c8810d6c34348a @@ -2886,12 +2886,12 @@ trackedFiles: pristine_git_object: c005f2ea226a0c8edaea8e7ffbd228dd55fcfe98 lib/authlete/models/components/service_input.rb: id: f97c5485245b - last_write_checksum: sha1:5d5c27db4f2df93778cba567b94f325240be76cd - pristine_git_object: d3c96a235502bd88bdda31b3a05cbd4b2cf083cb + last_write_checksum: sha1:3f98fb79f869a1134d3155b7af9b44bad29c66fb + pristine_git_object: 6797f4c441e9fe0c438f43f1e7deb1d03ada177d lib/authlete/models/components/service_input.rbi: id: c84380a0f515 - last_write_checksum: sha1:046fc667ed2e4da3b2f893293f87ebbf970fc316 - pristine_git_object: db2ef5a3e607a2e9beceb6ccf714bd388dd16a32 + last_write_checksum: sha1:ecc3e8942f5317854c173e4ad95e70492638634f + pristine_git_object: f3176139d50fc130a2275eaa28f0bd6319540486 lib/authlete/models/components/service_jwks_get_response.rb: id: 7af6018158d5 last_write_checksum: sha1:cd3cd9a8c5c0d2637e55bdd16b7deb2e5f717b2e @@ -4902,16 +4902,16 @@ trackedFiles: pristine_git_object: 7271032ad4cf5306472b8e291186caca59df51a8 lib/authlete/native_sso.rb: id: 53b17fd63cab - last_write_checksum: sha1:c223b9879c6db045af4d78e653c6c082c1c03f0f - pristine_git_object: fab91f0d9a8410b2fcd5e88f14def81d329994d8 + last_write_checksum: sha1:fbab6bd1256aadf3332a70efb090820955261cb1 + pristine_git_object: e231388d9d756fe1fe8648e653fb86fa1e1f64e6 lib/authlete/pushed_authorization.rb: id: 0ce63518563a - last_write_checksum: sha1:12e81816184066d1398e7f9ada4cce47b1d871ef - pristine_git_object: e68d4cd0125e14de8a8f7a091983b1c119ef0805 + last_write_checksum: sha1:fdc7c290bc6cc1e435ae7250bca039539778b06b + pristine_git_object: 28111a936eafa5e37cd918f52c5cc9a619896fbf lib/authlete/revocation.rb: id: cae5ee2359a0 - last_write_checksum: sha1:9e947b0686ee017415aed7d002cef14446a94532 - pristine_git_object: a916fb97961f7d324119e2dd4636b93dcbab0d07 + last_write_checksum: sha1:204aa99f4daa012342fcf4b575cebe348aefcfaa + pristine_git_object: 3fcdf2281d9672297bd296654991a5ce77c5963b lib/authlete/sdk_hooks/hooks.rb: id: 703be5c2b4ff last_write_checksum: sha1:fdcb69377943a12cbc756dbe35df378b7e6ba134 @@ -4922,28 +4922,28 @@ trackedFiles: pristine_git_object: 0e06c94e406f3b3b22e278c475d9b8f03b6a15ab lib/authlete/sdkconfiguration.rb: id: 6b998183b660 - last_write_checksum: sha1:a514437f5ce06da60eba64b3af827b7265fc86ad - pristine_git_object: 041bf366dcce34dbcc32f28809c387c1468feaaa + last_write_checksum: sha1:42bdb34d18b1ca7efedd4d5d6c4d2562e351dad7 + pristine_git_object: fd43ddfc707880cde6d2fcb9dd00af2928a8e7a8 lib/authlete/sdkconfiguration.rbi: id: edf621a1c9a3 last_write_checksum: sha1:7c016cee27ecfe884f5b58cfc220c4fe29b31f34 pristine_git_object: 792e70f9ab42942d96089922660ecabc513ffb31 lib/authlete/services.rb: id: 1c9cb4bd5ad5 - last_write_checksum: sha1:8211ad92a5427490975e75201f50a48fa1f5e4cd - pristine_git_object: 7b20ff350f45262d0869a0cf5cd373cb54f39884 + last_write_checksum: sha1:9dde693afe324cf5f5a42319f98b654886440d70 + pristine_git_object: b21140c81a10ef36bb254c1040c9267717365964 lib/authlete/token_management.rb: id: e37df676ebd9 - last_write_checksum: sha1:14ac10025f33234f27cf17dda91db8245ecad26a - pristine_git_object: 4e4b2b524be0b01fca2bccb1cbca74db3d082d25 + last_write_checksum: sha1:b1d034c803bf54648dadc4e382cc458d39d56672 + pristine_git_object: 6d172bbe230138398d3bd7db1eda42ded162c66f lib/authlete/tokens.rb: id: 0e1a4c514ed2 - last_write_checksum: sha1:c9b197869c9deedb2ecf51cd81a07b1bf0a9e814 - pristine_git_object: 427027989884fe03bd99bfac76c801506377c6cb + last_write_checksum: sha1:fe654a168e95fc1c33ef427cf42c30652dc9ca57 + pristine_git_object: e0cafd1a1c5807815332a92b08a240980c2b841b lib/authlete/userinfo.rb: id: 7cf72f9ea8fc - last_write_checksum: sha1:29d7fe7370c88af6f59ee157b58bd59de8860ded - pristine_git_object: 4b155541c375e00de04b58e45b955ba06b1fa8e2 + last_write_checksum: sha1:d0a3b08f678d408e5ba323ab61cfabfec1caffc0 + pristine_git_object: 62f61e609417025335281fda919de2b7e2f80a45 lib/authlete/utils/forms.rb: id: 82998b0a2cda last_write_checksum: sha1:5145ac4dce3ebba47ec7cbc3e6a99a9c716fff03 @@ -4962,8 +4962,8 @@ trackedFiles: pristine_git_object: 7e5e16e2d02b592bcb15736631b4b8293fb66f48 lib/authlete/utils/retries.rb: id: 5f102dfeebc7 - last_write_checksum: sha1:b89fc988112b52650ad9e90ee248f0d8b4747ea4 - pristine_git_object: 3bc0f10709c71a5625d5cf9dab4edba0d734731d + last_write_checksum: sha1:b04be4bb65448a2c02aa73ad34716b3812ad33b5 + pristine_git_object: 4ebf35ee1f7357684618ac8ad6c023e35d4806e0 lib/authlete/utils/security.rb: id: fbbe0751359c last_write_checksum: sha1:875fb2ff11fa4fe149712faa1af6504582cc3bd2 @@ -4978,8 +4978,8 @@ trackedFiles: pristine_git_object: 7ff457f2485625dc07ead811abed07f3b655611e lib/authlete/verifiable_credentials.rb: id: 7bad5395829a - last_write_checksum: sha1:20d07b78a78eaba5a4768aeafe142067ad86ebcb - pristine_git_object: 8c5c4649f09a75347034289bb8156c430208be60 + last_write_checksum: sha1:c6f8c53d7df84c07a8c31fd6cca7d4f18a65b86d + pristine_git_object: 8efcb6acfc25e28a05f68c7a64ed2a6c6a43420e lib/authlete_ruby_sdk.rb: id: 83be33dd6132 last_write_checksum: sha1:dda9b7bcadb56aabb03cc1999a3cbc1248eac29d @@ -5036,7 +5036,7 @@ examples: serviceId: "" responses: "200": - application/json: {"number": 5041, "serviceName": "My service", "issuer": "https://my-service.example.com", "apiKey": 21653835348762, "serviceOwnerNumber": 2, "clientsPerDeveloper": 0, "clientIdAliasEnabled": true, "metadata": [{"key": "clientCount", "value": "1"}], "createdAt": 1639373421000, "modifiedAt": 1639373421000, "supportedGrantTypes": ["AUTHORIZATION_CODE", "REFRESH_TOKEN"], "supportedResponseTypes": ["CODE"], "errorDescriptionOmitted": false, "errorUriOmitted": false, "authorizationEndpoint": "https://my-service.example.com/authz", "directAuthorizationEndpointEnabled": false, "supportedDisplays": ["PAGE"], "pkceRequired": true, "pkceS256Required": false, "authorizationResponseDuration": 0, "tokenEndpoint": "https://my-service.example.com/token", "directTokenEndpointEnabled": false, "supportedTokenAuthMethods": ["CLIENT_SECRET_BASIC"], "missingClientIdAllowed": false, "revocationEndpoint": "https://my-service.example.com/revocation", "directRevocationEndpointEnabled": false, "supportedRevocationAuthMethods": ["CLIENT_SECRET_BASIC"], "introspectionEndpoint": "https://my-service.example.com/introspection", "directIntrospectionEndpointEnabled": false, "supportedIntrospectionAuthMethods": ["CLIENT_SECRET_BASIC"], "pushedAuthReqDuration": 0, "parRequired": false, "requestObjectRequired": false, "traditionalRequestObjectProcessingApplied": false, "mutualTlsValidatePkiCertChain": false, "accessTokenType": "Bearer", "tlsClientCertificateBoundAccessTokens": false, "accessTokenDuration": 3600, "singleAccessTokenPerSubject": false, "refreshTokenDuration": 3600, "refreshTokenDurationKept": false, "refreshTokenDurationReset": false, "refreshTokenKept": false, "supportedScopes": [{"name": "history.read", "defaultEntry": false, "description": "A permission to read your history."}, {"name": "timeline.read", "defaultEntry": false, "description": "A permission to read your timeline."}], "scopeRequired": false, "idTokenDuration": 0, "allowableClockSkew": 0, "supportedClaimTypes": ["NORMAL"], "claimShortcutRestrictive": false, "directJwksEndpointEnabled": false, "directUserInfoEndpointEnabled": false, "dynamicRegistrationSupported": false, "backchannelAuthReqIdDuration": 0, "backchannelPollingInterval": 0, "backchannelUserCodeParameterSupported": false, "backchannelBindingMessageRequiredInFapi": false, "deviceFlowCodeDuration": 0, "deviceFlowPollingInterval": 0, "userCodeLength": 0, "attributes": [{"key": "attribute1-key", "value": "attribute1-value"}, {"key": "attribute2-key", "value": "attribute2-value"}], "nbfOptional": false, "issSuppressed": false, "tokenExpirationLinked": false, "frontChannelRequestObjectEncryptionRequired": false, "requestObjectEncryptionAlgMatchRequired": false, "requestObjectEncryptionEncMatchRequired": false, "hsmEnabled": false, "grantManagementActionRequired": false, "unauthorizedOnClientConfigSupported": false, "dcrScopeUsedAsRequestable": false} + application/json: {"number": 5041, "serviceName": "My service", "issuer": "https://my-service.example.com", "apiKey": 21653835348762, "serviceOwnerNumber": 2, "clientsPerDeveloper": 0, "clientIdAliasEnabled": true, "metadata": [{"key": "clientCount", "value": "1"}], "createdAt": 1639373421000, "modifiedAt": 1639373421000, "supportedGrantTypes": ["AUTHORIZATION_CODE", "REFRESH_TOKEN"], "supportedResponseTypes": ["CODE"], "errorDescriptionOmitted": false, "errorUriOmitted": false, "authorizationEndpoint": "https://my-service.example.com/authz", "directAuthorizationEndpointEnabled": false, "supportedDisplays": ["PAGE"], "pkceRequired": true, "pkceS256Required": false, "authorizationResponseDuration": 0, "authorizationCodeDuration": 0, "tokenEndpoint": "https://my-service.example.com/token", "directTokenEndpointEnabled": false, "supportedTokenAuthMethods": ["CLIENT_SECRET_BASIC"], "missingClientIdAllowed": false, "revocationEndpoint": "https://my-service.example.com/revocation", "directRevocationEndpointEnabled": false, "supportedRevocationAuthMethods": ["CLIENT_SECRET_BASIC"], "introspectionEndpoint": "https://my-service.example.com/introspection", "directIntrospectionEndpointEnabled": false, "supportedIntrospectionAuthMethods": ["CLIENT_SECRET_BASIC"], "pushedAuthReqDuration": 0, "parRequired": false, "requestObjectRequired": false, "traditionalRequestObjectProcessingApplied": false, "mutualTlsValidatePkiCertChain": false, "accessTokenType": "Bearer", "tlsClientCertificateBoundAccessTokens": false, "accessTokenDuration": 3600, "singleAccessTokenPerSubject": false, "refreshTokenDuration": 3600, "refreshTokenDurationKept": false, "refreshTokenDurationReset": false, "refreshTokenKept": false, "supportedScopes": [{"name": "history.read", "defaultEntry": false, "description": "A permission to read your history."}, {"name": "timeline.read", "defaultEntry": false, "description": "A permission to read your timeline."}], "scopeRequired": false, "idTokenDuration": 0, "allowableClockSkew": 0, "supportedClaimTypes": ["NORMAL"], "claimShortcutRestrictive": false, "directJwksEndpointEnabled": false, "directUserInfoEndpointEnabled": false, "dynamicRegistrationSupported": false, "backchannelAuthReqIdDuration": 0, "backchannelPollingInterval": 0, "backchannelUserCodeParameterSupported": false, "backchannelBindingMessageRequiredInFapi": false, "deviceFlowCodeDuration": 0, "deviceFlowPollingInterval": 0, "userCodeLength": 0, "attributes": [{"key": "attribute1-key", "value": "attribute1-value"}, {"key": "attribute2-key", "value": "attribute2-value"}], "nbfOptional": false, "issSuppressed": false, "tokenExpirationLinked": false, "frontChannelRequestObjectEncryptionRequired": false, "requestObjectEncryptionAlgMatchRequired": false, "requestObjectEncryptionEncMatchRequired": false, "hsmEnabled": false, "grantManagementActionRequired": false, "unauthorizedOnClientConfigSupported": false, "dcrScopeUsedAsRequestable": false} limited: parameters: path: @@ -5059,7 +5059,7 @@ examples: full: responses: "200": - application/json: {"start": 0, "end": 5, "totalCount": 1, "services": [{"number": 5041, "serviceName": "My service", "issuer": "https://my-service.example.com", "apiKey": 21653835348762, "apiSecret": "uE4NgqeIpuSV_XejQ7Ds3jsgA1yXhjR1MXJ1LbPuyls", "serviceOwnerNumber": 2, "clientIdAliasEnabled": true, "metadata": [{"key": "clientCount", "value": "1"}], "createdAt": 1639373421000, "modifiedAt": 1639373421000, "supportedGrantTypes": ["AUTHORIZATION_CODE", "REFRESH_TOKEN"], "supportedResponseTypes": ["CODE"], "errorDescriptionOmitted": false, "errorUriOmitted": false, "authorizationEndpoint": "https://as.example.com/authz", "directAuthorizationEndpointEnabled": false, "supportedDisplays": ["PAGE"], "pkceRequired": true, "pkceS256Required": false, "authorizationResponseDuration": 0, "tokenEndpoint": "https://my-service.example.com/token", "directTokenEndpointEnabled": false, "supportedTokenAuthMethods": ["CLIENT_SECRET_BASIC"], "missingClientIdAllowed": false, "revocationEndpoint": "https://my-service.example.com/revocation", "directRevocationEndpointEnabled": false, "supportedRevocationAuthMethods": ["CLIENT_SECRET_BASIC"], "introspectionEndpoint": "https://my-service.example.com/introspection", "directIntrospectionEndpointEnabled": false, "supportedIntrospectionAuthMethods": ["CLIENT_SECRET_BASIC"], "pushedAuthReqDuration": 0, "parRequired": false, "requestObjectRequired": false, "traditionalRequestObjectProcessingApplied": false, "mutualTlsValidatePkiCertChain": false, "accessTokenType": "Bearer", "tlsClientCertificateBoundAccessTokens": false, "accessTokenDuration": 3600, "singleAccessTokenPerSubject": false, "refreshTokenDuration": 3600, "refreshTokenDurationKept": false, "refreshTokenDurationReset": false, "refreshTokenKept": false, "supportedScopes": [{"name": "history.read", "defaultEntry": false, "description": "A permission to read your history."}, {"name": "timeline.read", "defaultEntry": false, "description": "A permission to read your timeline."}], "scopeRequired": false, "idTokenDuration": 0, "allowableClockSkew": 0, "supportedClaimTypes": ["NORMAL"], "claimShortcutRestrictive": false, "directJwksEndpointEnabled": false, "directUserInfoEndpointEnabled": false, "dynamicRegistrationSupported": false, "backchannelAuthReqIdDuration": 0, "backchannelPollingInterval": 0, "backchannelUserCodeParameterSupported": false, "backchannelBindingMessageRequiredInFapi": false, "deviceFlowCodeDuration": 0, "deviceFlowPollingInterval": 0, "userCodeLength": 0, "attributes": [{"key": "attribute1-key", "value": "attribute1-value"}, {"key": "attribute2-key", "value": "attribute2-value"}], "nbfOptional": false, "issSuppressed": false, "tokenExpirationLinked": false, "frontChannelRequestObjectEncryptionRequired": false, "requestObjectEncryptionAlgMatchRequired": false, "requestObjectEncryptionEncMatchRequired": false, "hsmEnabled": false, "grantManagementActionRequired": false, "unauthorizedOnClientConfigSupported": false, "dcrScopeUsedAsRequestable": false}]} + application/json: {"start": 0, "end": 5, "totalCount": 1, "services": [{"number": 5041, "serviceName": "My service", "issuer": "https://my-service.example.com", "apiKey": 21653835348762, "apiSecret": "uE4NgqeIpuSV_XejQ7Ds3jsgA1yXhjR1MXJ1LbPuyls", "serviceOwnerNumber": 2, "clientIdAliasEnabled": true, "metadata": [{"key": "clientCount", "value": "1"}], "createdAt": 1639373421000, "modifiedAt": 1639373421000, "supportedGrantTypes": ["AUTHORIZATION_CODE", "REFRESH_TOKEN"], "supportedResponseTypes": ["CODE"], "errorDescriptionOmitted": false, "errorUriOmitted": false, "authorizationEndpoint": "https://as.example.com/authz", "directAuthorizationEndpointEnabled": false, "supportedDisplays": ["PAGE"], "pkceRequired": true, "pkceS256Required": false, "authorizationResponseDuration": 0, "authorizationCodeDuration": 0, "tokenEndpoint": "https://my-service.example.com/token", "directTokenEndpointEnabled": false, "supportedTokenAuthMethods": ["CLIENT_SECRET_BASIC"], "missingClientIdAllowed": false, "revocationEndpoint": "https://my-service.example.com/revocation", "directRevocationEndpointEnabled": false, "supportedRevocationAuthMethods": ["CLIENT_SECRET_BASIC"], "introspectionEndpoint": "https://my-service.example.com/introspection", "directIntrospectionEndpointEnabled": false, "supportedIntrospectionAuthMethods": ["CLIENT_SECRET_BASIC"], "pushedAuthReqDuration": 0, "parRequired": false, "requestObjectRequired": false, "traditionalRequestObjectProcessingApplied": false, "mutualTlsValidatePkiCertChain": false, "accessTokenType": "Bearer", "tlsClientCertificateBoundAccessTokens": false, "accessTokenDuration": 3600, "singleAccessTokenPerSubject": false, "refreshTokenDuration": 3600, "refreshTokenDurationKept": false, "refreshTokenDurationReset": false, "refreshTokenKept": false, "supportedScopes": [{"name": "history.read", "defaultEntry": false, "description": "A permission to read your history."}, {"name": "timeline.read", "defaultEntry": false, "description": "A permission to read your timeline."}], "scopeRequired": false, "idTokenDuration": 0, "allowableClockSkew": 0, "supportedClaimTypes": ["NORMAL"], "claimShortcutRestrictive": false, "directJwksEndpointEnabled": false, "directUserInfoEndpointEnabled": false, "dynamicRegistrationSupported": false, "backchannelAuthReqIdDuration": 0, "backchannelPollingInterval": 0, "backchannelUserCodeParameterSupported": false, "backchannelBindingMessageRequiredInFapi": false, "deviceFlowCodeDuration": 0, "deviceFlowPollingInterval": 0, "userCodeLength": 0, "attributes": [{"key": "attribute1-key", "value": "attribute1-value"}, {"key": "attribute2-key", "value": "attribute2-value"}], "nbfOptional": false, "issSuppressed": false, "tokenExpirationLinked": false, "frontChannelRequestObjectEncryptionRequired": false, "requestObjectEncryptionAlgMatchRequired": false, "requestObjectEncryptionEncMatchRequired": false, "hsmEnabled": false, "grantManagementActionRequired": false, "unauthorizedOnClientConfigSupported": false, "dcrScopeUsedAsRequestable": false}]} limited: responses: "200": @@ -6273,6 +6273,7 @@ examples: "200": text/plain: "" examplesVersion: 1.0.2 +releaseNotes: "## Ruby SDK Changes:\n* `client.services.retrieve()`: `response` **Changed**\n* `client.services.list()`: `response.services[]` **Changed**\n* `client.services.create()`: \n * `request` **Changed**\n * `response` **Changed**\n* `client.services.update()`: \n * `request.service` **Changed**\n * `response` **Changed**\n* `client.authorization.process_request()`: `response.service` **Changed**\n" generatedFiles: - .gitattributes - .rubocop.yml diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index c6767ca..fc80e89 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -58,6 +58,7 @@ ruby: webhooks: models/webhooks inferUnionDiscriminators: false inputModelSuffix: input + license: Apache-2.0 maxMethodParams: 4 module: Authlete multipartArrayFormat: legacy diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index c673db1..db1cafd 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -122,6 +122,7 @@ paths: value: attribute2-value authorizationEndpoint: https://my-service.example.com/authz authorizationResponseDuration: 0 + authorizationCodeDuration: 0 backchannelAuthReqIdDuration: 0 backchannelBindingMessageRequiredInFapi: false backchannelPollingInterval: 0 @@ -305,6 +306,7 @@ paths: value: attribute2-value authorizationEndpoint: https://as.example.com/authz authorizationResponseDuration: 0 + authorizationCodeDuration: 0 backchannelAuthReqIdDuration: 0 backchannelBindingMessageRequiredInFapi: false backchannelPollingInterval: 0 @@ -512,6 +514,7 @@ paths: value: attribute2-value authorizationEndpoint: https://my-service.example.com/authz authorizationResponseDuration: 0 + authorizationCodeDuration: 0 backchannelAuthReqIdDuration: 0 backchannelBindingMessageRequiredInFapi: false backchannelPollingInterval: 0 @@ -662,6 +665,7 @@ paths: value: attribute2-value authorizationEndpoint: https://my-service.example.com/authz authorizationResponseDuration: 0 + authorizationCodeDuration: 0 backchannelAuthReqIdDuration: 0 backchannelBindingMessageRequiredInFapi: false backchannelPollingInterval: 0 @@ -757,6 +761,7 @@ paths: value: attribute2-value authorizationEndpoint: https://my-service.example.com/authz authorizationResponseDuration: 0 + authorizationCodeDuration: 0 backchannelAuthReqIdDuration: 0 backchannelBindingMessageRequiredInFapi: false backchannelPollingInterval: 0 @@ -11256,6 +11261,11 @@ components: `form_post.jwt` and `jwt`. If one of them is specified as the response mode, response parameters from the authorization endpoint will be packed into a JWT. This property is used to compute the value of the `exp` claim of the JWT. + authorizationCodeDuration: + type: integer + format: int64 + description: | + The duration of authorization codes in seconds. tokenEndpoint: type: string format: uri @@ -12660,6 +12670,12 @@ components: description: | When `true`, client ID aliases starting with `https://` or `http://` are prohibited. + attestationChallengeTimeWindow: + type: integer + format: int64 + description: | + The time window of attestation challenges in seconds. This is used for + OAuth 2.0 Attestation-Based Client Authentication. sns_credentials: type: object properties: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 44bc7dc..68be2d0 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.761.1 +speakeasyVersion: 1.785.0 sources: authlete-OAS: sourceNamespace: authlete-oas - sourceRevisionDigest: sha256:d525984e969ef95c3f2bc426a70e369a86a1d2e1c64741a1763f67bd808721be - sourceBlobDigest: sha256:d243007fa686330d01194a9000859cac5d05731da9b19cae61c63aea55a2ea08 + sourceRevisionDigest: sha256:9b8f4de9a1e2261181c65190b8fc9c6f957ee1a46818cb27f2be8c79d51a3690 + sourceBlobDigest: sha256:bcea6c42034fe5e7926779f965ff49592d9e7775ac12658afbb679d61bead33f tags: - latest - 3.0.16 @@ -11,10 +11,10 @@ targets: authlete: source: authlete-OAS sourceNamespace: authlete-oas - sourceRevisionDigest: sha256:d525984e969ef95c3f2bc426a70e369a86a1d2e1c64741a1763f67bd808721be - sourceBlobDigest: sha256:d243007fa686330d01194a9000859cac5d05731da9b19cae61c63aea55a2ea08 + sourceRevisionDigest: sha256:9b8f4de9a1e2261181c65190b8fc9c6f957ee1a46818cb27f2be8c79d51a3690 + sourceBlobDigest: sha256:bcea6c42034fe5e7926779f965ff49592d9e7775ac12658afbb679d61bead33f codeSamplesNamespace: authlete-oas-ruby-code-samples - codeSamplesRevisionDigest: sha256:30679879c5097041027bcaa55741c29fde4ce3c531b4bd0642e312c0cf79f8f1 + codeSamplesRevisionDigest: sha256:83c54d1a8281c51303b07cfc523d28eece5266adac9b2c3460e5584905a262ee workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/Gemfile.lock b/Gemfile.lock index c12763f..7ac5f9d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,7 +3,7 @@ PATH specs: authlete_ruby_sdk (1.0.0) base64 (>= 0.2.0, < 1.0) - faraday (>= 2.14.1) + faraday (>= 2.14.2) faraday-multipart (~> 1.2.0) faraday-retry (~> 2.4.0) sorbet-runtime (~> 0.6.12872) @@ -19,7 +19,7 @@ GEM date (3.5.1) erb (6.0.1) erubi (1.13.1) - faraday (2.14.1) + faraday (2.14.2) faraday-net_http (>= 2.0, < 3.5) json logger diff --git a/RELEASES.md b/RELEASES.md index e60838b..97a7dba 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -126,4 +126,14 @@ Based on: ### Generated - [ruby v1.0.0] . ### Releases +- [Ruby Gems v1.0.0] https://rubygems.org/gems/authlete_ruby_sdk/versions/1.0.0 - . + +## 2026-06-24 02:48:41 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.785.0 (2.912.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v1.0.0] . +### Releases - [Ruby Gems v1.0.0] https://rubygems.org/gems/authlete_ruby_sdk/versions/1.0.0 - . \ No newline at end of file diff --git a/authlete_ruby_sdk.gemspec b/authlete_ruby_sdk.gemspec index 925d078..b46cd27 100644 --- a/authlete_ruby_sdk.gemspec +++ b/authlete_ruby_sdk.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 3.2' s.add_dependency('base64', '>= 0.2.0', '< 1.0') - s.add_dependency('faraday', '>= 2.14.1') + s.add_dependency('faraday', '>= 2.14.2') s.add_dependency('faraday-multipart', '~> 1.2.0') s.add_dependency('faraday-retry', '~> 2.4.0') s.add_dependency('sorbet-runtime', '~> 0.6.12872') diff --git a/docs/models/components/service.md b/docs/models/components/service.md index 0ac1fe3..a9495b3 100644 --- a/docs/models/components/service.md +++ b/docs/models/components/service.md @@ -41,6 +41,7 @@ | `pkce_required` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The flag to indicate whether the use of Proof Key for Code Exchange (PKCE) is always required for authorization requests by Authorization Code Flow.

If `true`, `code_challenge` request parameter is always required for authorization requests using Authorization Code Flow.

See [RFC 7636](https://tools.ietf.org/html/rfc7636) (Proof Key for Code Exchange by OAuth Public Clients) for details about `code_challenge` request parameter.
| | `pkce_s256_required` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The flag to indicate whether `S256` is always required as the code challenge method whenever [PKCE (RFC 7636)](https://tools.ietf.org/html/rfc7636) is used.

If this flag is set to `true`, `code_challenge_method=S256` must be included in the authorization request
whenever it includes the `code_challenge` request parameter.
Neither omission of the `code_challenge_method` request parameter nor use of plain (`code_challenge_method=plain`) is allowed.
| | `authorization_response_duration` | *T.nilable(::Integer)* | :heavy_minus_sign: | The duration of authorization response JWTs in seconds.

[Financial-grade API: JWT Secured Authorization Response Mode for OAuth 2.0 (JARM)](https://openid.net/specs/openid-financial-api-jarm.html)
defines new values for the `response_mode` request parameter. They are `query.jwt`, `fragment.jwt`,
`form_post.jwt` and `jwt`. If one of them is specified as the response mode, response parameters
from the authorization endpoint will be packed into a JWT. This property is used to compute the
value of the `exp` claim of the JWT.
| +| `authorization_code_duration` | *T.nilable(::Integer)* | :heavy_minus_sign: | The duration of authorization codes in seconds.
| | `token_endpoint` | *T.nilable(::String)* | :heavy_minus_sign: | The [token endpoint](https://tools.ietf.org/html/rfc6749#section-3.2) of the service.

A URL that starts with `https://` and has not fragment component. For example, `https://example.com/auth/token`.

The value of this property is used as `token_endpoint` property in the
[OpenID Provider Metadata](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
| | `direct_token_endpoint_enabled` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The flag to indicate whether the direct token endpoint is enabled or not. The path of the endpoint
is `/api/auth/token/direct/service-api-key`.
| | `supported_token_auth_methods` | T::Array<[Models::Components::ClientAuthMethod](../../models/shared/clientauthmethod.md)> | :heavy_minus_sign: | Client authentication methods supported by the token endpoint of the service.

The value of this property is used as `token_endpoint_auth_methods_supports` property in the
[OpenID Provider Metadata](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
| @@ -187,4 +188,5 @@ | `cimd_http_permitted` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Allows CIMD retrieval over plain HTTP. When `false`, only HTTPS CIMD
endpoints are allowed.
| | `cimd_query_permitted` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Allows the use of query parameters when retrieving CIMD metadata. When
`false`, query parameters are disallowed for CIMD requests.
| | `cimd_metadata_policy` | *T.nilable(::String)* | :heavy_minus_sign: | The metadata policy applied to client metadata obtained through the CIMD
mechanism. The value must follow the metadata policy grammar defined in
[OpenID Federation 1.0 §6.1 Metadata Policy](https://openid.net/specs/openid-federation-1_0.html#name-metadata-policy).
| -| `http_alias_prohibited` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | When `true`, client ID aliases starting with `https://` or `http://` are
prohibited.
| \ No newline at end of file +| `http_alias_prohibited` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | When `true`, client ID aliases starting with `https://` or `http://` are
prohibited.
| +| `attestation_challenge_time_window` | *T.nilable(::Integer)* | :heavy_minus_sign: | The time window of attestation challenges in seconds. This is used for
OAuth 2.0 Attestation-Based Client Authentication.
| \ No newline at end of file diff --git a/docs/models/components/serviceinput.md b/docs/models/components/serviceinput.md index f7d5a9b..ccf2fb1 100644 --- a/docs/models/components/serviceinput.md +++ b/docs/models/components/serviceinput.md @@ -34,6 +34,7 @@ | `pkce_required` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The flag to indicate whether the use of Proof Key for Code Exchange (PKCE) is always required for authorization requests by Authorization Code Flow.

If `true`, `code_challenge` request parameter is always required for authorization requests using Authorization Code Flow.

See [RFC 7636](https://tools.ietf.org/html/rfc7636) (Proof Key for Code Exchange by OAuth Public Clients) for details about `code_challenge` request parameter.
| | `pkce_s256_required` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The flag to indicate whether `S256` is always required as the code challenge method whenever [PKCE (RFC 7636)](https://tools.ietf.org/html/rfc7636) is used.

If this flag is set to `true`, `code_challenge_method=S256` must be included in the authorization request
whenever it includes the `code_challenge` request parameter.
Neither omission of the `code_challenge_method` request parameter nor use of plain (`code_challenge_method=plain`) is allowed.
| | `authorization_response_duration` | *T.nilable(::Integer)* | :heavy_minus_sign: | The duration of authorization response JWTs in seconds.

[Financial-grade API: JWT Secured Authorization Response Mode for OAuth 2.0 (JARM)](https://openid.net/specs/openid-financial-api-jarm.html)
defines new values for the `response_mode` request parameter. They are `query.jwt`, `fragment.jwt`,
`form_post.jwt` and `jwt`. If one of them is specified as the response mode, response parameters
from the authorization endpoint will be packed into a JWT. This property is used to compute the
value of the `exp` claim of the JWT.
| +| `authorization_code_duration` | *T.nilable(::Integer)* | :heavy_minus_sign: | The duration of authorization codes in seconds.
| | `token_endpoint` | *T.nilable(::String)* | :heavy_minus_sign: | The [token endpoint](https://tools.ietf.org/html/rfc6749#section-3.2) of the service.

A URL that starts with `https://` and has not fragment component. For example, `https://example.com/auth/token`.

The value of this property is used as `token_endpoint` property in the
[OpenID Provider Metadata](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
| | `direct_token_endpoint_enabled` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The flag to indicate whether the direct token endpoint is enabled or not. The path of the endpoint
is `/api/auth/token/direct/service-api-key`.
| | `supported_token_auth_methods` | T::Array<[Models::Components::ClientAuthMethod](../../models/shared/clientauthmethod.md)> | :heavy_minus_sign: | Client authentication methods supported by the token endpoint of the service.

The value of this property is used as `token_endpoint_auth_methods_supports` property in the
[OpenID Provider Metadata](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
| @@ -180,4 +181,5 @@ | `cimd_http_permitted` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Allows CIMD retrieval over plain HTTP. When `false`, only HTTPS CIMD
endpoints are allowed.
| | `cimd_query_permitted` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Allows the use of query parameters when retrieving CIMD metadata. When
`false`, query parameters are disallowed for CIMD requests.
| | `cimd_metadata_policy` | *T.nilable(::String)* | :heavy_minus_sign: | The metadata policy applied to client metadata obtained through the CIMD
mechanism. The value must follow the metadata policy grammar defined in
[OpenID Federation 1.0 §6.1 Metadata Policy](https://openid.net/specs/openid-federation-1_0.html#name-metadata-policy).
| -| `http_alias_prohibited` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | When `true`, client ID aliases starting with `https://` or `http://` are
prohibited.
| \ No newline at end of file +| `http_alias_prohibited` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | When `true`, client ID aliases starting with `https://` or `http://` are
prohibited.
| +| `attestation_challenge_time_window` | *T.nilable(::Integer)* | :heavy_minus_sign: | The time window of attestation challenges in seconds. This is used for
OAuth 2.0 Attestation-Based Client Authentication.
| \ No newline at end of file diff --git a/docs/sdks/services/README.md b/docs/sdks/services/README.md index 266e446..6b57d63 100644 --- a/docs/sdks/services/README.md +++ b/docs/sdks/services/README.md @@ -268,6 +268,7 @@ res = s.services.update(service_id: '', service: Models::Components::Service pkce_required: true, pkce_s256_required: false, authorization_response_duration: 0, + authorization_code_duration: 0, token_endpoint: 'https://my-service.example.com/token', direct_token_endpoint_enabled: false, supported_token_auth_methods: [ diff --git a/lib/authlete/authorization.rb b/lib/authlete/authorization.rb index b6802e4..4fae3b2 100644 --- a/lib/authlete/authorization.rb +++ b/lib/authlete/authorization.rb @@ -79,7 +79,7 @@ def process_request(authorization_request:, service_id:, timeout_ms: nil, http_h timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -94,7 +94,7 @@ def process_request(authorization_request:, service_id:, timeout_ms: nil, http_h error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -131,13 +131,13 @@ def process_request(authorization_request:, service_id:, timeout_ms: nil, http_h response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -239,7 +239,7 @@ def fail_request(authorization_fail_request:, service_id:, timeout_ms: nil, http timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -254,7 +254,7 @@ def fail_request(authorization_fail_request:, service_id:, timeout_ms: nil, http error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -291,13 +291,13 @@ def fail_request(authorization_fail_request:, service_id:, timeout_ms: nil, http response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -399,7 +399,7 @@ def issue_response(authorization_issue_request:, service_id:, timeout_ms: nil, h timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -414,7 +414,7 @@ def issue_response(authorization_issue_request:, service_id:, timeout_ms: nil, h error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -451,13 +451,13 @@ def issue_response(authorization_issue_request:, service_id:, timeout_ms: nil, h response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/authorization_management.rb b/lib/authlete/authorization_management.rb index 619239e..0d3ae7d 100644 --- a/lib/authlete/authorization_management.rb +++ b/lib/authlete/authorization_management.rb @@ -76,7 +76,7 @@ def ticket_info(authorization_ticket_info_request:, service_id:, timeout_ms: nil timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -91,7 +91,7 @@ def ticket_info(authorization_ticket_info_request:, service_id:, timeout_ms: nil error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -128,13 +128,13 @@ def ticket_info(authorization_ticket_info_request:, service_id:, timeout_ms: nil response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -233,7 +233,7 @@ def update_ticket(authorization_ticket_update_request:, service_id:, timeout_ms: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -248,7 +248,7 @@ def update_ticket(authorization_ticket_update_request:, service_id:, timeout_ms: error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -285,13 +285,13 @@ def update_ticket(authorization_ticket_update_request:, service_id:, timeout_ms: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/ciba.rb b/lib/authlete/ciba.rb index 8a8563a..52a2460 100644 --- a/lib/authlete/ciba.rb +++ b/lib/authlete/ciba.rb @@ -80,7 +80,7 @@ def process_authentication(backchannel_authentication_request:, service_id:, tim timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -95,7 +95,7 @@ def process_authentication(backchannel_authentication_request:, service_id:, tim error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -132,13 +132,13 @@ def process_authentication(backchannel_authentication_request:, service_id:, tim response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -240,7 +240,7 @@ def issue_response(backchannel_authentication_issue_request:, service_id:, timeo timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -255,7 +255,7 @@ def issue_response(backchannel_authentication_issue_request:, service_id:, timeo error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -292,13 +292,13 @@ def issue_response(backchannel_authentication_issue_request:, service_id:, timeo response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -400,7 +400,7 @@ def fail_request(backchannel_authentication_fail_request:, service_id:, timeout_ timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -415,7 +415,7 @@ def fail_request(backchannel_authentication_fail_request:, service_id:, timeout_ error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -452,13 +452,13 @@ def fail_request(backchannel_authentication_fail_request:, service_id:, timeout_ response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -561,7 +561,7 @@ def complete_request(backchannel_authentication_complete_request:, service_id:, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -576,7 +576,7 @@ def complete_request(backchannel_authentication_complete_request:, service_id:, error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -613,13 +613,13 @@ def complete_request(backchannel_authentication_complete_request:, service_id:, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/client_management.rb b/lib/authlete/client_management.rb index 7e268f4..19bea74 100644 --- a/lib/authlete/client_management.rb +++ b/lib/authlete/client_management.rb @@ -78,7 +78,7 @@ def update_lock_flag(service_id:, client_identifier:, client_flag_update_request timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -93,7 +93,7 @@ def update_lock_flag(service_id:, client_identifier:, client_flag_update_request error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -130,13 +130,13 @@ def update_lock_flag(service_id:, client_identifier:, client_flag_update_request response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -229,7 +229,7 @@ def refresh_secret(service_id:, client_identifier:, timeout_ms: nil, http_header timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -244,7 +244,7 @@ def refresh_secret(service_id:, client_identifier:, timeout_ms: nil, http_header error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -280,13 +280,13 @@ def refresh_secret(service_id:, client_identifier:, timeout_ms: nil, http_header response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -391,7 +391,7 @@ def update_secret(client_secret_update_request:, service_id:, client_identifier: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -406,7 +406,7 @@ def update_secret(client_secret_update_request:, service_id:, client_identifier: error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -443,13 +443,13 @@ def update_secret(client_secret_update_request:, service_id:, client_identifier: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -537,7 +537,7 @@ def authorizations(request:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -552,7 +552,7 @@ def authorizations(request:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -589,13 +589,13 @@ def authorizations(request:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -696,7 +696,7 @@ def update_authorizations(service_id:, client_id:, client_authorization_update_r timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -711,7 +711,7 @@ def update_authorizations(service_id:, client_id:, client_authorization_update_r error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -748,13 +748,13 @@ def update_authorizations(service_id:, client_id:, client_authorization_update_r response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -846,7 +846,7 @@ def destroy_authorizations(service_id:, client_id:, subject:, timeout_ms: nil, h timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -861,7 +861,7 @@ def destroy_authorizations(service_id:, client_id:, subject:, timeout_ms: nil, h error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).delete(url) do |req| req.headers.merge!(headers) @@ -897,13 +897,13 @@ def destroy_authorizations(service_id:, client_id:, subject:, timeout_ms: nil, h response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -995,7 +995,7 @@ def granted_scopes(service_id:, client_id:, subject:, timeout_ms: nil, http_head timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -1010,7 +1010,7 @@ def granted_scopes(service_id:, client_id:, subject:, timeout_ms: nil, http_head error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -1046,13 +1046,13 @@ def granted_scopes(service_id:, client_id:, subject:, timeout_ms: nil, http_head response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1144,7 +1144,7 @@ def destroy_granted_scopes(service_id:, client_id:, subject:, timeout_ms: nil, h timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -1159,7 +1159,7 @@ def destroy_granted_scopes(service_id:, client_id:, subject:, timeout_ms: nil, h error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).delete(url) do |req| req.headers.merge!(headers) @@ -1195,13 +1195,13 @@ def destroy_granted_scopes(service_id:, client_id:, subject:, timeout_ms: nil, h response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1291,7 +1291,7 @@ def requestable_scopes(service_id:, client_id:, timeout_ms: nil, http_headers: n timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -1306,7 +1306,7 @@ def requestable_scopes(service_id:, client_id:, timeout_ms: nil, http_headers: n error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -1342,13 +1342,13 @@ def requestable_scopes(service_id:, client_id:, timeout_ms: nil, http_headers: n response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1450,7 +1450,7 @@ def update_requestable_scopes(client_extension_requestable_scopes_update_request timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -1465,7 +1465,7 @@ def update_requestable_scopes(client_extension_requestable_scopes_update_request error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).put(url) do |req| req.body = body @@ -1502,13 +1502,13 @@ def update_requestable_scopes(client_extension_requestable_scopes_update_request response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1598,7 +1598,7 @@ def destroy_requestable_scopes(service_id:, client_id:, timeout_ms: nil, http_he timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -1613,7 +1613,7 @@ def destroy_requestable_scopes(service_id:, client_id:, timeout_ms: nil, http_he error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).delete(url) do |req| req.headers.merge!(headers) @@ -1649,13 +1649,13 @@ def destroy_requestable_scopes(service_id:, client_id:, timeout_ms: nil, http_he response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['204']) http_response = @sdk_configuration.hooks.after_success( @@ -1735,7 +1735,7 @@ def client_authorization_get_list_api(request:, timeout_ms: nil, http_headers: n timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -1750,7 +1750,7 @@ def client_authorization_get_list_api(request:, timeout_ms: nil, http_headers: n error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -1787,13 +1787,13 @@ def client_authorization_get_list_api(request:, timeout_ms: nil, http_headers: n response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1896,7 +1896,7 @@ def client_authorization_get_list_api_post(client_authorization_get_list_request timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -1911,7 +1911,7 @@ def client_authorization_get_list_api_post(client_authorization_get_list_request error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -1948,13 +1948,13 @@ def client_authorization_get_list_api_post(client_authorization_get_list_request response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -2048,7 +2048,7 @@ def client_authorization_delete_api(service_id:, client_id:, subject:, timeout_m timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -2063,7 +2063,7 @@ def client_authorization_delete_api(service_id:, client_id:, subject:, timeout_m error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).delete(url) do |req| req.headers.merge!(headers) @@ -2100,13 +2100,13 @@ def client_authorization_delete_api(service_id:, client_id:, subject:, timeout_m response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -2210,7 +2210,7 @@ def client_authorization_delete_api_post(request_body:, service_id:, client_id:, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -2225,7 +2225,7 @@ def client_authorization_delete_api_post(request_body:, service_id:, client_id:, error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -2262,13 +2262,13 @@ def client_authorization_delete_api_post(request_body:, service_id:, client_id:, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -2330,7 +2330,7 @@ def client_granted_scopes_get_api(service_id:, client_id:, subject:, timeout_ms: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -2345,7 +2345,7 @@ def client_granted_scopes_get_api(service_id:, client_id:, subject:, timeout_ms: error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -2382,13 +2382,13 @@ def client_granted_scopes_get_api(service_id:, client_id:, subject:, timeout_ms: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -2492,7 +2492,7 @@ def client_granted_scopes_get_api_post(request_body:, service_id:, client_id:, t timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -2507,7 +2507,7 @@ def client_granted_scopes_get_api_post(request_body:, service_id:, client_id:, t error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -2544,13 +2544,13 @@ def client_granted_scopes_get_api_post(request_body:, service_id:, client_id:, t response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -2616,7 +2616,7 @@ def client_granted_scopes_delete_api(service_id:, client_id:, subject:, timeout_ timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -2631,7 +2631,7 @@ def client_granted_scopes_delete_api(service_id:, client_id:, subject:, timeout_ error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).delete(url) do |req| req.headers.merge!(headers) @@ -2668,13 +2668,13 @@ def client_granted_scopes_delete_api(service_id:, client_id:, subject:, timeout_ response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -2776,7 +2776,7 @@ def client_extension_requestables_scopes_update_api_post(client_extension_reques timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -2791,7 +2791,7 @@ def client_extension_requestables_scopes_update_api_post(client_extension_reques error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -2828,13 +2828,13 @@ def client_extension_requestables_scopes_update_api_post(client_extension_reques response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/clients.rb b/lib/authlete/clients.rb index 2622cb2..9500d37 100644 --- a/lib/authlete/clients.rb +++ b/lib/authlete/clients.rb @@ -67,7 +67,7 @@ def retrieve(service_id:, client_id:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -82,7 +82,7 @@ def retrieve(service_id:, client_id:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -118,13 +118,13 @@ def retrieve(service_id:, client_id:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -222,7 +222,7 @@ def list(service_id:, developer: nil, start: nil, end_: nil, timeout_ms: nil, ht timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -237,7 +237,7 @@ def list(service_id:, developer: nil, start: nil, end_: nil, timeout_ms: nil, ht error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -274,13 +274,13 @@ def list(service_id:, developer: nil, start: nil, end_: nil, timeout_ms: nil, ht response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -380,7 +380,7 @@ def create(service_id:, client: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -395,7 +395,7 @@ def create(service_id:, client: nil, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -432,13 +432,13 @@ def create(service_id:, client: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200', '201']) if Utils.match_content_type(content_type, 'application/json') @@ -539,7 +539,7 @@ def update(service_id:, client_id:, client: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -554,7 +554,7 @@ def update(service_id:, client_id:, client: nil, timeout_ms: nil, http_headers: error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -591,13 +591,13 @@ def update(service_id:, client_id:, client: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -698,7 +698,7 @@ def update_form(service_id:, client_id:, request_body: nil, timeout_ms: nil, htt timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -713,7 +713,7 @@ def update_form(service_id:, client_id:, request_body: nil, timeout_ms: nil, htt error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -750,13 +750,13 @@ def update_form(service_id:, client_id:, request_body: nil, timeout_ms: nil, htt response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -846,7 +846,7 @@ def destroy(service_id:, client_id:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -861,7 +861,7 @@ def destroy(service_id:, client_id:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).delete(url) do |req| req.headers.merge!(headers) @@ -897,13 +897,13 @@ def destroy(service_id:, client_id:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['204']) http_response = @sdk_configuration.hooks.after_success( diff --git a/lib/authlete/device_flow.rb b/lib/authlete/device_flow.rb index e994316..e438efc 100644 --- a/lib/authlete/device_flow.rb +++ b/lib/authlete/device_flow.rb @@ -80,7 +80,7 @@ def authorization(device_authorization_request:, service_id:, timeout_ms: nil, h timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -95,7 +95,7 @@ def authorization(device_authorization_request:, service_id:, timeout_ms: nil, h error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -132,13 +132,13 @@ def authorization(device_authorization_request:, service_id:, timeout_ms: nil, h response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -239,7 +239,7 @@ def verification(device_verification_request:, service_id:, timeout_ms: nil, htt timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -254,7 +254,7 @@ def verification(device_verification_request:, service_id:, timeout_ms: nil, htt error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -291,13 +291,13 @@ def verification(device_verification_request:, service_id:, timeout_ms: nil, htt response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -400,7 +400,7 @@ def complete_request(device_complete_request:, service_id:, timeout_ms: nil, htt timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -415,7 +415,7 @@ def complete_request(device_complete_request:, service_id:, timeout_ms: nil, htt error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -452,13 +452,13 @@ def complete_request(device_complete_request:, service_id:, timeout_ms: nil, htt response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/dynamic_client_registration.rb b/lib/authlete/dynamic_client_registration.rb index 5370831..5955315 100644 --- a/lib/authlete/dynamic_client_registration.rb +++ b/lib/authlete/dynamic_client_registration.rb @@ -80,7 +80,7 @@ def register(request_body:, service_id:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -95,7 +95,7 @@ def register(request_body:, service_id:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -132,13 +132,13 @@ def register(request_body:, service_id:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -241,7 +241,7 @@ def retrieve(request_body:, service_id:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -256,7 +256,7 @@ def retrieve(request_body:, service_id:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -293,13 +293,13 @@ def retrieve(request_body:, service_id:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -402,7 +402,7 @@ def update(request_body:, service_id:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -417,7 +417,7 @@ def update(request_body:, service_id:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -454,13 +454,13 @@ def update(request_body:, service_id:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -563,7 +563,7 @@ def destroy(request_body:, service_id:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -578,7 +578,7 @@ def destroy(request_body:, service_id:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -615,13 +615,13 @@ def destroy(request_body:, service_id:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/federation.rb b/lib/authlete/federation.rb index dcf4992..f41b4c5 100644 --- a/lib/authlete/federation.rb +++ b/lib/authlete/federation.rb @@ -81,7 +81,7 @@ def configuration(service_id:, request_body: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -96,7 +96,7 @@ def configuration(service_id:, request_body: nil, timeout_ms: nil, http_headers: error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -133,13 +133,13 @@ def configuration(service_id:, request_body: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -260,7 +260,7 @@ def registration(federation_registration_request:, service_id:, timeout_ms: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -275,7 +275,7 @@ def registration(federation_registration_request:, service_id:, timeout_ms: nil, error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -312,13 +312,13 @@ def registration(federation_registration_request:, service_id:, timeout_ms: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/grant_management.rb b/lib/authlete/grant_management.rb index 39d82a8..eee52d8 100644 --- a/lib/authlete/grant_management.rb +++ b/lib/authlete/grant_management.rb @@ -79,7 +79,7 @@ def process_request(g_m_request:, service_id:, timeout_ms: nil, http_headers: ni timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -94,7 +94,7 @@ def process_request(g_m_request:, service_id:, timeout_ms: nil, http_headers: ni error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -131,13 +131,13 @@ def process_request(g_m_request:, service_id:, timeout_ms: nil, http_headers: ni response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/hardware_security_keys.rb b/lib/authlete/hardware_security_keys.rb index c42a467..076ad1a 100644 --- a/lib/authlete/hardware_security_keys.rb +++ b/lib/authlete/hardware_security_keys.rb @@ -76,7 +76,7 @@ def create(hsk_create_request:, service_id:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -91,7 +91,7 @@ def create(hsk_create_request:, service_id:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -128,13 +128,13 @@ def create(hsk_create_request:, service_id:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -222,7 +222,7 @@ def destroy(service_id:, handle:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -237,7 +237,7 @@ def destroy(service_id:, handle:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).delete(url) do |req| req.headers.merge!(headers) @@ -273,13 +273,13 @@ def destroy(service_id:, handle:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['204']) if Utils.match_content_type(content_type, 'application/json') @@ -367,7 +367,7 @@ def retrieve(service_id:, handle:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -382,7 +382,7 @@ def retrieve(service_id:, handle:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -418,13 +418,13 @@ def retrieve(service_id:, handle:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -511,7 +511,7 @@ def list(service_id:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -526,7 +526,7 @@ def list(service_id:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -562,13 +562,13 @@ def list(service_id:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/introspection.rb b/lib/authlete/introspection.rb index 39d26a9..83a80b0 100644 --- a/lib/authlete/introspection.rb +++ b/lib/authlete/introspection.rb @@ -78,7 +78,7 @@ def process_request(introspection_request:, service_id:, timeout_ms: nil, http_h timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -93,7 +93,7 @@ def process_request(introspection_request:, service_id:, timeout_ms: nil, http_h error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -130,13 +130,13 @@ def process_request(introspection_request:, service_id:, timeout_ms: nil, http_h response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -238,7 +238,7 @@ def standard_process(standard_introspection_request:, service_id:, timeout_ms: n timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -253,7 +253,7 @@ def standard_process(standard_introspection_request:, service_id:, timeout_ms: n error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -290,13 +290,13 @@ def standard_process(standard_introspection_request:, service_id:, timeout_ms: n response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/jose_object.rb b/lib/authlete/jose_object.rb index c9641c3..c4c0b41 100644 --- a/lib/authlete/jose_object.rb +++ b/lib/authlete/jose_object.rb @@ -77,7 +77,7 @@ def jose_verify_api(service_id:, jose_verify_request: nil, timeout_ms: nil, http timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -92,7 +92,7 @@ def jose_verify_api(service_id:, jose_verify_request: nil, timeout_ms: nil, http error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -129,13 +129,13 @@ def jose_verify_api(service_id:, jose_verify_request: nil, timeout_ms: nil, http response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/jwk_set_endpoint.rb b/lib/authlete/jwk_set_endpoint.rb index 425d2fc..0db589b 100644 --- a/lib/authlete/jwk_set_endpoint.rb +++ b/lib/authlete/jwk_set_endpoint.rb @@ -76,7 +76,7 @@ def service_jwks_get_api(service_id:, include_private_keys: nil, pretty: nil, ti timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -91,7 +91,7 @@ def service_jwks_get_api(service_id:, include_private_keys: nil, pretty: nil, ti error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -128,13 +128,13 @@ def service_jwks_get_api(service_id:, include_private_keys: nil, pretty: nil, ti response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/lifecycle.rb b/lib/authlete/lifecycle.rb index 7eb85b4..93b0325 100644 --- a/lib/authlete/lifecycle.rb +++ b/lib/authlete/lifecycle.rb @@ -60,7 +60,7 @@ def get_api_lifecycle_healthcheck(extended: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -75,7 +75,7 @@ def get_api_lifecycle_healthcheck(extended: nil, timeout_ms: nil, http_headers: error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -111,13 +111,13 @@ def get_api_lifecycle_healthcheck(extended: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'text/plain') diff --git a/lib/authlete/models/components/service.rb b/lib/authlete/models/components/service.rb index 21c5dca..55116c6 100644 --- a/lib/authlete/models/components/service.rb +++ b/lib/authlete/models/components/service.rb @@ -194,6 +194,9 @@ class Service # value of the `exp` claim of the JWT. # field :authorization_response_duration, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('authorizationResponseDuration') } } + # The duration of authorization codes in seconds. + # + field :authorization_code_duration, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('authorizationCodeDuration') } } # The [token endpoint](https://tools.ietf.org/html/rfc6749#section-3.2) of the service. # # A URL that starts with `https://` and has not fragment component. For example, `https://example.com/auth/token`. @@ -891,6 +894,10 @@ class Service # prohibited. # field :http_alias_prohibited, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('httpAliasProhibited') } } + # The time window of attestation challenges in seconds. This is used for + # OAuth 2.0 Attestation-Based Client Authentication. + # + field :attestation_challenge_time_window, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('attestationChallengeTimeWindow') } } # The signature algorithm for JWT. This value is represented on 'alg' attribute # of the header of JWT. # @@ -901,8 +908,8 @@ class Service # field :access_token_sign_alg, Crystalline::Nilable.new(Models::Components::JwsAlg), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('accessTokenSignAlg'), 'decoder': ::Authlete::Utils.enum_from_string(Models::Components::JwsAlg, true) } } - sig { params(number: T.nilable(::Integer), service_name: T.nilable(::String), issuer: T.nilable(::String), description: T.nilable(::String), api_key: T.nilable(::Integer), api_secret: T.nilable(::String), token_batch_notification_endpoint: T.nilable(::String), client_assertion_aud_restricted_to_issuer: T.nilable(T::Boolean), service_owner_number: T.nilable(::Integer), clients_per_developer: T.nilable(::Integer), developer_authentication_callback_endpoint: T.nilable(::String), developer_authentication_callback_api_key: T.nilable(::String), developer_authentication_callback_api_secret: T.nilable(::String), supported_snses: T.nilable(T::Array[Models::Components::SupportedSnse]), sns_credentials: T.nilable(T::Array[Models::Components::SnsCredentials]), client_id_alias_enabled: T.nilable(T::Boolean), metadata: T.nilable(T::Array[Models::Components::Pair]), created_at: T.nilable(::Integer), modified_at: T.nilable(::Integer), authentication_callback_endpoint: T.nilable(::String), authentication_callback_api_key: T.nilable(::String), authentication_callback_api_secret: T.nilable(::String), supported_acrs: T.nilable(T::Array[::String]), supported_grant_types: T.nilable(T::Array[Models::Components::GrantType]), supported_response_types: T.nilable(T::Array[Models::Components::ResponseType]), supported_authorization_details_types: T.nilable(T::Array[::String]), supported_service_profiles: T.nilable(T::Array[Models::Components::ServiceProfile]), error_description_omitted: T.nilable(T::Boolean), error_uri_omitted: T.nilable(T::Boolean), authorization_endpoint: T.nilable(::String), direct_authorization_endpoint_enabled: T.nilable(T::Boolean), supported_ui_locales: T.nilable(T::Array[::String]), supported_displays: T.nilable(T::Array[Models::Components::Display]), pkce_required: T.nilable(T::Boolean), pkce_s256_required: T.nilable(T::Boolean), authorization_response_duration: T.nilable(::Integer), token_endpoint: T.nilable(::String), direct_token_endpoint_enabled: T.nilable(T::Boolean), supported_token_auth_methods: T.nilable(T::Array[Models::Components::ClientAuthMethod]), missing_client_id_allowed: T.nilable(T::Boolean), revocation_endpoint: T.nilable(::String), direct_revocation_endpoint_enabled: T.nilable(T::Boolean), supported_revocation_auth_methods: T.nilable(T::Array[Models::Components::ClientAuthMethod]), introspection_endpoint: T.nilable(::String), direct_introspection_endpoint_enabled: T.nilable(T::Boolean), supported_introspection_auth_methods: T.nilable(T::Array[Models::Components::ClientAuthMethod]), pushed_auth_req_endpoint: T.nilable(::String), pushed_auth_req_duration: T.nilable(::Integer), par_required: T.nilable(T::Boolean), request_object_required: T.nilable(T::Boolean), traditional_request_object_processing_applied: T.nilable(T::Boolean), mutual_tls_validate_pki_cert_chain: T.nilable(T::Boolean), trusted_root_certificates: T.nilable(T::Array[::String]), mtls_endpoint_aliases: T.nilable(T::Array[Models::Components::NamedUri]), access_token_type: T.nilable(::String), tls_client_certificate_bound_access_tokens: T.nilable(T::Boolean), access_token_duration: T.nilable(::Integer), single_access_token_per_subject: T.nilable(T::Boolean), access_token_signature_key_id: T.nilable(::String), refresh_token_duration: T.nilable(::Integer), refresh_token_duration_kept: T.nilable(T::Boolean), refresh_token_duration_reset: T.nilable(T::Boolean), refresh_token_kept: T.nilable(T::Boolean), supported_scopes: T.nilable(T::Array[Models::Components::Scope]), scope_required: T.nilable(T::Boolean), id_token_duration: T.nilable(::Integer), allowable_clock_skew: T.nilable(::Integer), supported_claim_types: T.nilable(T::Array[Models::Components::ClaimType]), supported_claim_locales: T.nilable(T::Array[::String]), supported_claims: T.nilable(T::Array[::String]), claim_shortcut_restrictive: T.nilable(T::Boolean), jwks_uri: T.nilable(::String), direct_jwks_endpoint_enabled: T.nilable(T::Boolean), jwks: T.nilable(::String), id_token_signature_key_id: T.nilable(::String), user_info_signature_key_id: T.nilable(::String), authorization_signature_key_id: T.nilable(::String), user_info_endpoint: T.nilable(::String), direct_user_info_endpoint_enabled: T.nilable(T::Boolean), dynamic_registration_supported: T.nilable(T::Boolean), registration_endpoint: T.nilable(::String), registration_management_endpoint: T.nilable(::String), policy_uri: T.nilable(::String), tos_uri: T.nilable(::String), service_documentation: T.nilable(::String), backchannel_authentication_endpoint: T.nilable(::String), supported_backchannel_token_delivery_modes: T.nilable(T::Array[Models::Components::DeliveryMode]), backchannel_auth_req_id_duration: T.nilable(::Integer), backchannel_polling_interval: T.nilable(::Integer), backchannel_user_code_parameter_supported: T.nilable(T::Boolean), backchannel_binding_message_required_in_fapi: T.nilable(T::Boolean), device_authorization_endpoint: T.nilable(::String), device_verification_uri: T.nilable(::String), device_verification_uri_complete: T.nilable(::String), device_flow_code_duration: T.nilable(::Integer), device_flow_polling_interval: T.nilable(::Integer), user_code_charset: T.nilable(Models::Components::UserCodeCharset), user_code_length: T.nilable(::Integer), supported_trust_frameworks: T.nilable(T::Array[::String]), supported_evidence: T.nilable(T::Array[::String]), supported_identity_documents: T.nilable(T::Array[::String]), supported_verification_methods: T.nilable(T::Array[::String]), supported_verified_claims: T.nilable(T::Array[::String]), verified_claims_validation_schema_set: T.nilable(Models::Components::VerifiedClaimsValidationSchema), attributes: T.nilable(T::Array[Models::Components::Pair]), nbf_optional: T.nilable(T::Boolean), iss_suppressed: T.nilable(T::Boolean), supported_custom_client_metadata: T.nilable(T::Array[::String]), token_expiration_linked: T.nilable(T::Boolean), front_channel_request_object_encryption_required: T.nilable(T::Boolean), request_object_encryption_alg_match_required: T.nilable(T::Boolean), request_object_encryption_enc_match_required: T.nilable(T::Boolean), hsm_enabled: T.nilable(T::Boolean), hsks: T.nilable(T::Array[Models::Components::Hsk]), grant_management_endpoint: T.nilable(::String), grant_management_action_required: T.nilable(T::Boolean), unauthorized_on_client_config_supported: T.nilable(T::Boolean), dcr_scope_used_as_requestable: T.nilable(T::Boolean), end_session_endpoint: T.nilable(::String), loopback_redirection_uri_variable: T.nilable(T::Boolean), request_object_audience_checked: T.nilable(T::Boolean), access_token_for_external_attachment_embedded: T.nilable(T::Boolean), authority_hints: T.nilable(T::Array[::String]), federation_enabled: T.nilable(T::Boolean), federation_jwks: T.nilable(::String), federation_signature_key_id: T.nilable(::String), federation_configuration_duration: T.nilable(::Integer), federation_registration_endpoint: T.nilable(::String), organization_name: T.nilable(::String), predefined_transformed_claims: T.nilable(::String), refresh_token_idempotent: T.nilable(T::Boolean), signed_jwks_uri: T.nilable(::String), supported_attachments: T.nilable(T::Array[Models::Components::AttachmentType]), supported_digest_algorithms: T.nilable(T::Array[::String]), supported_documents: T.nilable(T::Array[::String]), supported_documents_methods: T.nilable(T::Array[::String]), supported_documents_validation_methods: T.nilable(T::Array[::String]), supported_documents_verification_methods: T.nilable(T::Array[::String]), supported_electronic_records: T.nilable(T::Array[::String]), supported_client_registration_types: T.nilable(T::Array[Models::Components::ClientRegistrationType]), token_exchange_by_identifiable_clients_only: T.nilable(T::Boolean), token_exchange_by_confidential_clients_only: T.nilable(T::Boolean), token_exchange_by_permitted_clients_only: T.nilable(T::Boolean), token_exchange_encrypted_jwt_rejected: T.nilable(T::Boolean), token_exchange_unsigned_jwt_rejected: T.nilable(T::Boolean), jwt_grant_by_identifiable_clients_only: T.nilable(T::Boolean), jwt_grant_encrypted_jwt_rejected: T.nilable(T::Boolean), jwt_grant_unsigned_jwt_rejected: T.nilable(T::Boolean), dcr_duplicate_software_id_blocked: T.nilable(T::Boolean), trust_anchors: T.nilable(T::Array[Models::Components::TrustAnchor]), openid_dropped_on_refresh_without_offline_access: T.nilable(T::Boolean), supported_documents_check_methods: T.nilable(T::Array[::String]), rs_response_signed: T.nilable(T::Boolean), cnonce_duration: T.nilable(::Integer), dpop_nonce_required: T.nilable(T::Boolean), verifiable_credentials_enabled: T.nilable(T::Boolean), credential_jwks_uri: T.nilable(::String), credential_offer_duration: T.nilable(::Integer), dpop_nonce_duration: T.nilable(::Integer), pre_authorized_grant_anonymous_access_supported: T.nilable(T::Boolean), credential_transaction_duration: T.nilable(::Integer), introspection_signature_key_id: T.nilable(::String), resource_signature_key_id: T.nilable(::String), user_pin_length: T.nilable(::Integer), supported_prompt_values: T.nilable(T::Array[Models::Components::Prompt]), id_token_reissuable: T.nilable(T::Boolean), credential_jwks: T.nilable(::String), fapi_modes: T.nilable(T::Array[Models::Components::FapiMode]), credential_duration: T.nilable(::Integer), credential_issuer_metadata: T.nilable(Models::Components::CredentialIssuerMetadata), id_token_aud_type: T.nilable(::String), native_sso_supported: T.nilable(T::Boolean), oid4vci_version: T.nilable(::String), cimd_metadata_policy_enabled: T.nilable(T::Boolean), client_id_metadata_document_supported: T.nilable(T::Boolean), cimd_allowlist_enabled: T.nilable(T::Boolean), cimd_allowlist: T.nilable(T::Array[::String]), cimd_always_retrieved: T.nilable(T::Boolean), cimd_http_permitted: T.nilable(T::Boolean), cimd_query_permitted: T.nilable(T::Boolean), cimd_metadata_policy: T.nilable(::String), http_alias_prohibited: T.nilable(T::Boolean), access_token_sign_alg: T.nilable(Models::Components::JwsAlg)).void } - def initialize(number: nil, service_name: nil, issuer: nil, description: nil, api_key: nil, api_secret: nil, token_batch_notification_endpoint: nil, client_assertion_aud_restricted_to_issuer: nil, service_owner_number: nil, clients_per_developer: nil, developer_authentication_callback_endpoint: nil, developer_authentication_callback_api_key: nil, developer_authentication_callback_api_secret: nil, supported_snses: nil, sns_credentials: nil, client_id_alias_enabled: nil, metadata: nil, created_at: nil, modified_at: nil, authentication_callback_endpoint: nil, authentication_callback_api_key: nil, authentication_callback_api_secret: nil, supported_acrs: nil, supported_grant_types: nil, supported_response_types: nil, supported_authorization_details_types: nil, supported_service_profiles: nil, error_description_omitted: nil, error_uri_omitted: nil, authorization_endpoint: nil, direct_authorization_endpoint_enabled: nil, supported_ui_locales: nil, supported_displays: nil, pkce_required: nil, pkce_s256_required: nil, authorization_response_duration: nil, token_endpoint: nil, direct_token_endpoint_enabled: nil, supported_token_auth_methods: nil, missing_client_id_allowed: nil, revocation_endpoint: nil, direct_revocation_endpoint_enabled: nil, supported_revocation_auth_methods: nil, introspection_endpoint: nil, direct_introspection_endpoint_enabled: nil, supported_introspection_auth_methods: nil, pushed_auth_req_endpoint: nil, pushed_auth_req_duration: nil, par_required: nil, request_object_required: nil, traditional_request_object_processing_applied: nil, mutual_tls_validate_pki_cert_chain: nil, trusted_root_certificates: nil, mtls_endpoint_aliases: nil, access_token_type: nil, tls_client_certificate_bound_access_tokens: nil, access_token_duration: nil, single_access_token_per_subject: nil, access_token_signature_key_id: nil, refresh_token_duration: nil, refresh_token_duration_kept: nil, refresh_token_duration_reset: nil, refresh_token_kept: nil, supported_scopes: nil, scope_required: nil, id_token_duration: nil, allowable_clock_skew: nil, supported_claim_types: nil, supported_claim_locales: nil, supported_claims: nil, claim_shortcut_restrictive: nil, jwks_uri: nil, direct_jwks_endpoint_enabled: nil, jwks: nil, id_token_signature_key_id: nil, user_info_signature_key_id: nil, authorization_signature_key_id: nil, user_info_endpoint: nil, direct_user_info_endpoint_enabled: nil, dynamic_registration_supported: nil, registration_endpoint: nil, registration_management_endpoint: nil, policy_uri: nil, tos_uri: nil, service_documentation: nil, backchannel_authentication_endpoint: nil, supported_backchannel_token_delivery_modes: nil, backchannel_auth_req_id_duration: nil, backchannel_polling_interval: nil, backchannel_user_code_parameter_supported: nil, backchannel_binding_message_required_in_fapi: nil, device_authorization_endpoint: nil, device_verification_uri: nil, device_verification_uri_complete: nil, device_flow_code_duration: nil, device_flow_polling_interval: nil, user_code_charset: nil, user_code_length: nil, supported_trust_frameworks: nil, supported_evidence: nil, supported_identity_documents: nil, supported_verification_methods: nil, supported_verified_claims: nil, verified_claims_validation_schema_set: nil, attributes: nil, nbf_optional: nil, iss_suppressed: nil, supported_custom_client_metadata: nil, token_expiration_linked: nil, front_channel_request_object_encryption_required: nil, request_object_encryption_alg_match_required: nil, request_object_encryption_enc_match_required: nil, hsm_enabled: nil, hsks: nil, grant_management_endpoint: nil, grant_management_action_required: nil, unauthorized_on_client_config_supported: nil, dcr_scope_used_as_requestable: nil, end_session_endpoint: nil, loopback_redirection_uri_variable: nil, request_object_audience_checked: nil, access_token_for_external_attachment_embedded: nil, authority_hints: nil, federation_enabled: nil, federation_jwks: nil, federation_signature_key_id: nil, federation_configuration_duration: nil, federation_registration_endpoint: nil, organization_name: nil, predefined_transformed_claims: nil, refresh_token_idempotent: nil, signed_jwks_uri: nil, supported_attachments: nil, supported_digest_algorithms: nil, supported_documents: nil, supported_documents_methods: nil, supported_documents_validation_methods: nil, supported_documents_verification_methods: nil, supported_electronic_records: nil, supported_client_registration_types: nil, token_exchange_by_identifiable_clients_only: nil, token_exchange_by_confidential_clients_only: nil, token_exchange_by_permitted_clients_only: nil, token_exchange_encrypted_jwt_rejected: nil, token_exchange_unsigned_jwt_rejected: nil, jwt_grant_by_identifiable_clients_only: nil, jwt_grant_encrypted_jwt_rejected: nil, jwt_grant_unsigned_jwt_rejected: nil, dcr_duplicate_software_id_blocked: nil, trust_anchors: nil, openid_dropped_on_refresh_without_offline_access: nil, supported_documents_check_methods: nil, rs_response_signed: nil, cnonce_duration: nil, dpop_nonce_required: nil, verifiable_credentials_enabled: nil, credential_jwks_uri: nil, credential_offer_duration: nil, dpop_nonce_duration: nil, pre_authorized_grant_anonymous_access_supported: nil, credential_transaction_duration: nil, introspection_signature_key_id: nil, resource_signature_key_id: nil, user_pin_length: nil, supported_prompt_values: nil, id_token_reissuable: nil, credential_jwks: nil, fapi_modes: nil, credential_duration: nil, credential_issuer_metadata: nil, id_token_aud_type: nil, native_sso_supported: nil, oid4vci_version: nil, cimd_metadata_policy_enabled: nil, client_id_metadata_document_supported: nil, cimd_allowlist_enabled: nil, cimd_allowlist: nil, cimd_always_retrieved: nil, cimd_http_permitted: nil, cimd_query_permitted: nil, cimd_metadata_policy: nil, http_alias_prohibited: nil, access_token_sign_alg: nil) + sig { params(number: T.nilable(::Integer), service_name: T.nilable(::String), issuer: T.nilable(::String), description: T.nilable(::String), api_key: T.nilable(::Integer), api_secret: T.nilable(::String), token_batch_notification_endpoint: T.nilable(::String), client_assertion_aud_restricted_to_issuer: T.nilable(T::Boolean), service_owner_number: T.nilable(::Integer), clients_per_developer: T.nilable(::Integer), developer_authentication_callback_endpoint: T.nilable(::String), developer_authentication_callback_api_key: T.nilable(::String), developer_authentication_callback_api_secret: T.nilable(::String), supported_snses: T.nilable(T::Array[Models::Components::SupportedSnse]), sns_credentials: T.nilable(T::Array[Models::Components::SnsCredentials]), client_id_alias_enabled: T.nilable(T::Boolean), metadata: T.nilable(T::Array[Models::Components::Pair]), created_at: T.nilable(::Integer), modified_at: T.nilable(::Integer), authentication_callback_endpoint: T.nilable(::String), authentication_callback_api_key: T.nilable(::String), authentication_callback_api_secret: T.nilable(::String), supported_acrs: T.nilable(T::Array[::String]), supported_grant_types: T.nilable(T::Array[Models::Components::GrantType]), supported_response_types: T.nilable(T::Array[Models::Components::ResponseType]), supported_authorization_details_types: T.nilable(T::Array[::String]), supported_service_profiles: T.nilable(T::Array[Models::Components::ServiceProfile]), error_description_omitted: T.nilable(T::Boolean), error_uri_omitted: T.nilable(T::Boolean), authorization_endpoint: T.nilable(::String), direct_authorization_endpoint_enabled: T.nilable(T::Boolean), supported_ui_locales: T.nilable(T::Array[::String]), supported_displays: T.nilable(T::Array[Models::Components::Display]), pkce_required: T.nilable(T::Boolean), pkce_s256_required: T.nilable(T::Boolean), authorization_response_duration: T.nilable(::Integer), authorization_code_duration: T.nilable(::Integer), token_endpoint: T.nilable(::String), direct_token_endpoint_enabled: T.nilable(T::Boolean), supported_token_auth_methods: T.nilable(T::Array[Models::Components::ClientAuthMethod]), missing_client_id_allowed: T.nilable(T::Boolean), revocation_endpoint: T.nilable(::String), direct_revocation_endpoint_enabled: T.nilable(T::Boolean), supported_revocation_auth_methods: T.nilable(T::Array[Models::Components::ClientAuthMethod]), introspection_endpoint: T.nilable(::String), direct_introspection_endpoint_enabled: T.nilable(T::Boolean), supported_introspection_auth_methods: T.nilable(T::Array[Models::Components::ClientAuthMethod]), pushed_auth_req_endpoint: T.nilable(::String), pushed_auth_req_duration: T.nilable(::Integer), par_required: T.nilable(T::Boolean), request_object_required: T.nilable(T::Boolean), traditional_request_object_processing_applied: T.nilable(T::Boolean), mutual_tls_validate_pki_cert_chain: T.nilable(T::Boolean), trusted_root_certificates: T.nilable(T::Array[::String]), mtls_endpoint_aliases: T.nilable(T::Array[Models::Components::NamedUri]), access_token_type: T.nilable(::String), tls_client_certificate_bound_access_tokens: T.nilable(T::Boolean), access_token_duration: T.nilable(::Integer), single_access_token_per_subject: T.nilable(T::Boolean), access_token_signature_key_id: T.nilable(::String), refresh_token_duration: T.nilable(::Integer), refresh_token_duration_kept: T.nilable(T::Boolean), refresh_token_duration_reset: T.nilable(T::Boolean), refresh_token_kept: T.nilable(T::Boolean), supported_scopes: T.nilable(T::Array[Models::Components::Scope]), scope_required: T.nilable(T::Boolean), id_token_duration: T.nilable(::Integer), allowable_clock_skew: T.nilable(::Integer), supported_claim_types: T.nilable(T::Array[Models::Components::ClaimType]), supported_claim_locales: T.nilable(T::Array[::String]), supported_claims: T.nilable(T::Array[::String]), claim_shortcut_restrictive: T.nilable(T::Boolean), jwks_uri: T.nilable(::String), direct_jwks_endpoint_enabled: T.nilable(T::Boolean), jwks: T.nilable(::String), id_token_signature_key_id: T.nilable(::String), user_info_signature_key_id: T.nilable(::String), authorization_signature_key_id: T.nilable(::String), user_info_endpoint: T.nilable(::String), direct_user_info_endpoint_enabled: T.nilable(T::Boolean), dynamic_registration_supported: T.nilable(T::Boolean), registration_endpoint: T.nilable(::String), registration_management_endpoint: T.nilable(::String), policy_uri: T.nilable(::String), tos_uri: T.nilable(::String), service_documentation: T.nilable(::String), backchannel_authentication_endpoint: T.nilable(::String), supported_backchannel_token_delivery_modes: T.nilable(T::Array[Models::Components::DeliveryMode]), backchannel_auth_req_id_duration: T.nilable(::Integer), backchannel_polling_interval: T.nilable(::Integer), backchannel_user_code_parameter_supported: T.nilable(T::Boolean), backchannel_binding_message_required_in_fapi: T.nilable(T::Boolean), device_authorization_endpoint: T.nilable(::String), device_verification_uri: T.nilable(::String), device_verification_uri_complete: T.nilable(::String), device_flow_code_duration: T.nilable(::Integer), device_flow_polling_interval: T.nilable(::Integer), user_code_charset: T.nilable(Models::Components::UserCodeCharset), user_code_length: T.nilable(::Integer), supported_trust_frameworks: T.nilable(T::Array[::String]), supported_evidence: T.nilable(T::Array[::String]), supported_identity_documents: T.nilable(T::Array[::String]), supported_verification_methods: T.nilable(T::Array[::String]), supported_verified_claims: T.nilable(T::Array[::String]), verified_claims_validation_schema_set: T.nilable(Models::Components::VerifiedClaimsValidationSchema), attributes: T.nilable(T::Array[Models::Components::Pair]), nbf_optional: T.nilable(T::Boolean), iss_suppressed: T.nilable(T::Boolean), supported_custom_client_metadata: T.nilable(T::Array[::String]), token_expiration_linked: T.nilable(T::Boolean), front_channel_request_object_encryption_required: T.nilable(T::Boolean), request_object_encryption_alg_match_required: T.nilable(T::Boolean), request_object_encryption_enc_match_required: T.nilable(T::Boolean), hsm_enabled: T.nilable(T::Boolean), hsks: T.nilable(T::Array[Models::Components::Hsk]), grant_management_endpoint: T.nilable(::String), grant_management_action_required: T.nilable(T::Boolean), unauthorized_on_client_config_supported: T.nilable(T::Boolean), dcr_scope_used_as_requestable: T.nilable(T::Boolean), end_session_endpoint: T.nilable(::String), loopback_redirection_uri_variable: T.nilable(T::Boolean), request_object_audience_checked: T.nilable(T::Boolean), access_token_for_external_attachment_embedded: T.nilable(T::Boolean), authority_hints: T.nilable(T::Array[::String]), federation_enabled: T.nilable(T::Boolean), federation_jwks: T.nilable(::String), federation_signature_key_id: T.nilable(::String), federation_configuration_duration: T.nilable(::Integer), federation_registration_endpoint: T.nilable(::String), organization_name: T.nilable(::String), predefined_transformed_claims: T.nilable(::String), refresh_token_idempotent: T.nilable(T::Boolean), signed_jwks_uri: T.nilable(::String), supported_attachments: T.nilable(T::Array[Models::Components::AttachmentType]), supported_digest_algorithms: T.nilable(T::Array[::String]), supported_documents: T.nilable(T::Array[::String]), supported_documents_methods: T.nilable(T::Array[::String]), supported_documents_validation_methods: T.nilable(T::Array[::String]), supported_documents_verification_methods: T.nilable(T::Array[::String]), supported_electronic_records: T.nilable(T::Array[::String]), supported_client_registration_types: T.nilable(T::Array[Models::Components::ClientRegistrationType]), token_exchange_by_identifiable_clients_only: T.nilable(T::Boolean), token_exchange_by_confidential_clients_only: T.nilable(T::Boolean), token_exchange_by_permitted_clients_only: T.nilable(T::Boolean), token_exchange_encrypted_jwt_rejected: T.nilable(T::Boolean), token_exchange_unsigned_jwt_rejected: T.nilable(T::Boolean), jwt_grant_by_identifiable_clients_only: T.nilable(T::Boolean), jwt_grant_encrypted_jwt_rejected: T.nilable(T::Boolean), jwt_grant_unsigned_jwt_rejected: T.nilable(T::Boolean), dcr_duplicate_software_id_blocked: T.nilable(T::Boolean), trust_anchors: T.nilable(T::Array[Models::Components::TrustAnchor]), openid_dropped_on_refresh_without_offline_access: T.nilable(T::Boolean), supported_documents_check_methods: T.nilable(T::Array[::String]), rs_response_signed: T.nilable(T::Boolean), cnonce_duration: T.nilable(::Integer), dpop_nonce_required: T.nilable(T::Boolean), verifiable_credentials_enabled: T.nilable(T::Boolean), credential_jwks_uri: T.nilable(::String), credential_offer_duration: T.nilable(::Integer), dpop_nonce_duration: T.nilable(::Integer), pre_authorized_grant_anonymous_access_supported: T.nilable(T::Boolean), credential_transaction_duration: T.nilable(::Integer), introspection_signature_key_id: T.nilable(::String), resource_signature_key_id: T.nilable(::String), user_pin_length: T.nilable(::Integer), supported_prompt_values: T.nilable(T::Array[Models::Components::Prompt]), id_token_reissuable: T.nilable(T::Boolean), credential_jwks: T.nilable(::String), fapi_modes: T.nilable(T::Array[Models::Components::FapiMode]), credential_duration: T.nilable(::Integer), credential_issuer_metadata: T.nilable(Models::Components::CredentialIssuerMetadata), id_token_aud_type: T.nilable(::String), native_sso_supported: T.nilable(T::Boolean), oid4vci_version: T.nilable(::String), cimd_metadata_policy_enabled: T.nilable(T::Boolean), client_id_metadata_document_supported: T.nilable(T::Boolean), cimd_allowlist_enabled: T.nilable(T::Boolean), cimd_allowlist: T.nilable(T::Array[::String]), cimd_always_retrieved: T.nilable(T::Boolean), cimd_http_permitted: T.nilable(T::Boolean), cimd_query_permitted: T.nilable(T::Boolean), cimd_metadata_policy: T.nilable(::String), http_alias_prohibited: T.nilable(T::Boolean), attestation_challenge_time_window: T.nilable(::Integer), access_token_sign_alg: T.nilable(Models::Components::JwsAlg)).void } + def initialize(number: nil, service_name: nil, issuer: nil, description: nil, api_key: nil, api_secret: nil, token_batch_notification_endpoint: nil, client_assertion_aud_restricted_to_issuer: nil, service_owner_number: nil, clients_per_developer: nil, developer_authentication_callback_endpoint: nil, developer_authentication_callback_api_key: nil, developer_authentication_callback_api_secret: nil, supported_snses: nil, sns_credentials: nil, client_id_alias_enabled: nil, metadata: nil, created_at: nil, modified_at: nil, authentication_callback_endpoint: nil, authentication_callback_api_key: nil, authentication_callback_api_secret: nil, supported_acrs: nil, supported_grant_types: nil, supported_response_types: nil, supported_authorization_details_types: nil, supported_service_profiles: nil, error_description_omitted: nil, error_uri_omitted: nil, authorization_endpoint: nil, direct_authorization_endpoint_enabled: nil, supported_ui_locales: nil, supported_displays: nil, pkce_required: nil, pkce_s256_required: nil, authorization_response_duration: nil, authorization_code_duration: nil, token_endpoint: nil, direct_token_endpoint_enabled: nil, supported_token_auth_methods: nil, missing_client_id_allowed: nil, revocation_endpoint: nil, direct_revocation_endpoint_enabled: nil, supported_revocation_auth_methods: nil, introspection_endpoint: nil, direct_introspection_endpoint_enabled: nil, supported_introspection_auth_methods: nil, pushed_auth_req_endpoint: nil, pushed_auth_req_duration: nil, par_required: nil, request_object_required: nil, traditional_request_object_processing_applied: nil, mutual_tls_validate_pki_cert_chain: nil, trusted_root_certificates: nil, mtls_endpoint_aliases: nil, access_token_type: nil, tls_client_certificate_bound_access_tokens: nil, access_token_duration: nil, single_access_token_per_subject: nil, access_token_signature_key_id: nil, refresh_token_duration: nil, refresh_token_duration_kept: nil, refresh_token_duration_reset: nil, refresh_token_kept: nil, supported_scopes: nil, scope_required: nil, id_token_duration: nil, allowable_clock_skew: nil, supported_claim_types: nil, supported_claim_locales: nil, supported_claims: nil, claim_shortcut_restrictive: nil, jwks_uri: nil, direct_jwks_endpoint_enabled: nil, jwks: nil, id_token_signature_key_id: nil, user_info_signature_key_id: nil, authorization_signature_key_id: nil, user_info_endpoint: nil, direct_user_info_endpoint_enabled: nil, dynamic_registration_supported: nil, registration_endpoint: nil, registration_management_endpoint: nil, policy_uri: nil, tos_uri: nil, service_documentation: nil, backchannel_authentication_endpoint: nil, supported_backchannel_token_delivery_modes: nil, backchannel_auth_req_id_duration: nil, backchannel_polling_interval: nil, backchannel_user_code_parameter_supported: nil, backchannel_binding_message_required_in_fapi: nil, device_authorization_endpoint: nil, device_verification_uri: nil, device_verification_uri_complete: nil, device_flow_code_duration: nil, device_flow_polling_interval: nil, user_code_charset: nil, user_code_length: nil, supported_trust_frameworks: nil, supported_evidence: nil, supported_identity_documents: nil, supported_verification_methods: nil, supported_verified_claims: nil, verified_claims_validation_schema_set: nil, attributes: nil, nbf_optional: nil, iss_suppressed: nil, supported_custom_client_metadata: nil, token_expiration_linked: nil, front_channel_request_object_encryption_required: nil, request_object_encryption_alg_match_required: nil, request_object_encryption_enc_match_required: nil, hsm_enabled: nil, hsks: nil, grant_management_endpoint: nil, grant_management_action_required: nil, unauthorized_on_client_config_supported: nil, dcr_scope_used_as_requestable: nil, end_session_endpoint: nil, loopback_redirection_uri_variable: nil, request_object_audience_checked: nil, access_token_for_external_attachment_embedded: nil, authority_hints: nil, federation_enabled: nil, federation_jwks: nil, federation_signature_key_id: nil, federation_configuration_duration: nil, federation_registration_endpoint: nil, organization_name: nil, predefined_transformed_claims: nil, refresh_token_idempotent: nil, signed_jwks_uri: nil, supported_attachments: nil, supported_digest_algorithms: nil, supported_documents: nil, supported_documents_methods: nil, supported_documents_validation_methods: nil, supported_documents_verification_methods: nil, supported_electronic_records: nil, supported_client_registration_types: nil, token_exchange_by_identifiable_clients_only: nil, token_exchange_by_confidential_clients_only: nil, token_exchange_by_permitted_clients_only: nil, token_exchange_encrypted_jwt_rejected: nil, token_exchange_unsigned_jwt_rejected: nil, jwt_grant_by_identifiable_clients_only: nil, jwt_grant_encrypted_jwt_rejected: nil, jwt_grant_unsigned_jwt_rejected: nil, dcr_duplicate_software_id_blocked: nil, trust_anchors: nil, openid_dropped_on_refresh_without_offline_access: nil, supported_documents_check_methods: nil, rs_response_signed: nil, cnonce_duration: nil, dpop_nonce_required: nil, verifiable_credentials_enabled: nil, credential_jwks_uri: nil, credential_offer_duration: nil, dpop_nonce_duration: nil, pre_authorized_grant_anonymous_access_supported: nil, credential_transaction_duration: nil, introspection_signature_key_id: nil, resource_signature_key_id: nil, user_pin_length: nil, supported_prompt_values: nil, id_token_reissuable: nil, credential_jwks: nil, fapi_modes: nil, credential_duration: nil, credential_issuer_metadata: nil, id_token_aud_type: nil, native_sso_supported: nil, oid4vci_version: nil, cimd_metadata_policy_enabled: nil, client_id_metadata_document_supported: nil, cimd_allowlist_enabled: nil, cimd_allowlist: nil, cimd_always_retrieved: nil, cimd_http_permitted: nil, cimd_query_permitted: nil, cimd_metadata_policy: nil, http_alias_prohibited: nil, attestation_challenge_time_window: nil, access_token_sign_alg: nil) @number = number @service_name = service_name @issuer = issuer @@ -939,6 +946,7 @@ def initialize(number: nil, service_name: nil, issuer: nil, description: nil, ap @pkce_required = pkce_required @pkce_s256_required = pkce_s256_required @authorization_response_duration = authorization_response_duration + @authorization_code_duration = authorization_code_duration @token_endpoint = token_endpoint @direct_token_endpoint_enabled = direct_token_endpoint_enabled @supported_token_auth_methods = supported_token_auth_methods @@ -1085,6 +1093,7 @@ def initialize(number: nil, service_name: nil, issuer: nil, description: nil, ap @cimd_query_permitted = cimd_query_permitted @cimd_metadata_policy = cimd_metadata_policy @http_alias_prohibited = http_alias_prohibited + @attestation_challenge_time_window = attestation_challenge_time_window @access_token_sign_alg = access_token_sign_alg end @@ -1127,6 +1136,7 @@ def ==(other) return false unless @pkce_required == other.pkce_required return false unless @pkce_s256_required == other.pkce_s256_required return false unless @authorization_response_duration == other.authorization_response_duration + return false unless @authorization_code_duration == other.authorization_code_duration return false unless @token_endpoint == other.token_endpoint return false unless @direct_token_endpoint_enabled == other.direct_token_endpoint_enabled return false unless @supported_token_auth_methods == other.supported_token_auth_methods @@ -1273,6 +1283,7 @@ def ==(other) return false unless @cimd_query_permitted == other.cimd_query_permitted return false unless @cimd_metadata_policy == other.cimd_metadata_policy return false unless @http_alias_prohibited == other.http_alias_prohibited + return false unless @attestation_challenge_time_window == other.attestation_challenge_time_window return false unless @access_token_sign_alg == other.access_token_sign_alg true end diff --git a/lib/authlete/models/components/service.rbi b/lib/authlete/models/components/service.rbi index 46a0886..1adb53a 100644 --- a/lib/authlete/models/components/service.rbi +++ b/lib/authlete/models/components/service.rbi @@ -80,6 +80,8 @@ class Authlete::Models::Components::Service def pkce_s256_required=(str_); end def authorization_response_duration(); end def authorization_response_duration=(str_); end + def authorization_code_duration(); end + def authorization_code_duration=(str_); end def token_endpoint(); end def token_endpoint=(str_); end def direct_token_endpoint_enabled(); end @@ -372,6 +374,8 @@ class Authlete::Models::Components::Service def cimd_metadata_policy=(str_); end def http_alias_prohibited(); end def http_alias_prohibited=(str_); end + def attestation_challenge_time_window(); end + def attestation_challenge_time_window=(str_); end def access_token_sign_alg(); end def access_token_sign_alg=(str_); end end diff --git a/lib/authlete/models/components/service_input.rb b/lib/authlete/models/components/service_input.rb index d3c96a2..6797f4c 100644 --- a/lib/authlete/models/components/service_input.rb +++ b/lib/authlete/models/components/service_input.rb @@ -168,6 +168,9 @@ class ServiceInput # value of the `exp` claim of the JWT. # field :authorization_response_duration, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('authorizationResponseDuration') }, 'form': { 'field_name': 'authorizationResponseDuration' } } + # The duration of authorization codes in seconds. + # + field :authorization_code_duration, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('authorizationCodeDuration') }, 'form': { 'field_name': 'authorizationCodeDuration' } } # The [token endpoint](https://tools.ietf.org/html/rfc6749#section-3.2) of the service. # # A URL that starts with `https://` and has not fragment component. For example, `https://example.com/auth/token`. @@ -865,6 +868,10 @@ class ServiceInput # prohibited. # field :http_alias_prohibited, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('httpAliasProhibited') }, 'form': { 'field_name': 'httpAliasProhibited' } } + # The time window of attestation challenges in seconds. This is used for + # OAuth 2.0 Attestation-Based Client Authentication. + # + field :attestation_challenge_time_window, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('attestationChallengeTimeWindow') }, 'form': { 'field_name': 'attestationChallengeTimeWindow' } } # The signature algorithm for JWT. This value is represented on 'alg' attribute # of the header of JWT. # @@ -875,8 +882,8 @@ class ServiceInput # field :access_token_sign_alg, Crystalline::Nilable.new(Models::Components::JwsAlg), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('accessTokenSignAlg'), 'decoder': ::Authlete::Utils.enum_from_string(Models::Components::JwsAlg, true) }, 'form': { 'field_name': 'accessTokenSignAlg' } } - sig { params(service_name: T.nilable(::String), issuer: T.nilable(::String), description: T.nilable(::String), token_batch_notification_endpoint: T.nilable(::String), client_assertion_aud_restricted_to_issuer: T.nilable(T::Boolean), clients_per_developer: T.nilable(::Integer), developer_authentication_callback_endpoint: T.nilable(::String), developer_authentication_callback_api_key: T.nilable(::String), developer_authentication_callback_api_secret: T.nilable(::String), supported_snses: T.nilable(T::Array[Models::Components::SupportedSnse]), sns_credentials: T.nilable(T::Array[Models::Components::SnsCredentials]), client_id_alias_enabled: T.nilable(T::Boolean), metadata: T.nilable(T::Array[Models::Components::Pair]), authentication_callback_endpoint: T.nilable(::String), authentication_callback_api_key: T.nilable(::String), authentication_callback_api_secret: T.nilable(::String), supported_grant_types: T.nilable(T::Array[Models::Components::GrantType]), supported_response_types: T.nilable(T::Array[Models::Components::ResponseType]), supported_authorization_details_types: T.nilable(T::Array[::String]), supported_service_profiles: T.nilable(T::Array[Models::Components::ServiceProfile]), error_description_omitted: T.nilable(T::Boolean), error_uri_omitted: T.nilable(T::Boolean), authorization_endpoint: T.nilable(::String), direct_authorization_endpoint_enabled: T.nilable(T::Boolean), supported_ui_locales: T.nilable(T::Array[::String]), supported_displays: T.nilable(T::Array[Models::Components::Display]), pkce_required: T.nilable(T::Boolean), pkce_s256_required: T.nilable(T::Boolean), authorization_response_duration: T.nilable(::Integer), token_endpoint: T.nilable(::String), direct_token_endpoint_enabled: T.nilable(T::Boolean), supported_token_auth_methods: T.nilable(T::Array[Models::Components::ClientAuthMethod]), missing_client_id_allowed: T.nilable(T::Boolean), revocation_endpoint: T.nilable(::String), direct_revocation_endpoint_enabled: T.nilable(T::Boolean), supported_revocation_auth_methods: T.nilable(T::Array[Models::Components::ClientAuthMethod]), introspection_endpoint: T.nilable(::String), direct_introspection_endpoint_enabled: T.nilable(T::Boolean), supported_introspection_auth_methods: T.nilable(T::Array[Models::Components::ClientAuthMethod]), pushed_auth_req_endpoint: T.nilable(::String), pushed_auth_req_duration: T.nilable(::Integer), par_required: T.nilable(T::Boolean), request_object_required: T.nilable(T::Boolean), traditional_request_object_processing_applied: T.nilable(T::Boolean), mutual_tls_validate_pki_cert_chain: T.nilable(T::Boolean), trusted_root_certificates: T.nilable(T::Array[::String]), mtls_endpoint_aliases: T.nilable(T::Array[Models::Components::NamedUri]), access_token_type: T.nilable(::String), tls_client_certificate_bound_access_tokens: T.nilable(T::Boolean), access_token_duration: T.nilable(::Integer), single_access_token_per_subject: T.nilable(T::Boolean), access_token_signature_key_id: T.nilable(::String), refresh_token_duration: T.nilable(::Integer), refresh_token_duration_kept: T.nilable(T::Boolean), refresh_token_duration_reset: T.nilable(T::Boolean), refresh_token_kept: T.nilable(T::Boolean), supported_scopes: T.nilable(T::Array[Models::Components::Scope]), scope_required: T.nilable(T::Boolean), id_token_duration: T.nilable(::Integer), allowable_clock_skew: T.nilable(::Integer), supported_claim_types: T.nilable(T::Array[Models::Components::ClaimType]), supported_claim_locales: T.nilable(T::Array[::String]), supported_claims: T.nilable(T::Array[::String]), claim_shortcut_restrictive: T.nilable(T::Boolean), jwks_uri: T.nilable(::String), direct_jwks_endpoint_enabled: T.nilable(T::Boolean), jwks: T.nilable(::String), id_token_signature_key_id: T.nilable(::String), user_info_signature_key_id: T.nilable(::String), authorization_signature_key_id: T.nilable(::String), user_info_endpoint: T.nilable(::String), direct_user_info_endpoint_enabled: T.nilable(T::Boolean), dynamic_registration_supported: T.nilable(T::Boolean), registration_endpoint: T.nilable(::String), registration_management_endpoint: T.nilable(::String), policy_uri: T.nilable(::String), tos_uri: T.nilable(::String), service_documentation: T.nilable(::String), backchannel_authentication_endpoint: T.nilable(::String), supported_backchannel_token_delivery_modes: T.nilable(T::Array[Models::Components::DeliveryMode]), backchannel_auth_req_id_duration: T.nilable(::Integer), backchannel_polling_interval: T.nilable(::Integer), backchannel_user_code_parameter_supported: T.nilable(T::Boolean), backchannel_binding_message_required_in_fapi: T.nilable(T::Boolean), device_authorization_endpoint: T.nilable(::String), device_verification_uri: T.nilable(::String), device_verification_uri_complete: T.nilable(::String), device_flow_code_duration: T.nilable(::Integer), device_flow_polling_interval: T.nilable(::Integer), user_code_charset: T.nilable(Models::Components::UserCodeCharset), user_code_length: T.nilable(::Integer), supported_trust_frameworks: T.nilable(T::Array[::String]), supported_evidence: T.nilable(T::Array[::String]), supported_identity_documents: T.nilable(T::Array[::String]), supported_verification_methods: T.nilable(T::Array[::String]), supported_verified_claims: T.nilable(T::Array[::String]), verified_claims_validation_schema_set: T.nilable(Models::Components::VerifiedClaimsValidationSchema), attributes: T.nilable(T::Array[Models::Components::Pair]), nbf_optional: T.nilable(T::Boolean), iss_suppressed: T.nilable(T::Boolean), supported_custom_client_metadata: T.nilable(T::Array[::String]), token_expiration_linked: T.nilable(T::Boolean), front_channel_request_object_encryption_required: T.nilable(T::Boolean), request_object_encryption_alg_match_required: T.nilable(T::Boolean), request_object_encryption_enc_match_required: T.nilable(T::Boolean), hsm_enabled: T.nilable(T::Boolean), hsks: T.nilable(T::Array[Models::Components::Hsk]), grant_management_endpoint: T.nilable(::String), grant_management_action_required: T.nilable(T::Boolean), unauthorized_on_client_config_supported: T.nilable(T::Boolean), dcr_scope_used_as_requestable: T.nilable(T::Boolean), end_session_endpoint: T.nilable(::String), loopback_redirection_uri_variable: T.nilable(T::Boolean), request_object_audience_checked: T.nilable(T::Boolean), access_token_for_external_attachment_embedded: T.nilable(T::Boolean), authority_hints: T.nilable(T::Array[::String]), federation_enabled: T.nilable(T::Boolean), federation_jwks: T.nilable(::String), federation_signature_key_id: T.nilable(::String), federation_configuration_duration: T.nilable(::Integer), federation_registration_endpoint: T.nilable(::String), organization_name: T.nilable(::String), predefined_transformed_claims: T.nilable(::String), refresh_token_idempotent: T.nilable(T::Boolean), signed_jwks_uri: T.nilable(::String), supported_attachments: T.nilable(T::Array[Models::Components::AttachmentType]), supported_digest_algorithms: T.nilable(T::Array[::String]), supported_documents: T.nilable(T::Array[::String]), supported_documents_methods: T.nilable(T::Array[::String]), supported_documents_validation_methods: T.nilable(T::Array[::String]), supported_documents_verification_methods: T.nilable(T::Array[::String]), supported_electronic_records: T.nilable(T::Array[::String]), supported_client_registration_types: T.nilable(T::Array[Models::Components::ClientRegistrationType]), token_exchange_by_identifiable_clients_only: T.nilable(T::Boolean), token_exchange_by_confidential_clients_only: T.nilable(T::Boolean), token_exchange_by_permitted_clients_only: T.nilable(T::Boolean), token_exchange_encrypted_jwt_rejected: T.nilable(T::Boolean), token_exchange_unsigned_jwt_rejected: T.nilable(T::Boolean), jwt_grant_by_identifiable_clients_only: T.nilable(T::Boolean), jwt_grant_encrypted_jwt_rejected: T.nilable(T::Boolean), jwt_grant_unsigned_jwt_rejected: T.nilable(T::Boolean), dcr_duplicate_software_id_blocked: T.nilable(T::Boolean), trust_anchors: T.nilable(T::Array[Models::Components::TrustAnchor]), openid_dropped_on_refresh_without_offline_access: T.nilable(T::Boolean), supported_documents_check_methods: T.nilable(T::Array[::String]), rs_response_signed: T.nilable(T::Boolean), cnonce_duration: T.nilable(::Integer), dpop_nonce_required: T.nilable(T::Boolean), verifiable_credentials_enabled: T.nilable(T::Boolean), credential_jwks_uri: T.nilable(::String), credential_offer_duration: T.nilable(::Integer), dpop_nonce_duration: T.nilable(::Integer), pre_authorized_grant_anonymous_access_supported: T.nilable(T::Boolean), credential_transaction_duration: T.nilable(::Integer), introspection_signature_key_id: T.nilable(::String), resource_signature_key_id: T.nilable(::String), user_pin_length: T.nilable(::Integer), supported_prompt_values: T.nilable(T::Array[Models::Components::Prompt]), id_token_reissuable: T.nilable(T::Boolean), credential_jwks: T.nilable(::String), fapi_modes: T.nilable(T::Array[Models::Components::FapiMode]), credential_duration: T.nilable(::Integer), credential_issuer_metadata: T.nilable(Models::Components::CredentialIssuerMetadata), id_token_aud_type: T.nilable(::String), native_sso_supported: T.nilable(T::Boolean), oid4vci_version: T.nilable(::String), cimd_metadata_policy_enabled: T.nilable(T::Boolean), client_id_metadata_document_supported: T.nilable(T::Boolean), cimd_allowlist_enabled: T.nilable(T::Boolean), cimd_allowlist: T.nilable(T::Array[::String]), cimd_always_retrieved: T.nilable(T::Boolean), cimd_http_permitted: T.nilable(T::Boolean), cimd_query_permitted: T.nilable(T::Boolean), cimd_metadata_policy: T.nilable(::String), http_alias_prohibited: T.nilable(T::Boolean), access_token_sign_alg: T.nilable(Models::Components::JwsAlg)).void } - def initialize(service_name: nil, issuer: nil, description: nil, token_batch_notification_endpoint: nil, client_assertion_aud_restricted_to_issuer: nil, clients_per_developer: nil, developer_authentication_callback_endpoint: nil, developer_authentication_callback_api_key: nil, developer_authentication_callback_api_secret: nil, supported_snses: nil, sns_credentials: nil, client_id_alias_enabled: nil, metadata: nil, authentication_callback_endpoint: nil, authentication_callback_api_key: nil, authentication_callback_api_secret: nil, supported_grant_types: nil, supported_response_types: nil, supported_authorization_details_types: nil, supported_service_profiles: nil, error_description_omitted: nil, error_uri_omitted: nil, authorization_endpoint: nil, direct_authorization_endpoint_enabled: nil, supported_ui_locales: nil, supported_displays: nil, pkce_required: nil, pkce_s256_required: nil, authorization_response_duration: nil, token_endpoint: nil, direct_token_endpoint_enabled: nil, supported_token_auth_methods: nil, missing_client_id_allowed: nil, revocation_endpoint: nil, direct_revocation_endpoint_enabled: nil, supported_revocation_auth_methods: nil, introspection_endpoint: nil, direct_introspection_endpoint_enabled: nil, supported_introspection_auth_methods: nil, pushed_auth_req_endpoint: nil, pushed_auth_req_duration: nil, par_required: nil, request_object_required: nil, traditional_request_object_processing_applied: nil, mutual_tls_validate_pki_cert_chain: nil, trusted_root_certificates: nil, mtls_endpoint_aliases: nil, access_token_type: nil, tls_client_certificate_bound_access_tokens: nil, access_token_duration: nil, single_access_token_per_subject: nil, access_token_signature_key_id: nil, refresh_token_duration: nil, refresh_token_duration_kept: nil, refresh_token_duration_reset: nil, refresh_token_kept: nil, supported_scopes: nil, scope_required: nil, id_token_duration: nil, allowable_clock_skew: nil, supported_claim_types: nil, supported_claim_locales: nil, supported_claims: nil, claim_shortcut_restrictive: nil, jwks_uri: nil, direct_jwks_endpoint_enabled: nil, jwks: nil, id_token_signature_key_id: nil, user_info_signature_key_id: nil, authorization_signature_key_id: nil, user_info_endpoint: nil, direct_user_info_endpoint_enabled: nil, dynamic_registration_supported: nil, registration_endpoint: nil, registration_management_endpoint: nil, policy_uri: nil, tos_uri: nil, service_documentation: nil, backchannel_authentication_endpoint: nil, supported_backchannel_token_delivery_modes: nil, backchannel_auth_req_id_duration: nil, backchannel_polling_interval: nil, backchannel_user_code_parameter_supported: nil, backchannel_binding_message_required_in_fapi: nil, device_authorization_endpoint: nil, device_verification_uri: nil, device_verification_uri_complete: nil, device_flow_code_duration: nil, device_flow_polling_interval: nil, user_code_charset: nil, user_code_length: nil, supported_trust_frameworks: nil, supported_evidence: nil, supported_identity_documents: nil, supported_verification_methods: nil, supported_verified_claims: nil, verified_claims_validation_schema_set: nil, attributes: nil, nbf_optional: nil, iss_suppressed: nil, supported_custom_client_metadata: nil, token_expiration_linked: nil, front_channel_request_object_encryption_required: nil, request_object_encryption_alg_match_required: nil, request_object_encryption_enc_match_required: nil, hsm_enabled: nil, hsks: nil, grant_management_endpoint: nil, grant_management_action_required: nil, unauthorized_on_client_config_supported: nil, dcr_scope_used_as_requestable: nil, end_session_endpoint: nil, loopback_redirection_uri_variable: nil, request_object_audience_checked: nil, access_token_for_external_attachment_embedded: nil, authority_hints: nil, federation_enabled: nil, federation_jwks: nil, federation_signature_key_id: nil, federation_configuration_duration: nil, federation_registration_endpoint: nil, organization_name: nil, predefined_transformed_claims: nil, refresh_token_idempotent: nil, signed_jwks_uri: nil, supported_attachments: nil, supported_digest_algorithms: nil, supported_documents: nil, supported_documents_methods: nil, supported_documents_validation_methods: nil, supported_documents_verification_methods: nil, supported_electronic_records: nil, supported_client_registration_types: nil, token_exchange_by_identifiable_clients_only: nil, token_exchange_by_confidential_clients_only: nil, token_exchange_by_permitted_clients_only: nil, token_exchange_encrypted_jwt_rejected: nil, token_exchange_unsigned_jwt_rejected: nil, jwt_grant_by_identifiable_clients_only: nil, jwt_grant_encrypted_jwt_rejected: nil, jwt_grant_unsigned_jwt_rejected: nil, dcr_duplicate_software_id_blocked: nil, trust_anchors: nil, openid_dropped_on_refresh_without_offline_access: nil, supported_documents_check_methods: nil, rs_response_signed: nil, cnonce_duration: nil, dpop_nonce_required: nil, verifiable_credentials_enabled: nil, credential_jwks_uri: nil, credential_offer_duration: nil, dpop_nonce_duration: nil, pre_authorized_grant_anonymous_access_supported: nil, credential_transaction_duration: nil, introspection_signature_key_id: nil, resource_signature_key_id: nil, user_pin_length: nil, supported_prompt_values: nil, id_token_reissuable: nil, credential_jwks: nil, fapi_modes: nil, credential_duration: nil, credential_issuer_metadata: nil, id_token_aud_type: nil, native_sso_supported: nil, oid4vci_version: nil, cimd_metadata_policy_enabled: nil, client_id_metadata_document_supported: nil, cimd_allowlist_enabled: nil, cimd_allowlist: nil, cimd_always_retrieved: nil, cimd_http_permitted: nil, cimd_query_permitted: nil, cimd_metadata_policy: nil, http_alias_prohibited: nil, access_token_sign_alg: nil) + sig { params(service_name: T.nilable(::String), issuer: T.nilable(::String), description: T.nilable(::String), token_batch_notification_endpoint: T.nilable(::String), client_assertion_aud_restricted_to_issuer: T.nilable(T::Boolean), clients_per_developer: T.nilable(::Integer), developer_authentication_callback_endpoint: T.nilable(::String), developer_authentication_callback_api_key: T.nilable(::String), developer_authentication_callback_api_secret: T.nilable(::String), supported_snses: T.nilable(T::Array[Models::Components::SupportedSnse]), sns_credentials: T.nilable(T::Array[Models::Components::SnsCredentials]), client_id_alias_enabled: T.nilable(T::Boolean), metadata: T.nilable(T::Array[Models::Components::Pair]), authentication_callback_endpoint: T.nilable(::String), authentication_callback_api_key: T.nilable(::String), authentication_callback_api_secret: T.nilable(::String), supported_grant_types: T.nilable(T::Array[Models::Components::GrantType]), supported_response_types: T.nilable(T::Array[Models::Components::ResponseType]), supported_authorization_details_types: T.nilable(T::Array[::String]), supported_service_profiles: T.nilable(T::Array[Models::Components::ServiceProfile]), error_description_omitted: T.nilable(T::Boolean), error_uri_omitted: T.nilable(T::Boolean), authorization_endpoint: T.nilable(::String), direct_authorization_endpoint_enabled: T.nilable(T::Boolean), supported_ui_locales: T.nilable(T::Array[::String]), supported_displays: T.nilable(T::Array[Models::Components::Display]), pkce_required: T.nilable(T::Boolean), pkce_s256_required: T.nilable(T::Boolean), authorization_response_duration: T.nilable(::Integer), authorization_code_duration: T.nilable(::Integer), token_endpoint: T.nilable(::String), direct_token_endpoint_enabled: T.nilable(T::Boolean), supported_token_auth_methods: T.nilable(T::Array[Models::Components::ClientAuthMethod]), missing_client_id_allowed: T.nilable(T::Boolean), revocation_endpoint: T.nilable(::String), direct_revocation_endpoint_enabled: T.nilable(T::Boolean), supported_revocation_auth_methods: T.nilable(T::Array[Models::Components::ClientAuthMethod]), introspection_endpoint: T.nilable(::String), direct_introspection_endpoint_enabled: T.nilable(T::Boolean), supported_introspection_auth_methods: T.nilable(T::Array[Models::Components::ClientAuthMethod]), pushed_auth_req_endpoint: T.nilable(::String), pushed_auth_req_duration: T.nilable(::Integer), par_required: T.nilable(T::Boolean), request_object_required: T.nilable(T::Boolean), traditional_request_object_processing_applied: T.nilable(T::Boolean), mutual_tls_validate_pki_cert_chain: T.nilable(T::Boolean), trusted_root_certificates: T.nilable(T::Array[::String]), mtls_endpoint_aliases: T.nilable(T::Array[Models::Components::NamedUri]), access_token_type: T.nilable(::String), tls_client_certificate_bound_access_tokens: T.nilable(T::Boolean), access_token_duration: T.nilable(::Integer), single_access_token_per_subject: T.nilable(T::Boolean), access_token_signature_key_id: T.nilable(::String), refresh_token_duration: T.nilable(::Integer), refresh_token_duration_kept: T.nilable(T::Boolean), refresh_token_duration_reset: T.nilable(T::Boolean), refresh_token_kept: T.nilable(T::Boolean), supported_scopes: T.nilable(T::Array[Models::Components::Scope]), scope_required: T.nilable(T::Boolean), id_token_duration: T.nilable(::Integer), allowable_clock_skew: T.nilable(::Integer), supported_claim_types: T.nilable(T::Array[Models::Components::ClaimType]), supported_claim_locales: T.nilable(T::Array[::String]), supported_claims: T.nilable(T::Array[::String]), claim_shortcut_restrictive: T.nilable(T::Boolean), jwks_uri: T.nilable(::String), direct_jwks_endpoint_enabled: T.nilable(T::Boolean), jwks: T.nilable(::String), id_token_signature_key_id: T.nilable(::String), user_info_signature_key_id: T.nilable(::String), authorization_signature_key_id: T.nilable(::String), user_info_endpoint: T.nilable(::String), direct_user_info_endpoint_enabled: T.nilable(T::Boolean), dynamic_registration_supported: T.nilable(T::Boolean), registration_endpoint: T.nilable(::String), registration_management_endpoint: T.nilable(::String), policy_uri: T.nilable(::String), tos_uri: T.nilable(::String), service_documentation: T.nilable(::String), backchannel_authentication_endpoint: T.nilable(::String), supported_backchannel_token_delivery_modes: T.nilable(T::Array[Models::Components::DeliveryMode]), backchannel_auth_req_id_duration: T.nilable(::Integer), backchannel_polling_interval: T.nilable(::Integer), backchannel_user_code_parameter_supported: T.nilable(T::Boolean), backchannel_binding_message_required_in_fapi: T.nilable(T::Boolean), device_authorization_endpoint: T.nilable(::String), device_verification_uri: T.nilable(::String), device_verification_uri_complete: T.nilable(::String), device_flow_code_duration: T.nilable(::Integer), device_flow_polling_interval: T.nilable(::Integer), user_code_charset: T.nilable(Models::Components::UserCodeCharset), user_code_length: T.nilable(::Integer), supported_trust_frameworks: T.nilable(T::Array[::String]), supported_evidence: T.nilable(T::Array[::String]), supported_identity_documents: T.nilable(T::Array[::String]), supported_verification_methods: T.nilable(T::Array[::String]), supported_verified_claims: T.nilable(T::Array[::String]), verified_claims_validation_schema_set: T.nilable(Models::Components::VerifiedClaimsValidationSchema), attributes: T.nilable(T::Array[Models::Components::Pair]), nbf_optional: T.nilable(T::Boolean), iss_suppressed: T.nilable(T::Boolean), supported_custom_client_metadata: T.nilable(T::Array[::String]), token_expiration_linked: T.nilable(T::Boolean), front_channel_request_object_encryption_required: T.nilable(T::Boolean), request_object_encryption_alg_match_required: T.nilable(T::Boolean), request_object_encryption_enc_match_required: T.nilable(T::Boolean), hsm_enabled: T.nilable(T::Boolean), hsks: T.nilable(T::Array[Models::Components::Hsk]), grant_management_endpoint: T.nilable(::String), grant_management_action_required: T.nilable(T::Boolean), unauthorized_on_client_config_supported: T.nilable(T::Boolean), dcr_scope_used_as_requestable: T.nilable(T::Boolean), end_session_endpoint: T.nilable(::String), loopback_redirection_uri_variable: T.nilable(T::Boolean), request_object_audience_checked: T.nilable(T::Boolean), access_token_for_external_attachment_embedded: T.nilable(T::Boolean), authority_hints: T.nilable(T::Array[::String]), federation_enabled: T.nilable(T::Boolean), federation_jwks: T.nilable(::String), federation_signature_key_id: T.nilable(::String), federation_configuration_duration: T.nilable(::Integer), federation_registration_endpoint: T.nilable(::String), organization_name: T.nilable(::String), predefined_transformed_claims: T.nilable(::String), refresh_token_idempotent: T.nilable(T::Boolean), signed_jwks_uri: T.nilable(::String), supported_attachments: T.nilable(T::Array[Models::Components::AttachmentType]), supported_digest_algorithms: T.nilable(T::Array[::String]), supported_documents: T.nilable(T::Array[::String]), supported_documents_methods: T.nilable(T::Array[::String]), supported_documents_validation_methods: T.nilable(T::Array[::String]), supported_documents_verification_methods: T.nilable(T::Array[::String]), supported_electronic_records: T.nilable(T::Array[::String]), supported_client_registration_types: T.nilable(T::Array[Models::Components::ClientRegistrationType]), token_exchange_by_identifiable_clients_only: T.nilable(T::Boolean), token_exchange_by_confidential_clients_only: T.nilable(T::Boolean), token_exchange_by_permitted_clients_only: T.nilable(T::Boolean), token_exchange_encrypted_jwt_rejected: T.nilable(T::Boolean), token_exchange_unsigned_jwt_rejected: T.nilable(T::Boolean), jwt_grant_by_identifiable_clients_only: T.nilable(T::Boolean), jwt_grant_encrypted_jwt_rejected: T.nilable(T::Boolean), jwt_grant_unsigned_jwt_rejected: T.nilable(T::Boolean), dcr_duplicate_software_id_blocked: T.nilable(T::Boolean), trust_anchors: T.nilable(T::Array[Models::Components::TrustAnchor]), openid_dropped_on_refresh_without_offline_access: T.nilable(T::Boolean), supported_documents_check_methods: T.nilable(T::Array[::String]), rs_response_signed: T.nilable(T::Boolean), cnonce_duration: T.nilable(::Integer), dpop_nonce_required: T.nilable(T::Boolean), verifiable_credentials_enabled: T.nilable(T::Boolean), credential_jwks_uri: T.nilable(::String), credential_offer_duration: T.nilable(::Integer), dpop_nonce_duration: T.nilable(::Integer), pre_authorized_grant_anonymous_access_supported: T.nilable(T::Boolean), credential_transaction_duration: T.nilable(::Integer), introspection_signature_key_id: T.nilable(::String), resource_signature_key_id: T.nilable(::String), user_pin_length: T.nilable(::Integer), supported_prompt_values: T.nilable(T::Array[Models::Components::Prompt]), id_token_reissuable: T.nilable(T::Boolean), credential_jwks: T.nilable(::String), fapi_modes: T.nilable(T::Array[Models::Components::FapiMode]), credential_duration: T.nilable(::Integer), credential_issuer_metadata: T.nilable(Models::Components::CredentialIssuerMetadata), id_token_aud_type: T.nilable(::String), native_sso_supported: T.nilable(T::Boolean), oid4vci_version: T.nilable(::String), cimd_metadata_policy_enabled: T.nilable(T::Boolean), client_id_metadata_document_supported: T.nilable(T::Boolean), cimd_allowlist_enabled: T.nilable(T::Boolean), cimd_allowlist: T.nilable(T::Array[::String]), cimd_always_retrieved: T.nilable(T::Boolean), cimd_http_permitted: T.nilable(T::Boolean), cimd_query_permitted: T.nilable(T::Boolean), cimd_metadata_policy: T.nilable(::String), http_alias_prohibited: T.nilable(T::Boolean), attestation_challenge_time_window: T.nilable(::Integer), access_token_sign_alg: T.nilable(Models::Components::JwsAlg)).void } + def initialize(service_name: nil, issuer: nil, description: nil, token_batch_notification_endpoint: nil, client_assertion_aud_restricted_to_issuer: nil, clients_per_developer: nil, developer_authentication_callback_endpoint: nil, developer_authentication_callback_api_key: nil, developer_authentication_callback_api_secret: nil, supported_snses: nil, sns_credentials: nil, client_id_alias_enabled: nil, metadata: nil, authentication_callback_endpoint: nil, authentication_callback_api_key: nil, authentication_callback_api_secret: nil, supported_grant_types: nil, supported_response_types: nil, supported_authorization_details_types: nil, supported_service_profiles: nil, error_description_omitted: nil, error_uri_omitted: nil, authorization_endpoint: nil, direct_authorization_endpoint_enabled: nil, supported_ui_locales: nil, supported_displays: nil, pkce_required: nil, pkce_s256_required: nil, authorization_response_duration: nil, authorization_code_duration: nil, token_endpoint: nil, direct_token_endpoint_enabled: nil, supported_token_auth_methods: nil, missing_client_id_allowed: nil, revocation_endpoint: nil, direct_revocation_endpoint_enabled: nil, supported_revocation_auth_methods: nil, introspection_endpoint: nil, direct_introspection_endpoint_enabled: nil, supported_introspection_auth_methods: nil, pushed_auth_req_endpoint: nil, pushed_auth_req_duration: nil, par_required: nil, request_object_required: nil, traditional_request_object_processing_applied: nil, mutual_tls_validate_pki_cert_chain: nil, trusted_root_certificates: nil, mtls_endpoint_aliases: nil, access_token_type: nil, tls_client_certificate_bound_access_tokens: nil, access_token_duration: nil, single_access_token_per_subject: nil, access_token_signature_key_id: nil, refresh_token_duration: nil, refresh_token_duration_kept: nil, refresh_token_duration_reset: nil, refresh_token_kept: nil, supported_scopes: nil, scope_required: nil, id_token_duration: nil, allowable_clock_skew: nil, supported_claim_types: nil, supported_claim_locales: nil, supported_claims: nil, claim_shortcut_restrictive: nil, jwks_uri: nil, direct_jwks_endpoint_enabled: nil, jwks: nil, id_token_signature_key_id: nil, user_info_signature_key_id: nil, authorization_signature_key_id: nil, user_info_endpoint: nil, direct_user_info_endpoint_enabled: nil, dynamic_registration_supported: nil, registration_endpoint: nil, registration_management_endpoint: nil, policy_uri: nil, tos_uri: nil, service_documentation: nil, backchannel_authentication_endpoint: nil, supported_backchannel_token_delivery_modes: nil, backchannel_auth_req_id_duration: nil, backchannel_polling_interval: nil, backchannel_user_code_parameter_supported: nil, backchannel_binding_message_required_in_fapi: nil, device_authorization_endpoint: nil, device_verification_uri: nil, device_verification_uri_complete: nil, device_flow_code_duration: nil, device_flow_polling_interval: nil, user_code_charset: nil, user_code_length: nil, supported_trust_frameworks: nil, supported_evidence: nil, supported_identity_documents: nil, supported_verification_methods: nil, supported_verified_claims: nil, verified_claims_validation_schema_set: nil, attributes: nil, nbf_optional: nil, iss_suppressed: nil, supported_custom_client_metadata: nil, token_expiration_linked: nil, front_channel_request_object_encryption_required: nil, request_object_encryption_alg_match_required: nil, request_object_encryption_enc_match_required: nil, hsm_enabled: nil, hsks: nil, grant_management_endpoint: nil, grant_management_action_required: nil, unauthorized_on_client_config_supported: nil, dcr_scope_used_as_requestable: nil, end_session_endpoint: nil, loopback_redirection_uri_variable: nil, request_object_audience_checked: nil, access_token_for_external_attachment_embedded: nil, authority_hints: nil, federation_enabled: nil, federation_jwks: nil, federation_signature_key_id: nil, federation_configuration_duration: nil, federation_registration_endpoint: nil, organization_name: nil, predefined_transformed_claims: nil, refresh_token_idempotent: nil, signed_jwks_uri: nil, supported_attachments: nil, supported_digest_algorithms: nil, supported_documents: nil, supported_documents_methods: nil, supported_documents_validation_methods: nil, supported_documents_verification_methods: nil, supported_electronic_records: nil, supported_client_registration_types: nil, token_exchange_by_identifiable_clients_only: nil, token_exchange_by_confidential_clients_only: nil, token_exchange_by_permitted_clients_only: nil, token_exchange_encrypted_jwt_rejected: nil, token_exchange_unsigned_jwt_rejected: nil, jwt_grant_by_identifiable_clients_only: nil, jwt_grant_encrypted_jwt_rejected: nil, jwt_grant_unsigned_jwt_rejected: nil, dcr_duplicate_software_id_blocked: nil, trust_anchors: nil, openid_dropped_on_refresh_without_offline_access: nil, supported_documents_check_methods: nil, rs_response_signed: nil, cnonce_duration: nil, dpop_nonce_required: nil, verifiable_credentials_enabled: nil, credential_jwks_uri: nil, credential_offer_duration: nil, dpop_nonce_duration: nil, pre_authorized_grant_anonymous_access_supported: nil, credential_transaction_duration: nil, introspection_signature_key_id: nil, resource_signature_key_id: nil, user_pin_length: nil, supported_prompt_values: nil, id_token_reissuable: nil, credential_jwks: nil, fapi_modes: nil, credential_duration: nil, credential_issuer_metadata: nil, id_token_aud_type: nil, native_sso_supported: nil, oid4vci_version: nil, cimd_metadata_policy_enabled: nil, client_id_metadata_document_supported: nil, cimd_allowlist_enabled: nil, cimd_allowlist: nil, cimd_always_retrieved: nil, cimd_http_permitted: nil, cimd_query_permitted: nil, cimd_metadata_policy: nil, http_alias_prohibited: nil, attestation_challenge_time_window: nil, access_token_sign_alg: nil) @service_name = service_name @issuer = issuer @description = description @@ -906,6 +913,7 @@ def initialize(service_name: nil, issuer: nil, description: nil, token_batch_not @pkce_required = pkce_required @pkce_s256_required = pkce_s256_required @authorization_response_duration = authorization_response_duration + @authorization_code_duration = authorization_code_duration @token_endpoint = token_endpoint @direct_token_endpoint_enabled = direct_token_endpoint_enabled @supported_token_auth_methods = supported_token_auth_methods @@ -1052,6 +1060,7 @@ def initialize(service_name: nil, issuer: nil, description: nil, token_batch_not @cimd_query_permitted = cimd_query_permitted @cimd_metadata_policy = cimd_metadata_policy @http_alias_prohibited = http_alias_prohibited + @attestation_challenge_time_window = attestation_challenge_time_window @access_token_sign_alg = access_token_sign_alg end @@ -1087,6 +1096,7 @@ def ==(other) return false unless @pkce_required == other.pkce_required return false unless @pkce_s256_required == other.pkce_s256_required return false unless @authorization_response_duration == other.authorization_response_duration + return false unless @authorization_code_duration == other.authorization_code_duration return false unless @token_endpoint == other.token_endpoint return false unless @direct_token_endpoint_enabled == other.direct_token_endpoint_enabled return false unless @supported_token_auth_methods == other.supported_token_auth_methods @@ -1233,6 +1243,7 @@ def ==(other) return false unless @cimd_query_permitted == other.cimd_query_permitted return false unless @cimd_metadata_policy == other.cimd_metadata_policy return false unless @http_alias_prohibited == other.http_alias_prohibited + return false unless @attestation_challenge_time_window == other.attestation_challenge_time_window return false unless @access_token_sign_alg == other.access_token_sign_alg true end diff --git a/lib/authlete/models/components/service_input.rbi b/lib/authlete/models/components/service_input.rbi index db2ef5a..f317613 100644 --- a/lib/authlete/models/components/service_input.rbi +++ b/lib/authlete/models/components/service_input.rbi @@ -66,6 +66,8 @@ class Authlete::Models::Components::ServiceInput def pkce_s256_required=(str_); end def authorization_response_duration(); end def authorization_response_duration=(str_); end + def authorization_code_duration(); end + def authorization_code_duration=(str_); end def token_endpoint(); end def token_endpoint=(str_); end def direct_token_endpoint_enabled(); end @@ -358,6 +360,8 @@ class Authlete::Models::Components::ServiceInput def cimd_metadata_policy=(str_); end def http_alias_prohibited(); end def http_alias_prohibited=(str_); end + def attestation_challenge_time_window(); end + def attestation_challenge_time_window=(str_); end def access_token_sign_alg(); end def access_token_sign_alg=(str_); end end diff --git a/lib/authlete/native_sso.rb b/lib/authlete/native_sso.rb index fab91f0..e231388 100644 --- a/lib/authlete/native_sso.rb +++ b/lib/authlete/native_sso.rb @@ -83,7 +83,7 @@ def process_request(native_sso_request:, service_id:, timeout_ms: nil, http_head timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -98,7 +98,7 @@ def process_request(native_sso_request:, service_id:, timeout_ms: nil, http_head error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -135,13 +135,13 @@ def process_request(native_sso_request:, service_id:, timeout_ms: nil, http_head response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -246,7 +246,7 @@ def logout(native_sso_logout_request:, service_id:, timeout_ms: nil, http_header timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -261,7 +261,7 @@ def logout(native_sso_logout_request:, service_id:, timeout_ms: nil, http_header error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -298,13 +298,13 @@ def logout(native_sso_logout_request:, service_id:, timeout_ms: nil, http_header response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/pushed_authorization.rb b/lib/authlete/pushed_authorization.rb index e68d4cd..28111a9 100644 --- a/lib/authlete/pushed_authorization.rb +++ b/lib/authlete/pushed_authorization.rb @@ -78,7 +78,7 @@ def create(pushed_authorization_request:, service_id:, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -93,7 +93,7 @@ def create(pushed_authorization_request:, service_id:, timeout_ms: nil, http_hea error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -130,13 +130,13 @@ def create(pushed_authorization_request:, service_id:, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/revocation.rb b/lib/authlete/revocation.rb index a916fb9..3fcdf22 100644 --- a/lib/authlete/revocation.rb +++ b/lib/authlete/revocation.rb @@ -78,7 +78,7 @@ def process_request(revocation_request:, service_id:, timeout_ms: nil, http_head timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -93,7 +93,7 @@ def process_request(revocation_request:, service_id:, timeout_ms: nil, http_head error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -130,13 +130,13 @@ def process_request(revocation_request:, service_id:, timeout_ms: nil, http_head response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/sdkconfiguration.rb b/lib/authlete/sdkconfiguration.rb index 041bf36..fd43ddf 100644 --- a/lib/authlete/sdkconfiguration.rb +++ b/lib/authlete/sdkconfiguration.rb @@ -92,8 +92,8 @@ def initialize(client, hooks, retry_config, timeout_ms, bearer, security_source, @language = 'ruby' @openapi_doc_version = '3.0.16' @sdk_version = '1.0.0' - @gen_version = '2.879.6' - @user_agent = 'speakeasy-sdk/ruby 1.0.0 2.879.6 3.0.16 authlete_ruby_sdk' + @gen_version = '2.912.1' + @user_agent = 'speakeasy-sdk/ruby 1.0.0 2.912.1 3.0.16 authlete_ruby_sdk' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/lib/authlete/services.rb b/lib/authlete/services.rb index 7b20ff3..b21140c 100644 --- a/lib/authlete/services.rb +++ b/lib/authlete/services.rb @@ -69,7 +69,7 @@ def retrieve(service_id:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -84,7 +84,7 @@ def retrieve(service_id:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -120,13 +120,13 @@ def retrieve(service_id:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -219,7 +219,7 @@ def list(start: nil, end_: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -234,7 +234,7 @@ def list(start: nil, end_: nil, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -271,13 +271,13 @@ def list(start: nil, end_: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -368,7 +368,7 @@ def create(request: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -383,7 +383,7 @@ def create(request: nil, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -420,13 +420,13 @@ def create(request: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200', '201']) if Utils.match_content_type(content_type, 'application/json') @@ -526,7 +526,7 @@ def update(service_id:, service: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -541,7 +541,7 @@ def update(service_id:, service: nil, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -578,13 +578,13 @@ def update(service_id:, service: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -673,7 +673,7 @@ def destroy(service_id:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -688,7 +688,7 @@ def destroy(service_id:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).delete(url) do |req| req.headers.merge!(headers) @@ -724,13 +724,13 @@ def destroy(service_id:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['204']) http_response = @sdk_configuration.hooks.after_success( @@ -819,7 +819,7 @@ def configuration(service_id:, pretty: nil, patch: nil, timeout_ms: nil, http_he timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -834,7 +834,7 @@ def configuration(service_id:, pretty: nil, patch: nil, timeout_ms: nil, http_he error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -871,13 +871,13 @@ def configuration(service_id:, pretty: nil, patch: nil, timeout_ms: nil, http_he response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/token_management.rb b/lib/authlete/token_management.rb index 4e4b2b5..6d172bb 100644 --- a/lib/authlete/token_management.rb +++ b/lib/authlete/token_management.rb @@ -81,7 +81,7 @@ def reissue_id_token(service_id:, idtoken_reissue_request: nil, timeout_ms: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -96,7 +96,7 @@ def reissue_id_token(service_id:, idtoken_reissue_request: nil, timeout_ms: nil, error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -133,13 +133,13 @@ def reissue_id_token(service_id:, idtoken_reissue_request: nil, timeout_ms: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -226,7 +226,7 @@ def list(request:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -241,7 +241,7 @@ def list(request:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) @@ -278,13 +278,13 @@ def list(request:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -385,7 +385,7 @@ def create(token_create_request:, service_id:, timeout_ms: nil, http_headers: ni timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -400,7 +400,7 @@ def create(token_create_request:, service_id:, timeout_ms: nil, http_headers: ni error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -437,13 +437,13 @@ def create(token_create_request:, service_id:, timeout_ms: nil, http_headers: ni response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -544,7 +544,7 @@ def update(token_update_request:, service_id:, timeout_ms: nil, http_headers: ni timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -559,7 +559,7 @@ def update(token_update_request:, service_id:, timeout_ms: nil, http_headers: ni error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -596,13 +596,13 @@ def update(token_update_request:, service_id:, timeout_ms: nil, http_headers: ni response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -692,7 +692,7 @@ def destroy(service_id:, access_token_identifier:, timeout_ms: nil, http_headers timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -707,7 +707,7 @@ def destroy(service_id:, access_token_identifier:, timeout_ms: nil, http_headers error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).delete(url) do |req| req.headers.merge!(headers) @@ -743,13 +743,13 @@ def destroy(service_id:, access_token_identifier:, timeout_ms: nil, http_headers response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['204']) http_response = @sdk_configuration.hooks.after_success( @@ -841,7 +841,7 @@ def revoke(token_revoke_request:, service_id:, timeout_ms: nil, http_headers: ni timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -856,7 +856,7 @@ def revoke(token_revoke_request:, service_id:, timeout_ms: nil, http_headers: ni error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -893,13 +893,13 @@ def revoke(token_revoke_request:, service_id:, timeout_ms: nil, http_headers: ni response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/tokens.rb b/lib/authlete/tokens.rb index 4270279..e0cafd1 100644 --- a/lib/authlete/tokens.rb +++ b/lib/authlete/tokens.rb @@ -79,7 +79,7 @@ def process_request(token_request:, service_id:, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -94,7 +94,7 @@ def process_request(token_request:, service_id:, timeout_ms: nil, http_headers: error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -131,13 +131,13 @@ def process_request(token_request:, service_id:, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -239,7 +239,7 @@ def fail_request(token_fail_request:, service_id:, timeout_ms: nil, http_headers timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -254,7 +254,7 @@ def fail_request(token_fail_request:, service_id:, timeout_ms: nil, http_headers error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -291,13 +291,13 @@ def fail_request(token_fail_request:, service_id:, timeout_ms: nil, http_headers response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -399,7 +399,7 @@ def issue_response(token_issue_request:, service_id:, timeout_ms: nil, http_head timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -414,7 +414,7 @@ def issue_response(token_issue_request:, service_id:, timeout_ms: nil, http_head error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -451,13 +451,13 @@ def issue_response(token_issue_request:, service_id:, timeout_ms: nil, http_head response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/userinfo.rb b/lib/authlete/userinfo.rb index 4b15554..62f61e6 100644 --- a/lib/authlete/userinfo.rb +++ b/lib/authlete/userinfo.rb @@ -78,7 +78,7 @@ def process_request(userinfo_request:, service_id:, timeout_ms: nil, http_header timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -93,7 +93,7 @@ def process_request(userinfo_request:, service_id:, timeout_ms: nil, http_header error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -130,13 +130,13 @@ def process_request(userinfo_request:, service_id:, timeout_ms: nil, http_header response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -237,7 +237,7 @@ def issue_response(userinfo_issue_request:, service_id:, timeout_ms: nil, http_h timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -252,7 +252,7 @@ def issue_response(userinfo_issue_request:, service_id:, timeout_ms: nil, http_h error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -289,13 +289,13 @@ def issue_response(userinfo_issue_request:, service_id:, timeout_ms: nil, http_h response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/authlete/utils/retries.rb b/lib/authlete/utils/retries.rb index 3bc0f10..4ebf35e 100644 --- a/lib/authlete/utils/retries.rb +++ b/lib/authlete/utils/retries.rb @@ -80,12 +80,15 @@ def to_faraday_retry_options(initial_time:) if @strategy == 'backoff' && @backoff retry_options[:backoff_factor] = @backoff.exponent unless @backoff.exponent.nil? retry_options[:interval] = (@backoff.initial_interval.to_f / 1000) unless @backoff.initial_interval.nil? - retry_options[:max_interval] = @backoff.max_interval unless @backoff.max_interval.nil? + retry_options[:max_interval] = (@backoff.max_interval.to_f / 1000) unless @backoff.max_interval.nil? unless @backoff.max_elapsed_time.nil? stop_time = initial_time + (@backoff.max_elapsed_time.to_f / 1000) retry_options[:retry_if] = ->(_env, _exc) { Time.now < stop_time } end + + retry_options[:rate_limit_retry_header] = 'retry-after-ms' + retry_options[:header_parser_block] = ->(value) { value.to_f / 1000 } end retry_options diff --git a/lib/authlete/verifiable_credentials.rb b/lib/authlete/verifiable_credentials.rb index 8c5c464..8efcb6a 100644 --- a/lib/authlete/verifiable_credentials.rb +++ b/lib/authlete/verifiable_credentials.rb @@ -77,7 +77,7 @@ def metadata(vci_metadata_request:, service_id:, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -92,7 +92,7 @@ def metadata(vci_metadata_request:, service_id:, timeout_ms: nil, http_headers: error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -129,13 +129,13 @@ def metadata(vci_metadata_request:, service_id:, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -235,7 +235,7 @@ def jwt_issuer(vci_jwtissuer_request:, service_id:, timeout_ms: nil, http_header timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -250,7 +250,7 @@ def jwt_issuer(vci_jwtissuer_request:, service_id:, timeout_ms: nil, http_header error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -287,13 +287,13 @@ def jwt_issuer(vci_jwtissuer_request:, service_id:, timeout_ms: nil, http_header response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -393,7 +393,7 @@ def jwks(vci_jwks_request:, service_id:, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -408,7 +408,7 @@ def jwks(vci_jwks_request:, service_id:, timeout_ms: nil, http_headers: nil) error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -445,13 +445,13 @@ def jwks(vci_jwks_request:, service_id:, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -551,7 +551,7 @@ def create_offer(vci_offer_create_request:, service_id:, timeout_ms: nil, http_h timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -566,7 +566,7 @@ def create_offer(vci_offer_create_request:, service_id:, timeout_ms: nil, http_h error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -603,13 +603,13 @@ def create_offer(vci_offer_create_request:, service_id:, timeout_ms: nil, http_h response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -709,7 +709,7 @@ def offer_info(vci_offer_info_request:, service_id:, timeout_ms: nil, http_heade timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -724,7 +724,7 @@ def offer_info(vci_offer_info_request:, service_id:, timeout_ms: nil, http_heade error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -761,13 +761,13 @@ def offer_info(vci_offer_info_request:, service_id:, timeout_ms: nil, http_heade response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -867,7 +867,7 @@ def parse(vci_single_parse_request:, service_id:, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -882,7 +882,7 @@ def parse(vci_single_parse_request:, service_id:, timeout_ms: nil, http_headers: error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -919,13 +919,13 @@ def parse(vci_single_parse_request:, service_id:, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1025,7 +1025,7 @@ def issue_response(vci_single_issue_request:, service_id:, timeout_ms: nil, http timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -1040,7 +1040,7 @@ def issue_response(vci_single_issue_request:, service_id:, timeout_ms: nil, http error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -1077,13 +1077,13 @@ def issue_response(vci_single_issue_request:, service_id:, timeout_ms: nil, http response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1183,7 +1183,7 @@ def batch_parse(vci_batch_parse_request:, service_id:, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -1198,7 +1198,7 @@ def batch_parse(vci_batch_parse_request:, service_id:, timeout_ms: nil, http_hea error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -1235,13 +1235,13 @@ def batch_parse(vci_batch_parse_request:, service_id:, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1341,7 +1341,7 @@ def batch_issue(vci_batch_issue_request:, service_id:, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -1356,7 +1356,7 @@ def batch_issue(vci_batch_issue_request:, service_id:, timeout_ms: nil, http_hea error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -1393,13 +1393,13 @@ def batch_issue(vci_batch_issue_request:, service_id:, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1499,7 +1499,7 @@ def deferred_parse(vci_deferred_parse_request:, service_id:, timeout_ms: nil, ht timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -1514,7 +1514,7 @@ def deferred_parse(vci_deferred_parse_request:, service_id:, timeout_ms: nil, ht error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -1551,13 +1551,13 @@ def deferred_parse(vci_deferred_parse_request:, service_id:, timeout_ms: nil, ht response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1657,7 +1657,7 @@ def deferred_issue(vci_deferred_issue_request:, service_id:, timeout_ms: nil, ht timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client @@ -1672,7 +1672,7 @@ def deferred_issue(vci_deferred_issue_request:, service_id:, timeout_ms: nil, ht error = T.let(nil, T.nilable(StandardError)) http_response = T.let(nil, T.nilable(Faraday::Response)) - + begin http_response = T.must(connection).post(url) do |req| req.body = body @@ -1709,13 +1709,13 @@ def deferred_issue(vci_deferred_issue_request:, service_id:, timeout_ms: nil, ht response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json')