Source code for structum_lab.plugins.auth.oauth

# OAuth2 (Stub)
# SPDX-License-Identifier: Apache-2.0

"""
OAuth2 interface stub for future implementation.
"""

from typing import Protocol


[docs] class OAuthProvider(Protocol): """Protocol for OAuth2 providers (Google, GitHub, etc.)."""
[docs] def get_login_url(self, redirect_uri: str) -> str: ...
[docs] def exchange_code(self, code: str) -> dict: ...