SigningKeyConfig (config/auth.py)

jentic-one · src/jentic_one/shared/config/auth.py · python · Apache-2.0
auth

Pydantic models for OIDC, signing keys, and auth configuration.

# Source: https://github.com/jentic/jentic-one | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Auth surface configuration: signing keys, IdP, platform clients, trusted proxies, and login."""

from __future__ import annotations

import ipaddress
import os
from typing import Any
from urllib.parse import urlparse

import structlog
from pydantic import BaseModel, Field, PrivateAttr, SecretStr, field_validator

from jentic_one.shared.config._common import ConfigError, _csv_to_list, _normalize_optional_base_url
from jentic_one.shared.config.encryption import _KEY_ID_RE

_logger = structlog.get_logger(__name__)


class SigningKeyConfig(BaseModel):
    """A single ES256 signing key for 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key