def declared_identity(self, ctx, declared):
     user = declared.get('username')
     if user is None:
         raise macaroonbakery.IdentityError('no username declared')
     return macaroonbakery.SimpleIdentity(user)
 def declared_identity(self, ctx, declared):
     raise macaroonbakery.IdentityError('no identity declarations in basic '
                                        'auth id service')
Пример #3
0
 def declared_identity(self, ctx, declared):
     raise bakery.IdentityError('no identity declared or possible')