Skip to content

Commit b275dee

Browse files
authored
Add support for Python 3.11 (#155)
Upgrade pyoidc to1.6.0.
1 parent b2fddcb commit b275dee

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.7", "3.8", "3.9", "3.10"]
15+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1616

1717
steps:
1818
- uses: actions/checkout@v2

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
author_email='[email protected]',
1515
description='Flask extension for OpenID Connect authentication.',
1616
install_requires=[
17-
'oic==1.4.0',
17+
'oic==1.6.0',
1818
'Flask',
1919
'requests',
2020
'importlib_resources'

tests/test_pyoidc_facade.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33

44
import pytest
55
import responses
6-
from flask_pyoidc.provider_configuration import ProviderConfiguration, ClientMetadata, ProviderMetadata, \
7-
ClientRegistrationInfo
8-
from flask_pyoidc.pyoidc_facade import PyoidcFacade
9-
from oic.oic import (AccessTokenResponse, AuthorizationErrorResponse, AuthorizationResponse, Grant, OpenIDSchema,
6+
from oic.oic import (AccessTokenResponse, AuthorizationErrorResponse,
7+
AuthorizationResponse, Grant, OpenIDSchema,
108
TokenErrorResponse)
119

10+
from flask_pyoidc.provider_configuration import (ClientMetadata,
11+
ClientRegistrationInfo,
12+
ProviderConfiguration,
13+
ProviderMetadata)
14+
from flask_pyoidc.pyoidc_facade import PyoidcFacade
15+
1216
from .util import signed_id_token
1317

1418
REDIRECT_URI = 'https://rp.example.com/redirect_uri'

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = clean,py36,py37,py38,py39,py310
2+
envlist = clean,py36,py37,py38,py39,py310,py311
33

44
[testenv]
55
commands = pytest --cov={envsitepackagesdir}/flask_pyoidc --cov-append --cov-report=term-missing tests/ example/
@@ -20,3 +20,4 @@ python =
2020
3.8: py38
2121
3.9: py39
2222
3.10: py310
23+
3.11: py311

0 commit comments

Comments
 (0)