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')
def declared_identity(self, ctx, declared): raise bakery.IdentityError('no identity declared or possible')