Skip to content

fix(authentication): implement identity property on SimpleUser and Un…#3271

Open
navidnabavi wants to merge 1 commit into
Kludex:mainfrom
navidnabavi:fix/base-user-identity
Open

fix(authentication): implement identity property on SimpleUser and Un…#3271
navidnabavi wants to merge 1 commit into
Kludex:mainfrom
navidnabavi:fix/base-user-identity

Conversation

@navidnabavi

Copy link
Copy Markdown

fix(authentication): implement identity property on SimpleUser and UnauthenticatedUser

BaseUser defined identity as abstract but neither concrete subclass implemented it, causing NotImplementedError at runtime.

  • SimpleUser.identity returns username
  • UnauthenticatedUser.identity returns ""

Summary

BaseUser defines identity as an abstract property (raises NotImplementedError).
Neither SimpleUser nor UnauthenticatedUser implement it.
Discussion

Checklist

  • [ x ] I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • [ x ] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • [ x ] I've updated the documentation accordingly.

…authenticatedUser

BaseUser defined identity as abstract but neither concrete subclass
implemented it, causing NotImplementedError at runtime.

- SimpleUser.identity returns username
- UnauthenticatedUser.identity returns ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant