Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* [#532](https://github.com/workos/workos-ruby/pull/532) fix(generated): regenerate from spec

**Fixes**
* **[sso](https://workos.com/docs/reference/sso)**:
* Removed `callback_endpoint` from `Connection`
2 changes: 1 addition & 1 deletion .last-synced-sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
904c5bccd2c6d0511ad2d0760e57d139143f1773
ae3ebbb08d9b4bf9b2391558e820b7eb6f511fb9
2 changes: 1 addition & 1 deletion lib/workos/sso.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def delete_connection(
# @param domain_hint [String, nil] Can be used to pre-fill the domain field when initiating authentication with Microsoft OAuth or with a Google SAML connection type.
# @param login_hint [String, nil] Can be used to pre-fill the username/email address field of the IdP sign-in page for the user, if you know their username ahead of time. Currently supported for OAuth, OpenID Connect, Okta, Entra ID, and custom SAML connections.
# @param nonce [String, nil] A random string generated by the client that is used to mitigate replay attacks.
# @param prompt [String, nil] If set to `login`, forces re-authentication at the identity provider. For SAML connections this sets `ForceAuthn="true"` in the SAML request.
# @param prompt [String, nil] If set to `login`, forces re-authentication at the identity provider. For supported SAML providers this sets `ForceAuthn="true"` in the SAML request; providers that don't support it are unaffected.
# @return [String]
def get_authorization_url(
redirect_uri:,
Expand Down
3 changes: 0 additions & 3 deletions lib/workos/sso/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class Connection < WorkOS::Types::BaseModel
state: :state,
status: :status,
domains: :domains,
callback_endpoint: :callback_endpoint,
created_at: :created_at,
updated_at: :updated_at
}.freeze
Expand All @@ -29,7 +28,6 @@ class Connection < WorkOS::Types::BaseModel
:name,
:state,
:domains,
:callback_endpoint,
:created_at,
:updated_at

Expand All @@ -50,7 +48,6 @@ def initialize(json)
@state = hash[:state]
@status = hash[:status]
@domains = (hash[:domains] || []).map { |item| item ? WorkOS::ConnectionDomain.new(item) : nil }
@callback_endpoint = hash[:callback_endpoint]
@created_at = hash[:created_at]
@updated_at = hash[:updated_at]
end
Expand Down
6 changes: 0 additions & 6 deletions rbi/workos/connection.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ module WorkOS
sig { params(value: T::Array[WorkOS::ConnectionDomain]).returns(T::Array[WorkOS::ConnectionDomain]) }
def domains=(value); end

sig { returns(T.nilable(String)) }
def callback_endpoint; end

sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
def callback_endpoint=(value); end

sig { returns(String) }
def created_at; end

Expand Down
1 change: 0 additions & 1 deletion test/workos/test_sso_model_round_trip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def test_connection_round_trip
"state" => "stub",
"status" => "stub",
"domains" => [],
"callback_endpoint" => "stub",
"created_at" => "stub",
"updated_at" => "stub"
}
Expand Down