-
Notifications
You must be signed in to change notification settings - Fork 4
Update sample apps for Python SDK v5 #59
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
152b941
Update home page on sample app for 5.0
tribble 320abf0
Updates and fixes
tribble 480d240
Add views for user and group details
tribble e0e094d
API tweaks
tribble c92e84b
Add guards to satisfy typing
tribble 358d7ab
Add events page and fix up users
tribble a78fcfc
Make logo go back to home page
tribble e4c08eb
Handle no more events
tribble 6b32200
Update sample for 5.0
tribble 25f6754
Simplify type validation
tribble 2f0a918
Update version requirement
tribble 7994681
Update version requirement
tribble 1328d22
Update audit logs app for 5.0
tribble a93126f
Update magic link app to 5.0
tribble 635152e
Update mfa app for 5.0
tribble ceb7141
Update sso app for 5.0
tribble 7979026
Remove unused imports
tribble 3d99705
Minor change to admin portal app import
tribble 680846c
Update directory sync flask app for the new client init and kwargs
tribble 2c4ec79
Update for client changes
tribble 1c1f24b
Add debug base url to dsync app
tribble a648ffe
Update for new client
tribble 2c793de
Update for new client
tribble fbe32ce
Update for new client
tribble 738f955
Update for new client
tribble 29d6a8b
greater than or equal to 5.0
tribble ee10c0d
Fix workos version
tribble 143e051
Greater or equal to 5.0
tribble 4bb9401
Update event verification with new param name
tribble 70fb316
Slight tweak to domain creation
tribble cdd2936
Replace DEBUG global with an env variable to set the base api url
tribble File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
certifi==2021.5.30 | ||
charset-normalizer==2.0.6 | ||
click==8.0.1 | ||
Flask==2.0.1 | ||
Flask==2.0.3 | ||
idna==3.2 | ||
itsdangerous==2.0.1 | ||
Jinja2==3.0.1 | ||
MarkupSafe==2.0.1 | ||
requests==2.26.0 | ||
urllib3==1.26.7 | ||
Werkzeug==2.0.1 | ||
workos>=1.23.3 | ||
workos>=5.0.0 | ||
python-dotenv | ||
flask-lucide==0.2.0 |
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
from datetime import datetime | ||
from workos.audit_logs import AuditLogEvent | ||
|
||
user_organization_set = { | ||
"action": "user.organization_set", | ||
"occurred_at": datetime.now().isoformat(), | ||
"actor": { | ||
"type": "user", | ||
"id": "user_01GBNJC3MX9ZZJW1FSTF4C5938", | ||
}, | ||
"targets": [ | ||
{ | ||
"type": "team", | ||
"id": "team_01GBNJD4MKHVKJGEWK42JNMBGS", | ||
user_organization_set = AuditLogEvent( | ||
{ | ||
"action": "user.organization_set", | ||
"occurred_at": datetime.now().isoformat(), | ||
"actor": { | ||
"type": "user", | ||
"id": "user_01GBNJC3MX9ZZJW1FSTF4C5938", | ||
}, | ||
], | ||
"context": { | ||
"location": "123.123.123.123", | ||
"user_agent": "Chrome/104.0.0.0", | ||
}, | ||
} | ||
"targets": [ | ||
{ | ||
"type": "organization", | ||
"id": "team_01GBNJD4MKHVKJGEWK42JNMBGS", | ||
}, | ||
], | ||
"context": { | ||
"location": "123.123.123.123", | ||
"user_agent": "Chrome/104.0.0.0", | ||
}, | ||
} | ||
) |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Flask==2.0.3 | ||
Jinja2==3.1.1 | ||
workos>=1.23.3 | ||
workos>=5.0.0 | ||
python-dotenv | ||
flask-lucide==0.2.0 | ||
flask-lucide==0.2.0 | ||
Werkzeug==2.0.1 |
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Different examples used different flask versions. I set them all to the same version.
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.
Any reason we can't bump to the latest Flask version? Also fine with keeping this out of scope.
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 only reason I didn't bump up to latest version was to limit the scope of changes as I swept through and updated the sample apps. Basically, time savings for me in case bumping up to latest Flask triggered other code or dependency changes.