Skip to content

Can you provide some docs on how to use it in authentication? #1

@ghost

Description

Hi. Do you have docs for using it in authentication? I am able to authenticate for now, but I am not able to set it within the session management.

I have been doing something like that in my login:
user = backend.authenticate(login, password)
if user is not None:
auth.login( request, user)

However, checking if a user is authenticated is not supported for now:
if request.user.is_authenticated():
this throws an error.

Maybe I am using it wrong?

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