Skip to content

Can't access pydantic principals #13

@Master-Y0da

Description

@Master-Y0da

I create a pydantic model following the example described in package readme:

        class SuperUser(BaseModel):    
          username: Optional[str]

           def principals(self):
              return ["group:admin"]

But when I call get_active_principals function, it does not append the principal prop from superuser class...I think pydantic does not allow this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions