"""
This type stub file was generated by pyright.
"""

import tornado.web
from typing import Any
from streamlit.web.server.oidc_mixin import TornadoOAuth2App

auth_cache = ...
def create_oauth_client(provider: str) -> tuple[TornadoOAuth2App, str]:
    """Create an OAuth client for the given provider based on secrets.toml configuration."""
    ...

class AuthHandlerMixin(tornado.web.RequestHandler):
    """Mixin for handling auth cookies. Added for compatibility with Tornado < 6.3.0."""
    def initialize(self, base_url: str) -> None:
        ...
    
    def redirect_to_base(self) -> None:
        ...
    
    def set_auth_cookie(self, user_info: dict[str, Any]) -> None:
        ...
    
    def clear_auth_cookie(self) -> None:
        ...
    


class AuthLoginHandler(AuthHandlerMixin, tornado.web.RequestHandler):
    async def get(self): # -> None:
        """Redirect to the OAuth provider login page."""
        ...
    


class AuthLogoutHandler(AuthHandlerMixin, tornado.web.RequestHandler):
    def get(self): # -> None:
        ...
    


class AuthCallbackHandler(AuthHandlerMixin, tornado.web.RequestHandler):
    async def get(self): # -> None:
        ...
    


