Skip to content

Commit 4039216

Browse files
authored
Rename authlib to osauthlib (#3179)
1 parent 12f822e commit 4039216

11 files changed

Lines changed: 13 additions & 13 deletions

File tree

dev/dc.local.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ services:
99
CONTEXT: "dev"
1010
volumes:
1111
- ../../openslides-datastore-service/:/datastore-service
12-
- ../../openslides-auth-service/auth/libraries/pip-auth/:/authlib
12+
- ../../openslides-auth-service/auth/libraries/pip-auth/:/osauthlib
1313
environment:
14-
- PYTHONPATH=/app:/datastore-service:/authlib
15-
- MYPYPATH=/app:/datastore-service:/authlib
14+
- PYTHONPATH=/app:/datastore-service:/osauthlib
15+
- MYPYPATH=/app:/datastore-service:/osauthlib
1616
datastore-writer:
1717
build:
1818
context: ../../openslides-datastore-service/

openslides_backend/action/actions/user/forget_password_confirm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from typing import Any
33
from urllib.parse import unquote
44

5-
from authlib.exceptions import InvalidCredentialsException
5+
from osauthlib.exceptions import InvalidCredentialsException
66

77
from openslides_backend.action.util.typing import ActionData
88

openslides_backend/http/views/base_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from re import Pattern
55
from typing import Any, Optional
66

7-
from authlib import AUTHENTICATION_HEADER, COOKIE_NAME
7+
from osauthlib import AUTHENTICATION_HEADER, COOKIE_NAME
88
from werkzeug.exceptions import BadRequest as WerkzeugBadRequest
99

1010
from ...shared.exceptions import View400Exception

openslides_backend/presenter/presenter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from collections.abc import Callable
22

33
import fastjsonschema
4-
from authlib import AUTHENTICATION_HEADER, COOKIE_NAME
54
from fastjsonschema import JsonSchemaException
5+
from osauthlib import AUTHENTICATION_HEADER, COOKIE_NAME
66

77
from ..http.request import Request
88
from ..shared.exceptions import PresenterException

openslides_backend/services/auth/adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from urllib import parse
22

3-
from authlib import (
3+
from osauthlib import (
44
ANONYMOUS_USER,
55
AUTHORIZATION_HEADER,
66
AuthenticateException,

openslides_backend/services/auth/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any, Protocol
22

3-
from authlib import AUTHENTICATION_HEADER, COOKIE_NAME # noqa
3+
from osauthlib import AUTHENTICATION_HEADER, COOKIE_NAME # noqa
44

55
from ..shared.authenticated_service import AuthenticatedServiceInterface
66

openslides_backend/services/shared/authenticated_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from abc import abstractmethod
22
from typing import Protocol
33

4-
from authlib import AUTHENTICATION_HEADER, COOKIE_NAME
4+
from osauthlib import AUTHENTICATION_HEADER, COOKIE_NAME
55

66

77
class AuthenticatedServiceInterface(Protocol):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22
export DATASTORE_COMMIT_HASH=2a9b7f015955bcfe4637d9c2c0be428ac3e99a1b
3-
export AUTH_COMMIT_HASH=934aba47da96c86d12c93c11f9cb3b531865bc10
3+
export AUTH_COMMIT_HASH=b1bb367491515460df46ec9fac7528b6f383a368
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
git+https://github.com/OpenSlides/openslides-datastore-service.git@${DATASTORE_COMMIT_HASH}
2-
git+https://github.com/OpenSlides/openslides-auth-service.git@${AUTH_COMMIT_HASH}#egg=authlib&subdirectory=auth/libraries/pip-auth
2+
git+https://github.com/OpenSlides/openslides-auth-service.git@${AUTH_COMMIT_HASH}#egg=osauthlib&subdirectory=auth/libraries/pip-auth

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ ignore_missing_imports = true
8181
[mypy-pytest]
8282
ignore_missing_imports = true
8383

84-
[mypy-authlib.*]
84+
[mypy-osauthlib.*]
8585
ignore_missing_imports = true
8686

8787
[mypy-aiosmtpd]

0 commit comments

Comments
 (0)