New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Major release 1.0.0 #52
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Closed
* Add config modules * Start to build behavior for HTTP client * Add `Castable` module to define behavior for casting or transforming data * Handle response * Add HTTP methods to client behavior * Add `TeslaClient` implementation * Add comment to prod.exs to fix `mix format` * Fix casing for `WorkOS` namespace * Add `@deprecated` to `WorkOS.API` * Fix test config * Validate config * Fix linter * Add module for structured error response * Extract env variables to separate variables
* Add `ISSUE_TEMPLATE.md` (#34) * Permit `expires_in` param when creating passwordless session (#35) Co-authored-by: Mark Tran <mark.tran@gmail.com> * Start to build behavior for HTTP client * Add `Castable` module to define behavior for casting or transforming data * Handle response * Add HTTP methods to client behavior * Add `TeslaClient` implementation * Add comment to prod.exs to fix `mix format` * Fix casing for `WorkOS` namespace * Add `@deprecated` to `WorkOS.API` * Fix test config * Validate config * Fix linter * Add livebook file --------- Co-authored-by: Jordan Mackie <12185627+jmackie@users.noreply.github.com> Co-authored-by: Mark Tran <mark.tran@gmail.com>
* Update `mix.exs` * Add util module * Add `Connection` struct * Add `List` castable module * Add `list_connections` method * Add `delete_connection` method * Add `get_connection` method * Add draft for `get_authorization_url` * Add `dialyxir` dependency * Remove old SSO module * Define logic for `get_authorization_url` * Add `Profile` and `ProfileAndToken` response structs * Add `get_profile` function * Add basic layer for tests * Add structs to `mix.exs` * Fix guard on `get_authorization_url` * Remove deprecated tests * Add doc comments for parameter options of `get_authorization_url` * Remove `Application.put_env` from `test_helper` * Add draft test * Fix extension of test files to `exs` * Apply case for test config * Define base URL for test * Fix test * Implement tests for `get_authorization_url` * Define test for `get_profile_and_token` * Implement tests for `get_profile_and_token` * Implement tests for `get_profile` * Implement test for `get_connection` * Implement test for `list_connections` * Rename `ClientMock` to `SSO.ClientMock` * Implement test for `delete_connection` * Fix return type for `delete_connection` * Fix `mix credo` issues * Update comment indentation * Handle case where `get_authorization_url` is called without having the application config loaded * Add validation for `redirect_uri` * Include `client_id` on WorkOS Client * Update livebook examples * Fix connection struct * Add `WorkOS.Empty` * Remove `IO.inspect`
* Add skeleton for Organizations module * Remove old `Organizations` module * Add missing `object` key to connections domain * Add response struct for organizations * Implement functions for `Organization` module * Add `create_organization` and `update_organization` * Extract exceptions to separate modules * Allow to call `list` functions without client and map args * Implement tests for organizations * Update Livebook examples * Remove `Logger` * Remove `WorkOS.Util` and fix timestamps
* Add base modules * Implement `get_directory` * Implement `list_directories` * Implement `delete_directory` * Implement `Directory.User` * Add tests for directory users * Remove `WorkOS.Util` * Add Livebook examples * Rollback `Util` changes * Remove `DateTime` from timestamps to match API reference * Add missing `object` keys to response structs * Remove WorkOS.Util
* Add draft for User Management module * Add `Invitation` struct * Add `User` struct * Add User API methods * Add methods from `Invitation` API * Add `OrganizationMembership` API methods * Add Password Reset API methods * Add Email Verification API methods * Add MFA response structs * Add Multi-Factor API methods * Add Magic Auth API methods * Add Authentication API methods * Add `get_authorization_url` * Update Livebook * Fixes `authorize` parameters
* Remove legacy `WorkOS.API` * Add `OrganizationDomain` struct * Add Domain Verification API methods * Add domain verification API methods
LauraBeatris
force-pushed
the
release/1.0.0
branch
from
December 4, 2023 00:50
aca8fea
to
ef630a4
Compare
* Rename to `OrganizationDomains` * Add to Livebook
LauraBeatris
commented
Dec 4, 2023
LauraBeatris
force-pushed
the
release/1.0.0
branch
6 times, most recently
from
December 19, 2023 15:24
6485c93
to
40c7f1d
Compare
LauraBeatris
force-pushed
the
release/1.0.0
branch
from
December 19, 2023 15:56
40c7f1d
to
996b410
Compare
blairlunceford
approved these changes
Dec 19, 2023
LauraBeatris
force-pushed
the
release/1.0.0
branch
4 times, most recently
from
December 20, 2023 12:17
3212fe4
to
d0d625e
Compare
LauraBeatris
force-pushed
the
release/1.0.0
branch
from
December 20, 2023 12:20
d0d625e
to
2e5dc32
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking changes
Response structs
For matching clauses like this one:
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: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 theWorkOS.Client
module behavior.However, as previously, the only required config option is
:api_key
and:client_id
.You can also create a
client
struct separately, and pass it to each method.Note that if you choose to configure WorkOS in your app config, passing a client struct is always optional.
Removed
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