21 lines
577 B
Python
21 lines
577 B
Python
from ninja.security.apikey import APIKeyCookie, APIKeyHeader, APIKeyQuery
|
|
from ninja.security.http import HttpBasicAuth, HttpBearer
|
|
from ninja.security.session import SessionAuth, SessionAuthIsStaff, SessionAuthSuperUser
|
|
|
|
__all__ = [
|
|
"APIKeyCookie",
|
|
"APIKeyHeader",
|
|
"APIKeyQuery",
|
|
"HttpBasicAuth",
|
|
"HttpBearer",
|
|
"SessionAuth",
|
|
"SessionAuthSuperUser",
|
|
"django_auth",
|
|
"django_auth_superuser",
|
|
"django_auth_is_staff",
|
|
]
|
|
|
|
django_auth = SessionAuth()
|
|
django_auth_superuser = SessionAuthSuperUser()
|
|
django_auth_is_staff = SessionAuthIsStaff()
|