Skip to content

Can't access pydantic principals #13

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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