Skip to content
Discussion options

You must be logged in to vote
  1. Information returned by @login_manager.user_loader:
    The user loader must return a user object inheriting from BaseUser (or implementing its interface). By default, it needs to provide the following attributes/properties:

    • id: A unique identifier for the user session (string or integer).
    • is_authenticated: A boolean property indicating if the user is authenticated (returns True for active users, False for anonymous/inactive users).
    • is_active: A boolean property indicating if the user account is active.
    • is_anonymous: A boolean property indicating if this is an anonymous user (returns False for real users).
  2. Dynamic Roles/Permissions and avoiding Circular Imports:

    • Dynamic determination:

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ockan
Comment options

Comment options

You must be logged in to vote
2 replies
@ockan
Comment options

@GrandpaEJ
Comment options

Answer selected by ockan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants