Repository URL to install this package:
|
Version:
5.1.2-5.1 ▾
|
python3-dmapi-el9
/
usr
/
lib
/
python3.9
/
site-packages
/
dmapi
/
api
/
__pycache__
/
auth.cpython-39.pyc
|
|---|
a
քeI
ã @ s® d Z ddlmZ ddlmZ ddlmZ ddlZddl Zddl
ZddlmZ ddl
mZ ddlmZ ejjZe e¡Zd d
Zdd ZG d
d dejZG dd dejZdS )z
Common Auth Middleware.
é )Úlog)Úversionutils)Ú jsonutilsN)Úcontext)Ú_)Úwsgic sF fdd|d d
D } |d ¡}| ¡ |D ]}||}q4|S )Nc s g | ]} |¡qS © )Z
get_filter)Ú.0Ún©Úloaderr ú2/usr/lib/python3.9/site-packages/dmapi/api/auth.pyÚ
<listcomp> ó z"_load_pipeline.<locals>.<listcomp>éÿÿÿÿ)Zget_appÚreverse)r ZpipelineÚfiltersZappÚfilterr r r
Ú_load_pipeline s
r c K s t | |tjj ¡ S )z8A paste pipeline replica that keys off of auth_strategy.)r ÚCONFÚapiZ
auth_strategyÚsplit)r Zglobal_confZ
local_confr r r
Úpipeline_factory_v2" s r c s8 e Zd ZdZ fddZejjej ddd Z
ZS )Ú
InjectContextz&Add a 'dmapi.context' to WSGI environ.c s || _ tt| j|i |¤ d S )N)r Úsuperr Ú__init__)Úselfr ÚargsÚkwargs©Ú __class__r r
r * s zInjectContext.__init__©ZRequestClassc C s | j |jd<