manager.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:plumeria 作者: sk89q 项目源码 文件源码
def __init__(self, flow_expiration=60 * 15, flow_cache_size=1000):
        """
        Create a new access manager for managing authorizations.

        Parameters
        ----------
        flow_expiration: int
            The number of seconds to keep pending authorization flows in memory
        flow_cache_size: int
            The maximum number of pending authorization flows to keep in memory at a time

        """
        self.store = None
        self.endpoints = CaseInsensitiveDict()
        self.state_cache = TTLCache(maxsize=flow_cache_size,
                                    ttl=flow_expiration)  # type: Dict[Tuple[str, str], Tuple[Endpoint, str, str]]
        self.random = random.SystemRandom()
        self.redirect_uri = "http://localhost/oauth2/callback/"
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号