Skip to content
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

1.5 #41

Merged
merged 52 commits into from
Feb 14, 2024
Merged

1.5 #41

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
5d16764
cosmetics
guillaume-pujol Aug 28, 2023
3a721b0
rebase on main
guillaume-pujol Aug 29, 2023
3c51343
third round of fixes to please ruff
guillaume-pujol Sep 5, 2023
1fc51fa
update badges
guillaume-pujol Sep 6, 2023
b3f8b5d
update ruff
guillaume-pujol Sep 6, 2023
f88c200
do not include an empty scope param in requests
guillaume-pujol Sep 6, 2023
993bbd9
remove use of furl in client authentication handlers
guillaume-pujol Sep 6, 2023
fd2b8b4
refactor `AuthorizationRequest` and `BearerToken` into `attrs.frozen`…
guillaume-pujol Sep 15, 2023
85305d5
use ruff-linter instead of black
guillaume-pujol Dec 5, 2023
80f9121
add `furl` to mypy pre-commit, fix related type ignore comments
guillaume-pujol Dec 29, 2023
e807b89
version 1.5.0 is enough for now
guillaume-pujol Dec 29, 2023
d7a0d37
update deps
guillaume-pujol Dec 29, 2023
9921650
use dateime.timezone.utc instead of datetime.UTC for compatibility wi…
guillaume-pujol Dec 29, 2023
c3f0241
fixes for mkdocs
guillaume-pujol Dec 29, 2023
2cb7619
more fixes for mkdocs
guillaume-pujol Dec 29, 2023
20cc150
more README update
guillp Dec 29, 2023
983b82e
update ruff
guillaume-pujol Feb 2, 2024
ccef21a
update jwskate to 0.11.1 and binapy to 0.8
guillaume-pujol Feb 2, 2024
67238e7
use StrEnum as base tyoe for TokenType and AccessTokenType enums
guillaume-pujol Feb 2, 2024
c512ff7
turn OAuth2Client into a frozen class
guillaume-pujol Feb 2, 2024
325d261
expose EncryptionAlgs, KeyManagementAlgs, SignatureAlgs from jwskate
guillaume-pujol Feb 2, 2024
f7ddbd4
turn ApiClient into a frozen class. base_url is now mandatory.
guillaume-pujol Feb 3, 2024
9803460
refactor Auth0 and Ping helpers
guillaume-pujol Feb 3, 2024
4ce5c09
ruff reordering imports
guillaume-pujol Feb 3, 2024
f9f3c5e
StrEnum is not yet available in Python<3.11
guillaume-pujol Feb 3, 2024
dea6c0b
fix ApiClient tests
guillaume-pujol Feb 3, 2024
ba9c1cb
fix doc references
guillaume-pujol Feb 3, 2024
2d4ca50
remove flak8 and isort config (replaced by ruff)
guillaume-pujol Feb 3, 2024
5931a33
RequestParameterAuthorizationRequest and RequestUriParameterAuthoriza…
guillaume-pujol Feb 5, 2024
7a7e490
BearerToken.validate_id_token() returns a new BearerToken with instea…
guillaume-pujol Feb 5, 2024
6223501
use Ellipsis as sentinel object instead of a dedicated GENERATE object
guillaume-pujol Feb 5, 2024
ae0e04f
more unit tests
guillaume-pujol Feb 5, 2024
61d85e3
tests and fixes for Auth0.tenant()
guillaume-pujol Feb 6, 2024
1359bb1
tests and fixes for AuthorizationRequest and AuthorizationResponse
guillaume-pujol Feb 6, 2024
ccc588b
more test coverage
guillaume-pujol Feb 6, 2024
f537787
update ruff and deps
guillaume-pujol Feb 6, 2024
9f3ca04
test and fixes for urls as iterable of non string-able objects
guillaume-pujol Feb 6, 2024
45704d9
removeprefix is not available in Python<3.9
guillaume-pujol Feb 6, 2024
5288f47
more test coverage
guillaume-pujol Feb 6, 2024
e600883
update github actions for Node.js 20
guillaume-pujol Feb 6, 2024
c35c212
Merge remote-tracking branch 'origin/1.5' into 1.5
guillp Feb 12, 2024
fb0e361
add `__getattr__` for `AuthorizationRequest` and `RequestUriParameter…
guillp Feb 12, 2024
ae5b179
refactor hash_method for ID Token validation (at_hash_, c_hash, etc.)
guillp Feb 12, 2024
a42b132
more authorization code tests
guillp Feb 12, 2024
e9d37b8
update deps
guillp Feb 12, 2024
6f3fa9c
fix for jwskate 0.11
guillp Feb 12, 2024
c93080c
more test coverage
guillp Feb 12, 2024
d764a5a
run ruff format in tests and docstrings, remove blacken-docs
guillp Feb 12, 2024
969839e
more coverage
guillp Feb 12, 2024
e55e776
allow custom parameters in all types of Authorization Requests
guillp Feb 14, 2024
912cabb
more test coverage
guillp Feb 14, 2024
d0c24aa
`ApiClient` now requires setting a root URI and never sends requests …
guillp Feb 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .flake8

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-versions }}

Expand All @@ -54,8 +54,8 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Generate Changelog
if: ${{ false }}
Expand All @@ -42,7 +42,7 @@ jobs:
addSections: '{"documentation":{"prefix":"**Documentation:**","labels":["documentation"]}}'
output: CHANGELOG.md

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-versions }}

Expand Down
9 changes: 0 additions & 9 deletions .isort.cfg

This file was deleted.

91 changes: 16 additions & 75 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,94 +1,34 @@
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: forbid-crlf
- id: remove-crlf
- id: forbid-tabs
- id: remove-tabs
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: debug-statements
- id: mixed-line-ending
- id: name-tests-test
args: [--pytest-test-first]
- id: trailing-whitespace
- id: end-of-file-fixer
args: [--markdown-linebreak-ext=md]
- id: check-merge-conflict
- id: check-yaml
args: [--unsafe]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-no-eval
- id: python-use-type-annotations
- id: text-unicode-replacement-char
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.3.2
- id: no-commit-to-branch
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-safety-dependencies-check
files: pyproject.toml
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
args:
- --number
additional_dependencies:
- mdformat-black
- id: python-use-type-annotations
- id: text-unicode-replacement-char
- repo: https://github.com/myint/docformatter
rev: v1.7.5
hooks:
- id: docformatter
additional_dependencies:
- tomli
args:
- --in-place
- --wrap-summaries=100
- --wrap-descriptions=100
- repo: https://github.com/hadialqattan/pycln
rev: v2.4.0
hooks:
- id: pycln
args: [--config=pyproject.toml]
- repo: https://github.com/frostming/fix-future-annotations
rev: 0.5.0
hooks:
- id: fix-future-annotations
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.14.0]
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
args:
- --add-ignore=D107
additional_dependencies:
- toml
exclude: 'tests/'
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
rev: v1.8.0
hooks:
- id: mypy
args:
Expand All @@ -99,8 +39,9 @@ repos:
- --show-column-numbers
additional_dependencies:
- pytest-mypy
- jwskate>=0.9.0
- jwskate>=0.11.1
- types-requests
- requests_mock
- flask
- freezegun
- furl
Loading
Loading