Skip to content

Commit

Permalink
Update flask-oidc only
Browse files Browse the repository at this point in the history
  • Loading branch information
mvalik committed Nov 29, 2023
1 parent 29a679f commit 2ea359e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 72 deletions.
94 changes: 24 additions & 70 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ include = [
python = ">=3.8,<3.13"

flask = "^2.2.5"
flask-oidc = "^1.4.0"
flask-oidc = "^2.1.1"
Flask-SQLAlchemy = "^3.1.1"
Flask-Cors = "^4.0.0"
Flask-Migrate = "^4.0.5"
Expand Down
1 change: 1 addition & 0 deletions tests/client_secrets.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"web": {
"redirect_uris": ["http://localhost:5005/"],
"issuer": "https://iddev.fedorainfracloud.org/openidc/",
"token_uri": "https://iddev.fedorainfracloud.org/openidc/Token",
"auth_uri": "https://iddev.fedorainfracloud.org/openidc/Authorization",
"client_id": "randomid",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

@pytest.fixture
def oidc_token(app):
with mock.patch.object(flask_oidc.OpenIDConnect, '_get_token_info') as mocked:
with mock.patch.object(flask_oidc.IntrospectTokenValidator, 'introspect_token') as mocked:
mocked.return_value = {
'active': True,
'username': 'testuser',
Expand Down

0 comments on commit 2ea359e

Please sign in to comment.