Flask-principal-example icon indicating copy to clipboard operation
Flask-principal-example copied to clipboard

Identity owns <id> property, not <name>

Open Airead opened this issue 11 years ago • 2 comments

flask_principal's class Identity has not name property, fix it.

class Identity(object):
    def __init__(self, id, auth_type=None):
        self.id = id
        self.auth_type = auth_type
        self.provides = set()

Airead avatar May 13 '14 07:05 Airead

+1 this fixes the issue

avidas avatar May 17 '14 20:05 avidas

This PR is useful

sincerefly avatar Oct 07 '16 08:10 sincerefly