-
Notifications
You must be signed in to change notification settings - Fork 184
Add support for organizations feature #258
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
Conversation
stevehobbsdev
left a comment
There was a problem hiding this 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") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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``: |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
Changes
This PR adds support for the (beta) Organizations and User Invitations features. Changes included:
AuthorizeClient.org_idclaim inTokenVerifierTesting
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.
Checklist