Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
153 changes: 77 additions & 76 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ ruby:
webhooks: models/webhooks
inferUnionDiscriminators: false
inputModelSuffix: input
license: Apache-2.0
maxMethodParams: 4
module: Authlete
multipartArrayFormat: legacy
Expand Down
16 changes: 16 additions & 0 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -305,6 +306,7 @@ paths:
value: attribute2-value
authorizationEndpoint: https://as.example.com/authz
authorizationResponseDuration: 0
authorizationCodeDuration: 0
backchannelAuthReqIdDuration: 0
backchannelBindingMessageRequiredInFapi: false
backchannelPollingInterval: 0
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
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
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
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
10 changes: 10 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
2 changes: 1 addition & 1 deletion authlete_ruby_sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 3 additions & 1 deletion docs/models/components/service.md

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion docs/models/components/serviceinput.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/sdks/services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ res = s.services.update(service_id: '<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: [
Expand Down
24 changes: 12 additions & 12 deletions lib/authlete/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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')
Expand Down
16 changes: 8 additions & 8 deletions lib/authlete/authorization_management.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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')
Expand Down
Loading