pygitweb 0.2.2__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pygitweb-0.2.2/pygitweb.egg-info → pygitweb-0.2.3}/PKG-INFO +1 -1
- {pygitweb-0.2.2 → pygitweb-0.2.3}/__meta__.py +1 -1
- {pygitweb-0.2.2 → pygitweb-0.2.3}/auth.py +1 -2
- {pygitweb-0.2.2 → pygitweb-0.2.3}/auth_oauth.py +2 -2
- {pygitweb-0.2.2 → pygitweb-0.2.3}/main.py +2 -2
- {pygitweb-0.2.2 → pygitweb-0.2.3/pygitweb.egg-info}/PKG-INFO +1 -1
- {pygitweb-0.2.2 → pygitweb-0.2.3}/pyproject.toml +1 -1
- {pygitweb-0.2.2 → pygitweb-0.2.3}/LICENSE +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/README.md +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/__init__.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/actions.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/addproject_permissions_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/api/__init__.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/api/action.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/api/plugins/__init__.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/api/plugins/project_zip.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/api/project.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/api/subpage.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/auth.schema.json +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/auth_config.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/auth_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/board_refs.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/board_refs_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/boards_permissions_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/change_queue.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/change_queue_routes_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/change_queue_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/comments_permissions_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/config.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/conftest.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/dependencies.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/formatting.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/formatting_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/git_helpers.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/git_helpers_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/gravatar.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/gravatar_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/hooks_install.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/hooks_install_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/hooks_permissions_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/merge_requests.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/merge_requests_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/mr_permissions_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/password_hash.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/password_hash_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/permissions.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/permissions_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/plugin_loader.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/project_list_routes_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/projects.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/projects_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/pygitweb.egg-info/SOURCES.txt +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/pygitweb.egg-info/dependency_links.txt +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/pygitweb.egg-info/requires.txt +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/pygitweb.egg-info/top_level.txt +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/sessions.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/settings.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/settings.schema.json +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/settings_config.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/settings_config_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/settings_permissions_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/setup.cfg +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/shutdown.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/smart_http.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/smart_http_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/blob-view.js +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/board-refs.js +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/board.js +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/hook-install.js +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/icons/cloud-down.svg +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/icons/cloud-exclamation.svg +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/icons/cloud-filled.svg +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/icons/cloud-storm.svg +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/icons/cloud-up.svg +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/icons/cloud.svg +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/logo.svg +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/main.css +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/navbar-auth.js +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/readme-render.js +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/search-page.js +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/summary-ref-switcher.js +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/static/themes/solarized.css +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/tasks.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/tasks_permissions_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/tasks_routes_test.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/addproject.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/blobdiff.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/board.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/board_card.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/commitdiff.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/hooks_summary_cell.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/login.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/merge_request_summary_cell.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/merge_request_tag.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/pagination.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/preamble.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/project_settings.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/pygit2_settings.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/pygitweb_settings.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/search.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/settings_form_field.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/shutdown_ack.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/table.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates/user_profile.html +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/templates_env.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/timeline_cache.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/validation.py +0 -0
- {pygitweb-0.2.2 → pygitweb-0.2.3}/validation_test.py +0 -0
|
@@ -23,13 +23,12 @@ from fastapi.security import APIKeyCookie, OAuth2PasswordBearer, OAuth2PasswordR
|
|
|
23
23
|
from pydantic import BaseModel
|
|
24
24
|
|
|
25
25
|
from pygitweb.auth_config import (
|
|
26
|
-
auth_config,
|
|
27
26
|
is_auth_configured,
|
|
28
27
|
is_local_auth_available,
|
|
29
28
|
is_oauth_auth_available,
|
|
30
29
|
)
|
|
31
30
|
from pygitweb.auth_oauth import OAUTH_STATE_COOKIE_NAME, oauth_router
|
|
32
|
-
from pygitweb.config import settings
|
|
31
|
+
from pygitweb.config import auth_config, settings
|
|
33
32
|
from pygitweb.gravatar import gravatar_url
|
|
34
33
|
from pygitweb.password_hash import verify_password
|
|
35
34
|
from pygitweb.permissions import Permission, PermissionPrincipal, has_branch_read_permission
|
|
@@ -23,8 +23,8 @@ import httpx
|
|
|
23
23
|
from fastapi import APIRouter, HTTPException, Query, Request, status
|
|
24
24
|
from fastapi.responses import RedirectResponse
|
|
25
25
|
|
|
26
|
-
from pygitweb.auth_config import AuthConfig, OAuthUsernameFrom,
|
|
27
|
-
from pygitweb.config import settings
|
|
26
|
+
from pygitweb.auth_config import AuthConfig, OAuthUsernameFrom, is_oauth_auth_available
|
|
27
|
+
from pygitweb.config import auth_config, settings
|
|
28
28
|
from pygitweb.sessions import create_session
|
|
29
29
|
|
|
30
30
|
OAUTH_STATE_COOKIE_NAME = "pygitweb_oauth_state"
|
|
@@ -60,10 +60,10 @@ from pygitweb.auth import (
|
|
|
60
60
|
ensure_permission,
|
|
61
61
|
require_permission,
|
|
62
62
|
)
|
|
63
|
-
from pygitweb.auth_config import
|
|
63
|
+
from pygitweb.auth_config import is_auth_configured
|
|
64
64
|
from pygitweb.board_refs import BoardRefManifest, board_ref_manifest
|
|
65
65
|
from pygitweb.change_queue import CHANGE_QUEUE
|
|
66
|
-
from pygitweb.config import ACTIONS, get_loadavg, settings
|
|
66
|
+
from pygitweb.config import ACTIONS, auth_config, get_loadavg, settings
|
|
67
67
|
from pygitweb.dependencies import (
|
|
68
68
|
ValidatedBoardCreateProject,
|
|
69
69
|
ValidatedNotifyProject,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|