-
Notifications
You must be signed in to change notification settings - Fork 205
client_assertion can accept a callback #747
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
Open
rayluo
wants to merge
867
commits into
dev
Choose a base branch
from
assertion-callback
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
867 commits
Select commit
Hold shift + click to select a range
d885927
Fix doc typo
rayluo 980e898
Merge branch 'doc-param-links' into dev
rayluo 95e523d
Broker (WAM) integration
rayluo bcefb10
Refine document
rayluo 3773e00
Gracefully handle RuntimeError upfront
rayluo 5ca97ee
Implement instance_discovery only
rayluo 24d243f
Merge pull request #496 from AzureAD/instance-discovery-endpoint
rayluo a0a1286
MSAL Python 1.19.0
rayluo 81b48ce
Bump up cryptography upperbound
rayluo 45d0dc5
Merge pull request #501 from AzureAD/release-1.19.0
rayluo 639f1b2
Test acquire_token_silent() for confidential client
rayluo f365f4e
Merge branch 'dev' into wam
rayluo 11675e0
Adopt pymsalruntime 0.13
rayluo 962fb0e
Remove automatic msa-pt for Azure CLI and Visual Studio
rayluo a08d6cd
Refactor test infrastructure to expose a known bug
rayluo 3696acb
Add more docs
rayluo ac71fe8
Merge pull request #415 from AzureAD/wam
rayluo f9ff1a6
MSAL Python 1.20.0
rayluo 0c73724
Update installation instruction
rayluo 273868b
Merge pull request #504 from AzureAD/release-1.20.0
rayluo 8026c02
Test matrix covers Python 3.11
rayluo efcb399
Merge pull request #512 from AzureAD/test-for-py3.11
rayluo c79d32e
Switch to new region endpoints
rayluo 61e3ec8
Merge pull request #513 from AzureAD/new-region-endpoint
rayluo 383fcfc
Test only Python versions available on github's ubuntu 22.04
rayluo 4a93a6c
Merge branch 'update-ci' into dev
rayluo d0e4bb9
Cleaner skip declaration
rayluo fcb21b9
Merge branch 'refactor-e2e' into dev
rayluo 14a4b79
Fallback to expires_on when expires_in is absent
rayluo eb8b71f
Merge pull request #519 from AzureAD/support_expires_on
rayluo 6dc0fdd
Show lab api error, useful when trying api params
rayluo 19d6aea
Merge branch 'lab-api-refactor' into dev
rayluo 5dfe85e
Clarify when (not) to read API section
rayluo 21bd422
Use broker for SSH Cert feature
rayluo 918b93f
Merge pull request #515 from AzureAD/enable-msalruntime-for-ssh-cert
rayluo e8b52b7
Allow using client_id as scope. Needed by B2C.
rayluo 8880918
Merge pull request #530 from AzureAD/allow-client_id-as-scope
rayluo 206cf3e
Bump PyMsalRuntime to 0.13.2+
rayluo df5fefb
Merge branch 'use-pymsalruntime-0.13.2' into dev
rayluo 8216e2c
MSAL Python 1.21.0
rayluo 7593d08
Merge pull request #532 from AzureAD/release-1.21.0
rayluo e61e8a0
Remind user to use proper helper for ssh cert test
rayluo b277002
Merge branch 'refine-ssh-cert-test' into dev
rayluo 7ecf651
point to correct quickstart
Dickson-Mwendia 5cc9cd9
Merge pull request #537 from Dickson-Mwendia/update-doc-references
rayluo b9ac33f
Fix Markdown link
pamelafox a5fed26
Merge pull request #540 from pamelafox/patch-2
rayluo 2fb3056
Remove effectiveless in-place clean
rayluo 4673f4d
Merge branch 'cache-without-side-effect' into dev
rayluo 0781ba1
Simplify and easier debugging
rayluo d4717ed
Merge branch 'refactor-oidc-discovery' into dev
rayluo 8a429bd
Update setup.cfg with documentation URL (#539)
pamelafox ec4748d
Fix type introduced in #537
rayluo 4b29298
Merge branch 'fix-docs-typo' into dev
rayluo 078a573
Remove a deprecated attribute, scheduled for 1.21+
rayluo 7e6a478
Merge pull request #547 from AzureAD/remove-deprecated-authority-http…
rayluo 89ef015
CIAM end-to-end test cases based on new lab API
rayluo 57c417b
Support https://contoso.ciamlogin.com as authority
rayluo ae7f40f
Bumping version numbers
rayluo 74752cb
Merge pull request #520 from AzureAD/ciam
rayluo a0d0f0e
Merge branch 'release-1.22.0' into dev
rayluo a6023ea
Turns out they changed to a new tag for MSAL. Fix #539
rayluo d72409c
Merge branch 'fix-stackoverflow-link' into dev
rayluo a48e22b
Clarify that allow_broker is not applicable to ConfidentialClientAppl…
rayluo 7d83e07
Merge pull request #559 from AzureAD/docs-staging
rayluo e1d2318
Merge remote-tracking branch 'oauth2cli/dev' into http-interface-polish
rayluo 3517aed
No need for DummyHttpResponse
rayluo 4a0eb39
Merge branch 'http-interface-polish' into dev
rayluo bc699f8
Adjustment for new CIAM partition
rayluo 518d04e
Merge pull request #564 from AzureAD/ciam-in-new-partition
rayluo d4ca347
Improve logs
rayluo 2638917
Merge branch 'improve-logs' into dev
rayluo 634d328
Add more sections into TOC for the now long doc
rayluo 6fe180f
Remove many Sphinx warnings
rayluo 0d9050c
Merge branch 'docs-staging' into dev
rayluo 97ec665
Github removes Python 2.7 support on 2023-6-19
rayluo d515d18
Merge branch 'fix-build-error' into dev
rayluo 2184e50
Remove acquire_token_silent(..., account=None) usage in a backward-co…
rayluo 0f635cd
Merge pull request #577 from AzureAD/silent-adjustment
rayluo 0e5c685
Bumping up version numbers
rayluo 7491207
Merge branch 'release-1.23.0' into dev
rayluo 44df9c7
msaltest.py switches from confusing pprint to json
rayluo dfe4efa
Merge branch 'msaltest-json' into dev
rayluo 76259f9
Switch from setup.py to setup.cfg
rayluo 8d6d6c5
Ship release- branch of a non-draft PR to TestPyPI
rayluo 54b65a2
Surface msal telemetry as a long opaque string
rayluo d98bb8f
Merge branch 'pipeline-adjustment' into dev
rayluo 450ca64
Use a neutral name to hopefully avoid false alarm
rayluo 4ae433d
Merge pull request #586 from AzureAD/avoid-false-alarm
rayluo 4ca460f
Merge pull request #575 from AzureAD/msalruntime-telemetry
rayluo c943dc8
Fix typo in test names (warnning → warning)
musicinmybrain f5d2067
Merge pull request #588 from musicinmybrain/warnning
rayluo 23e3ce2
Explicitly pip cache seems unnecessary
rayluo e90e36a
Merge branch 'simplify-workflow' into dev
rayluo 546760d
Add enable_pii_log and wire it up with MsalRuntime
rayluo ca713b4
Merge pull request #590 from AzureAD/enable-pii
rayluo 45d7682
Guarding against perf regression for acquire_token_for_client()
rayluo a3e6017
Add benchmark action and publish it to gh-pages
rayluo 8d122f1
Merge pull request #580 from AzureAD/benchmark
rayluo dd9e090
Automatically check cryptography version
rayluo ae7cf14
Merge branch 'cryptography-ceiling' into dev
rayluo 42516f5
Placeholders in some error will use curly brackets
rayluo e41b8f1
Merge branch 'improve-error-message' into dev
rayluo 4850c81
Provide guidance on how to DIY the pkcs12-to-pem
rayluo 8624982
Merge branch 'docs-staging' into dev
rayluo d788a88
Experimental: More precise regression detection
rayluo de3b757
Merge branch 'perf-baseline' into dev
rayluo 0dd52f0
Refactor SshCert e2e test to use lab user
rayluo 97152d8
E2E test for Azure CLI's connectedk8s AT POP
rayluo 91f0b14
Add POP test function
rayluo dbd1508
Merge branch 'at-pop-with-external-key' into dev
rayluo 4f146f7
Calls out that each commit triggers a TestPyPI release
rayluo 62050de
Bumping version number
rayluo 9a618ab
Merge branch 'release-1.24.0' into dev
rayluo 841bb0b
CLI tester will be shipped with msal library
rayluo 934414b
Merge branch 'tester' into dev
rayluo a4b76ab
Fix regression on input order for interactive test
rayluo 1382469
Merge branch 'tester' into dev
rayluo affe78b
Merge remote-tracking branch 'oauth2cli/dev' into wip
rayluo 0d9e07f
Bumping version number
rayluo 1434c03
Merge branch 'release-1.24.1' into dev
rayluo 82319cf
Mark package as supporting Python 3.12
tonybaloney a8e3811
Merge pull request #604 from tonybaloney/flag_312
rayluo e65781a
Remove x-client-cpu
rayluo 593bcad
Merge pull request #605 from AzureAD/remove-x-client-cpu
rayluo a19f3e4
Resolve warnings node12 deprecation warnings
rayluo 432ccc1
Merge branch 'upgrade-github-actions' into dev
rayluo 395742f
Switch to ReadTheDocs configuration file v2
rayluo f4dc877
Merge branch 'docs-staging' into dev
rayluo aac3e26
Merge remote-tracking branch 'oauth2cli/dev' into docker-support
rayluo 90d61ab
Hard code port for testing purpose
rayluo 103a096
Merge branch 'docker-support' into dev
rayluo c113866
Fix a typo in api reference doc
rayluo 7e2381d
Explain how to use global token cache and app
rayluo a482d93
Merge branch 'demo-global-token-cache' into dev
rayluo cf4b0da
Expose token_source for observability
rayluo e21a83a
Merge branch 'token-source' into dev
rayluo 0b1a2fa
Deprecate allow_broker, use enable_broker_on_windows
rayluo 9be25c1
add triage labels to bug report (#612)
jennyf19 a11469f
Merge branch 'broker-new-param' into dev
rayluo 29abc4e
Only invoke broker for selected flows (grants)
rayluo 5a6edde
Merge pull request #569 from AzureAD/device-flow-and-msal-runtime
rayluo 943c75e
MSAL Python 1.25
rayluo 1d9a426
Add more docs
rayluo 87417a5
Merge pull request #621 from AzureAD/release-1.25.0
rayluo 631472b
Remove newlines from description.
micwoj92 e50d86f
Merge pull request #626 from micwoj92/patch-1
rayluo 63911a7
#629 - skip region discory when region=None (#630)
bgavrilMS fb182b7
AT POP for Public Client based on broker (#511)
rayluo b546cfe
Prepare 1.26 release
rayluo 8e81f76
Merge branch 'release-1.26.0' into dev
rayluo afc6b1a
Integrate with PyMsalRuntime on mac
b26858b
How to smoke test MSAL Python
rayluo 5a16d55
Preparing MSAL Python 1.27.0 beta release(s)
rayluo 6788901
Update issue templates (#642)
bgavrilMS ae5b467
Merge branch 'oauth2cli/dev' to close #546
rayluo 827e934
AT POP with SHR is tested with Graph end-to-end
rayluo 50aad3c
Sort scopes before writing to token cache
rayluo a044379
O(1) happy path for access token hits
rayluo 5688654
Might as well refactor a _get_app_metadata()
rayluo d1bf3fe
Merge pull request #644 from AzureAD/order-scopes
rayluo 817fe8f
Prevent crash on token_cache.find(..., query=None)
rayluo 7415c4d
Merge branch 'order-scopes' into dev
rayluo b8f9fe3
Attempts account removal from broker first
rayluo f9616b1
Adding docs for PopAuthScheme
rayluo 0017b0f
Tested with latest cryptography 42.x
rayluo d3dd97e
Mention instance_discovery instead of validate_authority in an error …
rayluo 3848c58
Merge remote-tracking branch 'oauth2cli/dev' into oauth2
rayluo 6571e62
Tolerate ID token time errors
rayluo d5d88ce
Merge pull request #657 from AzureAD/id-token-adjustment
rayluo 90a3e07
Provide examples for B2C and CIAM
rayluo 0072f9d
Give a hint on where the client_id came from
rayluo bf2f1fe
Merge pull request #661 from AzureAD/document-client-id
rayluo 1b77385
Allow github action to write perf result into repo
rayluo b718929
Adding attributes that were not auto documented
rayluo 67baae5
Implement remove_tokens_for_client()
rayluo 4f99373
Remove premature int(...)
rayluo 656cc95
MSAL's fallback-from-broker behavior remains a FAQ
rayluo 63f85e0
Change back to use print(result) in error path
rayluo d07e5d2
CCA can be tested by: python -m msal
rayluo 6aa91cf
Pick up latest PyMsalRuntime 0.14.x
rayluo 835ec07
Don't use bare except when importing (#667)
Singletoned 1f064a9
Releasing 1.27
rayluo 18db82d
update the default broker redirect uri
iulico-1 757b2ce
Merge pull request #673 from AzureAD/iulico/update-broker-default-red…
rayluo af5cdd5
Rebrand from AAD to Microsoft Entra (#655)
SHERMANOUKO 341ca90
Implements a new optional oidc_authority parameter
rayluo cb47ad6
A semi-auto script to test Azure CLI with broker
rayluo b6ea305
MSAL Python 1.28.0
rayluo 1bc2a47
Convert most built-in samples from json to dotenv
rayluo caf8480
client_credential has its link in RTD now. Finally.
rayluo cde68a4
Add CODEOWNERS file (#689)
pmaytak bef12b7
Should have used the constant instead of a raw str
rayluo 0cec70f
Merges remote-tracking branch and fixes #516
rayluo 79f2381
Upgrade action's versions and also enable cache
rayluo c5cc6e0
Suggests to use XDG_RUNTIME_DIR for token cache
rayluo 3c6628f
Support reading CCA cert from a pfx file. Tested.
rayluo 00107fb
Lab API changed since May 14, 2024
rayluo c0c385c
No longer need to fake device code flow endpoint
rayluo cf68d13
Promote TokenCache._find() to TokenCache.search()
rayluo d2d2373
Update the ENV VAR hints in the top of test_e2e.py
rayluo 6dea928
Pick up PyMsalRuntime 0.16.x
rayluo deb9fe1
Adapting to a lab change introduced today
rayluo 255bf80
Merge branch 'release-1.28.1' into dev
rayluo b31360d
Read credential from pfx
rayluo 6ebaa80
Enable public client ROPC via broker. On Windows, ROPC will call WAM; on
fengga c7ec8a8
Remove a fallback which ends up breaking tests now
rayluo 27e1bf7
Improve error message to fix 710
rayluo 964972e
Merge branch 'dev' into enable-ROPC-via-broker
fengga a2c189e
Merge pull request #712 from AzureAD/enable-ROPC-via-broker
fengga a0bf53e
Managed Identity implementation
rayluo 750d8ff
Refactor throttling and add it to Managed Identity
rayluo ba00804
Use a short throttling threshold for MI (and CCA)
rayluo c7c9dc4
Managed Identity for Machine Learning
rayluo 44434c8
Implementation based on feature requirement
rayluo 565f175
get_managed_identity_source() for Azure Identity
rayluo 828b4b8
Merge branch 'mi' into dev
rayluo 34fa99f
MSAL Python 1.29.0
rayluo c0bd219
The old test app was somehow disabled
rayluo a86a6c8
Update ROPC broker related tests (#714)
fengga 8267056
Add the missing token query check
rayluo 2663232
Merge branch 'dev' into bugfix-token-cache-search
rayluo 539c913
Support SNI via PFX
rayluo b3659d7
Re-optimize the O(1) code path
rayluo 6f2308c
Merge branch 'dev' into perf-retune
rayluo 77c72fb
Merge remote-tracking branch 'oauth2cli/dev' into sha256-pss
rayluo af3b887
Using SHA256 and PSS padding
rayluo bd0c820
Expose refresh_on (if any) to fresh or cached response
rayluo 3a4ece6
MSAL 1.30.0
rayluo 8159461
Bumping cryptography upper bound
rayluo 1a6398a
Delay getfqdn() from import time to runtime. Fix #715
rayluo f642acd
Refine inline comment
rayluo 33b1b26
Mentions MSAL-Extensions
rayluo 14ef644
Change arc mi's detection algorithm
rayluo fab54d4
CAE for MIv1
rayluo 68003af
Merge branch 'dev' into mac
rayluo 49ea5f8
Anticipate a PyMsalRuntime 0.17.0 release soon
rayluo e7e7669
Add an unofficial doc for mac broker integration (#732)
fengga 3995ad0
Switch to the future-proof ciamcud tenant
rayluo c64e50f
Refactor to reuse CIAM test cases for CIAM CUD
rayluo 3630410
Fix typos in doc
rayluo 7f6d5a6
parent_window_handle is also needed on Mac
rayluo b94d7e6
Explicitly test current broker fallback behaviors
rayluo 06c5215
ADFS and B2C shall not invoke broker
rayluo aa788db
Merge branch 'broker-refactor' into dev
rayluo 70c8ff4
Error out on invalid ManagedIdentity dict
rayluo a246e7a
Resource id adjustments
rayluo 5aac0c4
Release MSAL Python 1.31.0
rayluo a421b70
Test PyMsalRuntime ImportError and RuntimeError
rayluo 8a136b2
Expose and document AutoRefresher, deprecate client_assertion as a st…
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,32 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "[Bug] " | ||
labels: needs attention, untriaged | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to our [off-the-shelf samples](https://github.com/AzureAD/microsoft-authentication-library-for-python/tree/dev/sample) and pick one that is closest to your usage scenario. You should not need to modify the sample. | ||
2. Follow the description of the sample, typically at the beginning of it, to prepare a `config.json` containing your test configurations | ||
3. Run such sample, typically by `python sample.py config.json` | ||
4. See the error | ||
5. In this bug report, tell us the sample you choose, paste the content of the config.json with your test setup (which you can choose to skip your credentials, and/or mail it to our developer's email). | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**What you see instead** | ||
Paste the sample output, or add screenshots to help explain your problem. | ||
|
||
**The MSAL Python version you are using** | ||
Paste the output of this | ||
`python -c "import msal; print(msal.__version__)"` | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,40 @@ | ||
name: Feature request | ||
description: Suggest a new feature for MSAL Python. | ||
labels: ["feature request", "untriaged", "needs attention"] | ||
title : '[Feature Request] ' | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
## Before submitting your feature request | ||
Please make sure that your question or issue is not already covered in [MSAL documentation](https://learn.microsoft.com/entra/msal/python/) or [samples](https://learn.microsoft.com/azure/active-directory/develop/sample-v2-code?tabs=apptype). | ||
|
||
- type: markdown | ||
attributes: | ||
value: | | ||
## Feature request for MSAL Python | ||
|
||
- type: dropdown | ||
attributes: | ||
label: MSAL client type | ||
description: Are you using Public Client (desktop apps, CLI apps) or Confidential Client (web apps, web APIs, service-to-service, managed identity)? | ||
multiple: true | ||
options: | ||
- "Public" | ||
- "Confidential" | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Problem Statement | ||
description: "Describe the problem or context for this feature request." | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Proposed solution | ||
description: "Describe the solution you'd like." | ||
validations: | ||
required: false |
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,133 @@ | ||
# 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 ] | ||
|
||
# This guards against unknown PR until a community member vet it and label it. | ||
types: [ labeled ] | ||
|
||
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_APP_CLIENT_CERT_BASE64: ${{ secrets.LAB_APP_CLIENT_CERT_BASE64 }} | ||
LAB_APP_CLIENT_CERT_PFX_PATH: lab_cert.pfx | ||
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 # It switched to 22.04 shortly after 2022-Nov-8 | ||
strategy: | ||
matrix: | ||
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
# It automatically takes care of pip cache, according to | ||
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#about-caching-workflow-dependencies | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
|
||
- 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: Populate lab cert.pfx | ||
# https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#storing-base64-binary-blobs-as-secrets | ||
run: echo $LAB_APP_CLIENT_CERT_BASE64 | base64 -d > $LAB_APP_CLIENT_CERT_PFX_PATH | ||
- name: Test with pytest | ||
run: pytest --benchmark-skip | ||
- 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 | ||
|
||
cb: | ||
# Benchmark only after the correctness has been tested by CI, | ||
# and then run benchmark only once (sampling with only one Python version). | ||
needs: ci | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
cache: 'pip' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Setup an updatable cache for Performance Baselines | ||
uses: actions/cache@v4 | ||
with: | ||
path: .perf.baseline | ||
key: ${{ runner.os }}-performance-${{ hashFiles('tests/test_benchmark.py') }} | ||
restore-keys: ${{ runner.os }}-performance- | ||
- name: Run benchmark | ||
run: pytest --benchmark-only --benchmark-json benchmark.json --log-cli-level INFO tests/test_benchmark.py | ||
- name: Render benchmark result | ||
uses: benchmark-action/github-action-benchmark@v1 | ||
with: | ||
tool: 'pytest' | ||
output-file-path: benchmark.json | ||
fail-on-alert: true | ||
- name: Publish Gibhub Pages | ||
run: git push origin gh-pages | ||
|
||
cd: | ||
needs: ci | ||
# Note: github.event.pull_request.draft == false WON'T WORK in "if" statement, | ||
# because the triggered event is a push, not a pull_request. | ||
# This means each commit will trigger a release on TestPyPI. | ||
# Those releases will only succeed when each push has a new version number: a1, a2, a3, etc. | ||
if: | | ||
github.event_name == 'push' && | ||
( | ||
startsWith(github.ref, 'refs/tags') || | ||
startsWith(github.ref, 'refs/heads/release-') | ||
) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
cache: 'pip' | ||
- name: Build a package for release | ||
run: | | ||
python -m pip install build --user | ||
python -m build --sdist --wheel --outdir dist/ . | ||
- name: | | ||
Publish to TestPyPI when pushing to release-* branch. | ||
You better test with a1, a2, b1, b2 releases first. | ||
uses: pypa/[email protected] | ||
if: startsWith(github.ref, 'refs/heads/release-') | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish to PyPI when tagged | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# We recommend specifying your dependencies to enable reproducible builds: | ||
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- requirements: docs/requirements.txt |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
* @AzureAD/id4s-msal-team |
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,24 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) Microsoft Corporation. | ||
All rights reserved. | ||
|
||
This code is licensed under the MIT License. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files(the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions : | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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.
There is a rebase problem with this PR, as it includes 867 commits?