Go SDK

WorkOS SDK libraries for your favorite platforms.

v1.12.0

  • Updated enum list to current providers
  • Made expires_at non-nullable
  • Mapped all available fields in directory group interface

v1.11.0

  • Exposed HTTPError struct (#152)

v1.10.0

  • Added MFA API support (#144)

v1.9.0

  • Renamed GitHub org from "workos-inc" to "workos" (#145)

v1.8.0

  • Added organization_id filter to list directories method (#142)

v1.7.0

  • Added support for passing an organization to initiate SSO (#139)
  • Fixed typo in Directory Sync URL (#140)

v1.6.1

  • Added directory_id and idp_id to directory user, as well as the inactive state constant (#137)

v1.6.0

  • Added GetDirectory method to retrieve a single Directory (#125)
  • Exposed the ValidatePayload method on the Webhooks client (#129)
  • Added support for domain_hint and login_hint parameters to GetAuthorizationURL (#133)

v1.5.1

  • Added missing connection types (#130)

v1.5.0

  • Added webhook signature validation method (#123)
  • Updated name to email in PasswordlessSession (#127)

v1.4.0

  • Added CreatedAt and UpdatedAt timestamps to the following resources: (#118)
    • Connection
    • Directory
    • Organization
  • Added support for AllowProfilesOutsideOrganization to organizations (#120)
  • Added OrganizationID to profiles (#121)
  • Improved error handling around OAuth-style errors (#108)

v1.3.0

  • Added custom_attributes for Directory Users (#117)

v1.2.1

  • Removed internal dependency on gjson (#115)

v1.2.0

  • Included the organization_id to Directory object

v1.1.0

  • Added expires_in functionality to the createSession() function used in Magic Link

v1.0.0

  • sso.GetProfile has been renamed to sso.GetProfileAndToken (#100)
    • The return type has also been changed from (Profile, error) to (ProfileAndToken, error)
  • Organization operations have been moved from the portal package to organizations (#101)
    • portal.ListOrganizationsorganizations.ListOrganizations
    • portal.GetOrganizationorganizations.GetOrganization
    • portal.CreateOrganizationorganizations.CreateOrganization
    • portal.UpdateOrganizationorganizations.UpdateOrganization
  • sso.CreateConnection and sso.PromoteDraftConnection have been removed (#102)

v0.10.8

  • Added support for connection parameter for Create Passwordless Session method
  • Added Get Organization method
  • Removed deprecated Connection fields

v0.10.7

  • Added deprecation note for connection status in favor of connection state (both are still supported at this time)
  • Added method to update an organization

v0.10.6

  • Exposed idp_ID for directory sync profiles

v0.10.5

  • Added a delete directory function to the DirectorySync package

v0.10.4

  • Added connection to GetAuthorizationURLOptions (#84)

v0.10.3

  • Added dsync intent to Admin Portal

v0.10.2

  • Added state field for Directory Users

v0.10.1

  • Removed Unneeded Attribute from Directory Struct (#74)
  • Updated the SDK version to 0.10.1 (#75)

v0.10.0

  • Added RedirectURI Passwordless Option (#62)
  • Added GET /connections (#64)
  • Added GET /connections/:id (#65)
  • Added ConnectionState to Connection struct (#69)
  • Added DELETE /connections/:id (#68)
  • Updated CODEOWNERS (#61)
  • Decoded Org ID from Connection API responses (#66)

v0.9.0

  • Added Magic Link support (#60)
  • Updated package READMEs to point to integration guides
  • Updated docstrings and typos

v0.8.1

  • Updated ConnectionType to reflect all Connection Types currently available in GA (#59)
  • Updated the SDK version to 0.8.1 (#59)

v0.8.0

  • Cleaned up deprecated RedirectURI from sso.Configure() arguments. RedirectURI is a required argument of sso.GetAuthorizationURL()

v0.7.0

  • Exposed connection_id attribute on Profile objects (#56)

0.6.0

  • Added support for our Admin Portal product including:
    • Listing existing Organization resources
    • Creating an Organization resource
    • Generating a scoped link to the Admin Portal