mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-30 02:07:18 +00:00
Compare commits
No commits in common. "5bbb9d269b0199ac20bbe2821c0ea61517821854" and "9e4e3b701b20f960e819cdf21f8b765ab6ca64cc" have entirely different histories.
5bbb9d269b
...
9e4e3b701b
File diff suppressed because it is too large
Load Diff
Before Width: | Height: | Size: 673 KiB After Width: | Height: | Size: 720 KiB |
@ -1,4 +1,4 @@
|
|||||||
.TH AHRIMAN "1" "2023\-01\-25" "ahriman" "Generated Python Manual"
|
.TH AHRIMAN "1" "2023\-01\-16" "ahriman" "Generated Python Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
ahriman
|
ahriman
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Evgeniy Alekseev
|
# Maintainer: Evgeniy Alekseev
|
||||||
|
|
||||||
pkgname='ahriman'
|
pkgname='ahriman'
|
||||||
pkgver=2.6.1
|
pkgver=2.6.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="ArcH linux ReposItory MANager"
|
pkgdesc="ArcH linux ReposItory MANager"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -18,3 +18,6 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
from ahriman.core.auth.auth import Auth
|
from ahriman.core.auth.auth import Auth
|
||||||
|
|
||||||
|
from ahriman.core.auth.mapping import Mapping
|
||||||
|
from ahriman.core.auth.oauth import OAuth
|
||||||
|
@ -78,10 +78,10 @@ class Auth(LazyLogging):
|
|||||||
"""
|
"""
|
||||||
provider = AuthSettings.from_option(configuration.get("auth", "target", fallback="disabled"))
|
provider = AuthSettings.from_option(configuration.get("auth", "target", fallback="disabled"))
|
||||||
if provider == AuthSettings.Configuration:
|
if provider == AuthSettings.Configuration:
|
||||||
from ahriman.core.auth.mapping import Mapping
|
from ahriman.core.auth import Mapping
|
||||||
return Mapping(configuration, database)
|
return Mapping(configuration, database)
|
||||||
if provider == AuthSettings.OAuth:
|
if provider == AuthSettings.OAuth:
|
||||||
from ahriman.core.auth.oauth import OAuth
|
from ahriman.core.auth import OAuth
|
||||||
return OAuth(configuration, database)
|
return OAuth(configuration, database)
|
||||||
return cls(configuration)
|
return cls(configuration)
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ import aioauth_client
|
|||||||
|
|
||||||
from typing import Optional, Type
|
from typing import Optional, Type
|
||||||
|
|
||||||
from ahriman.core.auth.mapping import Mapping
|
from ahriman.core.auth import Mapping
|
||||||
from ahriman.core.configuration import Configuration
|
from ahriman.core.configuration import Configuration
|
||||||
from ahriman.core.database import SQLite
|
from ahriman.core.database import SQLite
|
||||||
from ahriman.core.exceptions import OptionError
|
from ahriman.core.exceptions import OptionError
|
||||||
|
@ -17,4 +17,4 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
__version__ = "2.6.1"
|
__version__ = "2.6.0"
|
||||||
|
@ -53,7 +53,7 @@ class LoginView(BaseView):
|
|||||||
Examples:
|
Examples:
|
||||||
This request must not be used directly.
|
This request must not be used directly.
|
||||||
"""
|
"""
|
||||||
from ahriman.core.auth.oauth import OAuth
|
from ahriman.core.auth import OAuth
|
||||||
|
|
||||||
oauth_provider = self.validator
|
oauth_provider = self.validator
|
||||||
if not isinstance(oauth_provider, OAuth): # there is actually property, but mypy does not like it anyway
|
if not isinstance(oauth_provider, OAuth): # there is actually property, but mypy does not like it anyway
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from ahriman.core.auth.mapping import Mapping
|
from ahriman.core.auth import Mapping, OAuth
|
||||||
from ahriman.core.auth.oauth import OAuth
|
|
||||||
from ahriman.core.configuration import Configuration
|
from ahriman.core.configuration import Configuration
|
||||||
from ahriman.core.database import SQLite
|
from ahriman.core.database import SQLite
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
from ahriman.core.auth import Auth
|
from ahriman.core.auth import Auth, Mapping, OAuth
|
||||||
from ahriman.core.auth.mapping import Mapping
|
|
||||||
from ahriman.core.auth.oauth import OAuth
|
|
||||||
from ahriman.core.configuration import Configuration
|
from ahriman.core.configuration import Configuration
|
||||||
from ahriman.core.database import SQLite
|
from ahriman.core.database import SQLite
|
||||||
from ahriman.models.user import User
|
from ahriman.models.user import User
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
from pytest_mock import MockerFixture
|
from pytest_mock import MockerFixture
|
||||||
|
|
||||||
from ahriman.core.auth.mapping import Mapping
|
from ahriman.core.auth import Mapping
|
||||||
from ahriman.models.user import User
|
from ahriman.models.user import User
|
||||||
from ahriman.models.user_access import UserAccess
|
from ahriman.models.user_access import UserAccess
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import pytest
|
|||||||
|
|
||||||
from pytest_mock import MockerFixture
|
from pytest_mock import MockerFixture
|
||||||
|
|
||||||
from ahriman.core.auth.oauth import OAuth
|
from ahriman.core.auth import OAuth
|
||||||
from ahriman.core.exceptions import OptionError
|
from ahriman.core.exceptions import OptionError
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ from unittest.mock import MagicMock
|
|||||||
|
|
||||||
import ahriman.core.auth.helpers
|
import ahriman.core.auth.helpers
|
||||||
|
|
||||||
from ahriman.core.auth.oauth import OAuth
|
from ahriman.core.auth import OAuth
|
||||||
from ahriman.core.configuration import Configuration
|
from ahriman.core.configuration import Configuration
|
||||||
from ahriman.core.database import SQLite
|
from ahriman.core.database import SQLite
|
||||||
from ahriman.core.repository import Repository
|
from ahriman.core.repository import Repository
|
||||||
|
Loading…
Reference in New Issue
Block a user