# This file is auto-generated by oagen. Do not edit.

"""Enumeration of custom provider definition authenticate via values."""

from __future__ import annotations

from enum import Enum
from typing import Literal, TypeAlias


class CustomProviderDefinitionAuthenticateVia(str, Enum):
    """Known values for CustomProviderDefinitionAuthenticateVia."""

    REQUEST_BODY = "request_body"
    BASIC_AUTH_HEADER = "basic_auth_header"

    @classmethod
    def _missing_(cls, value: object) -> CustomProviderDefinitionAuthenticateVia | None:
        if not isinstance(value, str):
            return None
        unknown = str.__new__(cls, value)
        unknown._name_ = value.upper()
        unknown._value_ = value
        return unknown


CustomProviderDefinitionAuthenticateViaLiteral: TypeAlias = Literal[
    "request_body", "basic_auth_header"
]
