Skip to content

Conversation

@jimmyjames
Copy link
Contributor

Changes

This PR adds support for the (beta) Organizations and User Invitations features. Changes included:

  • Supports specifying the organization and invitation query parameters when using the AuthorizeClient.
  • Supports verification of the org_id claim in TokenVerifier
  • Adds documentation for using the Organizations and User Invitations features

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@jimmyjames jimmyjames added this to the v3-Next milestone Mar 24, 2021
@jimmyjames jimmyjames requested a review from a team as a code owner March 24, 2021 20:59
Copy link
Contributor

@stevehobbsdev stevehobbsdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just left a couple of minor comments.

README.rst Outdated

client.authorize(client_id='client_id',
redirect_uri='http://localhost',
invitation="invitation_123")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The section here describes logging into an Organization but the example is for invitations - typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, new commit pushed to fix.

README.rst Outdated
Accept user invitations
-----------------------

Accept a user invitation by specifying the ``invitation`` property when calling ``authorize()``. Note that you must also specify the ``organization`` if providing an ``invitation``:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also add in here where the organization and invitation values come from when accepting user invitations, and that the developer should inspect the invitation URL for these params, perhaps with a short example of how to parse that in Python (I'll leave that up to you).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added info about the invitation URL and the params, similar to the .NET API docs.

@jimmyjames jimmyjames merged commit 1e2fa55 into master Mar 25, 2021
@lbalmaceda lbalmaceda deleted the orgs-support branch March 25, 2021 16:28
@jimmyjames jimmyjames mentioned this pull request Mar 26, 2021
@jimmyjames jimmyjames modified the milestones: v3-Next, 3.15.0 Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants