Ruby SDK

WorkOS SDK libraries for your favorite platforms.

v2.5.1

  • Fixed backwards capability issue to only set write_timeout if Ruby version is greater than or equal to 2.6.0 (#169)

v2.5.0

  • Added config initializer for key and timeout (#164)
  • Updated endpoints for MFA operations (#167)

v2.4.0

  • Added organization_id to Directory User and Directory Group, Added directory_id to Directory User (#165)

v2.3.0

  • Added order pagination parameter (#156)
  • Added idp_id, directory_id, created_at, updated_at, and raw_attributes to directory group (#157)
  • Added primary_email method for Directory User API (#161)
  • Removed environment_id fields (#155)
  • Required expires_at to not be nullable for authentication challenge (#158)

v2.2.1

  • Fixed bug where we were returning inconsistent data types from list_users and get_user endpoints (#147)

v2.2.0

  • Added support for MFA API (#144)
  • Added organization ID filter to list directories method (#142)
  • Added full type for get_timestamp_and_signature_hash (#140)

v2.1.1

  • Fixed bug in webhook tolerance check (#138)

v2.1.0

  • Added support for domain_hint and login_hint parameters to authorization_url (#136)
  • Added support for organization parameter to authorization_url (#135)
  • Deprecated the domain parameter for authorization_url in favor of organization (#135)

v2.0.0

  • The organization_id field on the following objects is now nullable (#129):
    • Connection
    • Directory
    • Profile
  • Added DirectorySync.get_directory for retrieving a Directory by its ID (#132)

v1.6.1

  • Fixed bug to make directory domain nullable (#130)

v1.6.0

  • Added WorkOS::Webhooks module for verifying webhook signatures and timestamps (#113)
  • Added support for allow_profiles_outside_organization for organizations (#125)
  • Added organization_id to profiles (#126)

v1.5.1

  • Fixed thread safety issues with HTTP client (#110)

v1.5.0

  • Added custom_attributes for directory users (#119)
  • Added created_at and updated_at attributes for connections, organizations, and directories (#120)

v1.4.0

  • Added Microsoft OAuth provider enum (#116)
  • Bumped addressable from 2.7.0 to 2.8.0 (#112)

v1.3.0

  • Improved error handling by supporting error and error_description in the body of an error (#106)
  • Supported groups attribute for a directory user object (#107)
  • Added organization_id for directory object (#108)

v1.2.1

  • Fixed regression where Authorization header accidentally had included an extra } (#104)

v1.2.0

  • Added delete organization method (#102)

v1.1.0

  • Added get_profile method to WorkOS::SSO (#99)
  • Fixed bug on spec.required_ruby_version to include Ruby versions 2.5+ (#100)

v1.0.0

  • SSO.profile has been renamed to SSO.profile_and_token (#96)
    • The return type has also been changed from Profile to ProfileAndToken
  • Organization operations have been moved from Portal to Organizations (#95)
    • Portal.list_organizationsOrganizations.list_organizations
    • Portal.get_organizationOrganizations.get_organization
    • Portal.create_organizationOrganizations.create_organization
    • Portal.update_organizationOrganizations.update_organization
  • SSO.create_connection and SSO.promote_draft_connection have been removed (#97)
  • The deprecated project_id parameter for SSO::authorization_url and SSO::profile_and_token (formerly SSO::profile) has been fully removed. The client_id parameter should be used instead (#94)

v0.11.2

  • Added connection state (#89)
  • Connection parameter now supported in Create Passwordless Session method (#90)
  • Added update organization method (#91)
  • Added get an organization by ID method (#92)
  • Updated README (#88)
  • Deprecated connection status (#89)

v0.11.1

  • Exposed the idp_id for Directory Users (#87)

v0.11.0

  • Supported pagination from the WorkOS API (#82)
  • Updated Ruby version to 3.0.1 (#84)

v0.10.3

  • Added connection to authorization_url (#78)

v0.10.2

  • Added the dsync intent for Admin Portal (#76)

v0.10.1

  • Added organization id parameter to the list connections API (#74)

v0.10.0

  • Supported client_id (#68)
  • Added GET /connections endpoint (#70)
  • Added GET /connections/:id endpoint (#72)
  • Added DELETE /connections/:id endpoint (#73)
  • Deprecated project_id (#68)

v0.9.2

  • Required JSON gem for entire WorkOS module (#65)
  • Fixed bug on Audit Trail POST /events endpoint (#64)

v0.9.1

  • Added information on using redirect_uri in a passwordless session (#62)

v0.9.0

  • Exposed connection_id attribute on Profile objects (#60)