-
Notifications
You must be signed in to change notification settings - Fork 147
Style fixes and Python best practices #91
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 7 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
9ccbcd1
Import issues
pamelafox 0bb66e7
Black reformatting
pamelafox 5ffec2e
Dont use flask-session package
pamelafox b48ad3e
Add sample
pamelafox 8bf9bd3
Use .env in b2c
pamelafox a55f6e6
Reimport os
pamelafox c27881c
Updates per comments
pamelafox a0050c6
Trailing comma
pamelafox dd2fbe8
Readme and Powershell updates
pamelafox 4b2d4d8
Update README.md
pamelafox aa116ff
readme updates
pamelafox b20c150
Address B2C issues
pamelafox e445e24
TENANT_ID vs TENANT_NAME
pamelafox bf1db53
Update app_config.py
pamelafox e89204f
Tenant name for b2c
pamelafox 7051225
Merge branch 'style-fixes' of https://github.com/pamelafox/ms-identit…
pamelafox 52c44bf
Flask-session instead of Flask-session2
pamelafox 17c6378
Updated scripts
pamelafox e9aa164
Merge branch 'style-fixes' of https://github.com/pamelafox/ms-identit…
pamelafox 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| FLASK_DEBUG=True | ||
| CLIENT_ID=<client id> | ||
| CLIENT_SECRET=<client secret> | ||
| TENANT_ID=<tenant id> | ||
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
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,24 +1,7 @@ | ||
| ## The following combination still work, but later versions of 1.x were broken | ||
| # due to their upstream package brought in a breaking change | ||
| # https://github.com/pallets/markupsafe/issues/286 | ||
| # Flask==1.1.4 | ||
| # werkzeug==1.0.1 | ||
| # Jinja2==2.11.3 | ||
| # MarkupSafe==2.0.1 | ||
rayluo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # | ||
| # Since Flask family do not use semantic versioning, we remove our upper bound here | ||
| Flask>=2 | ||
| # If Flask-Session is not maintained in future, Flask-Session2 should work as well | ||
| Flask-Session>=0.3.2,<0.5 | ||
| werkzeug>=2 | ||
|
|
||
| flask-session>=0.3.2,<0.5 | ||
| requests>=2,<3 | ||
| identity>=0.2,<0.3 | ||
|
|
||
| # cachelib==0.1 # Only need this if you are running Python 2 | ||
rayluo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # Note: This sample does NOT directly depend on cachelib. | ||
| # It is an indirect dependency of flask-session. | ||
| # Cachelib 0.1.1 no longer supports Python 2 | ||
| # (see also https://github.com/pallets/cachelib/issues/14) | ||
| # So, if you still need to run your app in Python 2, | ||
| # your workaround is to pin cachelib to its older version 0.1, | ||
| # but keep in mind it contains a known bug https://github.com/pallets/cachelib/pull/12 | ||
| python-dotenv<0.22 | ||
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.
Uh oh!
There was an error while loading. Please reload this page.