Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/e/u/Euphorie-6.3.1/src/euphorie/client/api/users.py   Euphorie(Download)
from ..authentication import authenticate
from ..model import Account
from .authentication import authenticate_token
from .authentication import generate_token
from .account import login_available
    def __getitem__(self, key):
        token = self.request.getHeader('X-Euphorie-Token')
        uid_and_login = authenticate_token(token)
        if uid_and_login is None or key != uid_and_login[0]:
            raise KeyError(key)

src/e/u/Euphorie-6.3.1/src/euphorie/content/api/tests/test_authentication.py   Euphorie(Download)
    def authenticate_token(self, *a, **kw):
        from ..authentication import authenticate_token
        return authenticate_token(*a, **kw)
 
    def test_bad_token_form(self):