OAuth2 Token refresh implemented #528
Annotations
4 errors
|
Run tests:
invenio_oauthclient/models.py#L1
isort-check
"""Models for storing access tokens and links between users and remote apps."""
-from datetime import datetime, timezone, timedelta
+from datetime import datetime, timedelta, timezone
from flask import current_app
|
Run tests:
invenio_oauthclient/alembic/7def990b852e_add_expires_at_and_refresh_token_to_.py#L1
Black format check
--- /home/runner/work/invenio-oauthclient/invenio-oauthclient/invenio_oauthclient/alembic/7def990b852e_add_expires_at_and_refresh_token_to_.py 2024-05-15 06:45:02.856904 +0000
+++ /home/runner/work/invenio-oauthclient/invenio-oauthclient/invenio_oauthclient/alembic/7def990b852e_add_expires_at_and_refresh_token_to_.py 2024-05-15 06:46:52.774317 +0000
@@ -23,11 +23,12 @@
op.add_column(
"oauthclient_remotetoken",
sa.Column("refresh_token", sqlalchemy_utils.EncryptedType(), nullable=True),
)
op.add_column(
- "oauthclient_remotetoken", sa.Column("expires_at", sa.DateTime(timezone=True), nullable=True)
+ "oauthclient_remotetoken",
+ sa.Column("expires_at", sa.DateTime(timezone=True), nullable=True),
)
def downgrade():
"""Downgrade database."""
|
Run tests
The operation was canceled.
|
Loading