Brown-University-Library / disa_dj_project

MIT License
2 stars 3 forks source link

Sanify authentication #155

Open elizabethyalkut opened 1 year ago

elizabethyalkut commented 1 year ago

I need a way to detect if a user is authenticated as a community partner. The is_authenticated test works only for the editor/admin user groups, as I understand the documentation.

birkin commented 1 year ago

@elizabethyalkut Re the title, I'm not aware of a user-reported problem with authentication.

The logic has been:

Given that, landing at the browse-page performs a check.

If a person lands at the browse-page and neither of the above two checks indicate the person has logged in, the assumption is that this is a Community Partner (because research-assistants always start at the /login url), and the browse-page displays the community-partner login-form.

Regarding code...

Let me know if there's something else you need beyond those two checks.