Did I find the right examples for you? yes no

All Samples(5)  |  Call(0)  |  Derive(3)  |  Import(2)

src/i/o/ionyweb-0.3/ionyweb/administration/views/__init__.py   ionyweb(Download)
# -*- coding: utf-8 -*-
import sys
 
from django.middleware.csrf import CsrfViewMiddleware
from djangorestframework.authentication import BaseAuthentication
class UserLoggedInAuthentication(BaseAuthentication):
    """
    Use Django's session framework for authentication.
    """
 

src/i/o/ionyweb-HEAD/ionyweb/administration/views/__init__.py   ionyweb(Download)
# -*- coding: utf-8 -*-
import sys
 
from django.middleware.csrf import CsrfViewMiddleware
from djangorestframework.authentication import BaseAuthentication
class UserLoggedInAuthentication(BaseAuthentication):
    """
    Use Django's session framework for authentication.
    """
 

src/s/h/shareabouts-api-HEAD/src/sa_api_v1/apikey_v1/auth.py   shareabouts-api(Download)
class ApiKeyAuthentication(authentication.BaseAuthentication):
 
    def authenticate(self, request):
        """
        Return a User, or something usable as such, or None;