aiohttp-security/aiohttp_security/cookies_identity.pyi

13 lines
575 B
Python
Raw Normal View History

2021-01-14 13:47:56 +00:00
from .abc import AbstractIdentityPolicy, Identity
from typing import Any, Union
import aiohttp.web
class sentinel: ...
class CookiesIdentityPolicy(AbstractIdentityPolicy):
def __init__(self) -> None: ...
async def identify(self, request: aiohttp.web.Request) -> Identity: ...
async def remember(self, request: aiohttp.web.Request, response: aiohttp.web.StreamResponse, identity: Identity, max_age: Union[sentinel, int]=..., **kwargs: Any) -> None: ...
async def forget(self, request: aiohttp.web.Request, response: aiohttp.web.StreamResponse) -> None: ...