-
Notifications
You must be signed in to change notification settings - Fork 206
Release 1.9.0 #309
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
Release 1.9.0 #309
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
e2ccb94
Merge pull request #291 from AzureAD/release-1.8.0
rayluo e110a63
Be compatible with PyJWT 1 & 2
rayluo 9862e8c
Merge branch 'adapt-to-pyjwt2' into dev
rayluo 381fe58
Merge remote-tracking branch 'oauth2cli/dev' into compatible-with-pyj…
rayluo 4bac5a8
Merge pull request #296 from AzureAD/compatible-with-pyjwt1_and_2
rayluo 259ecb1
The ssh-cert scope needs to be updated
rayluo c456ce4
Merge branch 'update-ssh-cert-test-case' into dev
rayluo 5490182
Show correlation_id when unittesting with -v param
rayluo 0b430c7
Refactor SSH Cert test cases to represent test requirements, and offi…
rayluo 770690b
Merge pull request #300 from AzureAD/ssh-cert-tests
rayluo 96614ec
Precise DeprecationWarning for auth code API
rayluo 0fb43c5
Merge pull request #303 from AzureAD/deprecates-auth-code
rayluo 523ed9b
Trying github actions
rayluo 334440e
Disable flake8 for now
rayluo e30b305
Fake a TRAVIS env
rayluo 0b4d3d3
Use env vars to enable e2e tests
rayluo 290bff4
Cache dependencies, although the gain is insignificant for this repo
rayluo b0ff1ce
Enable tests on all python versions we supported
rayluo 42dda13
Merge branch 'github-actions' into dev
rayluo 5165138
Refine OBO test case's guidance message
rayluo a66d314
Merge pull request #305 from AzureAD/obo-test-message
rayluo 886c3f3
Add prompt parameter into interactive sample
rayluo cd01c44
Merge pull request #306 from AzureAD/interactive-sample-prompt
rayluo cd7537d
Pass kwargs to acquire_token_by_refresh_token (#298)
jiasli 25ffca3
Better error msg when aud and client_id mismatch
rayluo 4095aa4
Merge branch 'improve-error-message-when-aud-check-fails' into dev
rayluo 6789d67
Merge remote-tracking branch 'oauth2cli/dev' into improve-aud-error-msg
rayluo 43d6f4b
Merge pull request #307 from AzureAD/improve-aud-error-msg
rayluo 0d4b8c2
Backport the customizable on_obtaining_tokens()
rayluo da61f80
Merge branch 'customizable-on_obtaining_tokens' into dev
rayluo 770bab3
Allow auth code flow to work inside a local container
rayluo 1bebb02
Merge branch 'auth-code-flow-in-local-container' into dev
rayluo eb0a86f
Merge remote-tracking branch 'oauth2cli/dev' into interactive-flow-ad…
rayluo fc604b7
Merge branch 'interactive-flow-adjustment' into dev
rayluo a8bf236
MSAL Python 1.9.0
rayluo 2616d89
We will use github actions for release
rayluo 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,89 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: CI/CD | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ dev ] | ||
|
||
jobs: | ||
ci: | ||
env: | ||
# Fake a TRAVIS env so that the pre-existing test cases would behave like before | ||
TRAVIS: true | ||
LAB_APP_CLIENT_ID: ${{ secrets.LAB_APP_CLIENT_ID }} | ||
LAB_APP_CLIENT_SECRET: ${{ secrets.LAB_APP_CLIENT_SECRET }} | ||
LAB_OBO_CLIENT_SECRET: ${{ secrets.LAB_OBO_CLIENT_SECRET }} | ||
LAB_OBO_CONFIDENTIAL_CLIENT_ID: ${{ secrets.LAB_OBO_CONFIDENTIAL_CLIENT_ID }} | ||
LAB_OBO_PUBLIC_CLIENT_ID: ${{ secrets.LAB_OBO_PUBLIC_CLIENT_ID }} | ||
|
||
# Derived from https://docs.github.com/en/actions/guides/building-and-testing-python#starting-with-the-python-workflow-template | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
# Derived from https://github.com/actions/cache/blob/main/examples.md#using-pip-to-get-cache-location | ||
# However, a before-and-after test shows no improvement in this repo, | ||
# possibly because the bottlenect was not in downloading those small python deps. | ||
- name: Get pip cache dir from pip 20.1+ | ||
id: pip-cache | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
- name: pip cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-py${{ matrix.python-version }}-pip-${{ hashFiles('**/setup.py', '**/requirements.txt') }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
#flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
#flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test with pytest | ||
run: | | ||
pytest | ||
|
||
cd: | ||
needs: ci | ||
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/main') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Build a package for release | ||
run: | | ||
python -m pip install build --user | ||
python -m build --sdist --wheel --outdir dist/ . | ||
- name: Publish to TestPyPI | ||
uses: pypa/[email protected] | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish to PyPI | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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
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.
Unfortunately,
host
network only works on Windows.https://docs.docker.com/network/host/
The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.