Releases: workos/workos-elixir
v1.1.0
What's Changed
- Add groups to directory sync user struct by @bmanifold in #59
- Remove duplicate GHA workflow by @hexedpackets in #61
- Add OAuth token to WorkOS.UserManagement.Authentication struct by @hexedpackets in #60
- Bump to 1.1.0 by @PaulAsjes in #62
New Contributors
- @bmanifold made their first contribution in #59
- @hexedpackets made their first contribution in #61
- @PaulAsjes made their first contribution in #62
Full Changelog: 1.0.0...v1.1.0
v1.0.0
Description
This is the first major release of the WorkOS Elixir SDK, it introduces all of the core APIs from WorkOS released until this moment and provides better configuration support for applications.
However, it'll remain as an experimental SDK since we don't have plans to keep it up to date across core product API changes.
Breaking changes compared to previous minor versions
Response structs
For matching clauses like this one:
case WorkOS.Organizations.get_organization(org_id) do
{:ok,
%{
"id" => id,
"name" => name
}}
It might result in a similar "no clause matching" error:
Responses now have their structs that are parsed from the JSON responses. For instance, here's how to perform matching on the result of get_organization
with response structs:
{:ok, %WorkOS.Organizations.Organization{id: id}} =
WorkOS.Organizations.get_organization("org_123")
You may also encounter errors regarding Access Behaviour on Structs.
Configuration
Introducing a new configuration option: :client
, by default, this library uses Tesla but it can be replaced according to the WorkOS.Client
module behavior.
However, as previously, the only required config options are :api_key
and :client_id
.
You can also create a client
struct separately, and pass it to each method.
client = WorkOS.client(api_key: System.fetch_env!("WORKOS_API_KEY"), client_id: System.fetch_env!("WORKOS_CLIENT_ID"))
WorkOS.Organizations.get_organization(client, "org_123")
Note that if you choose to configure WorkOS in your app config, passing a client struct is always optional.
config :workos, WorkOS.Client,
api_key: "sk_12345",
client_id: "project_12345"
Removed
- Removed deprecated
domain
option fromWorkOS.SSO.get_authorization_url
,organization
should be used instead.
Added
We're introducing new API modules according to our latest features:
WorkOS.OrganizationDomains
: https://workos.com/docs/reference/domain-verificationWorkOS.UserManagement
: https://workos.com/docs/reference/user-managementWorkOS.Events
: https://workos.com/docs/reference/events
v0.4.0
v0.3.0
v0.2.0
v0.1.1
- Updated the configuration to support auto-generating docs for the hex package
v0.1.0
This is an initial beta version release.
This includes support for:
- Passwordless
- SSO
- Portal
- Directory Sync