Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Show error message to blocked users #3527

Open
5 tasks
tillprochaska opened this issue Dec 7, 2023 · 0 comments
Open
5 tasks

FEATURE: Show error message to blocked users #3527

tillprochaska opened this issue Dec 7, 2023 · 0 comments
Labels
feature-request Requests for new features or enhancements of existing features ui Issues related to Aleph’s frontend

Comments

@tillprochaska
Copy link
Contributor

tillprochaska commented Dec 7, 2023

Is your feature request related to a problem? Please describe.
Aleph ships with an option to block individual users. Right now, when a blocked user tries to sign in, they get a generic "Invalid credentials" or "Unauthorized" (depending on auth flow) message. Depending on a reason for which a user has been blocked, this can be confusing to users.

Describe the solution you'd like
We want to be able to show a helpful error message when a blocked user tries to sign in. The message should be configurable. There should be a way to configure a link to an external webpage with more information.

Describe alternatives you've considered
-/-

Additional context

  • If a users is blocked, the is_actor property evaluates to False. The is_actor property is used during the OAuth flow and the password flow.
  • Right now, both flows treat blocked users basically in the same way as a nonexistent user and a generic "Invalid credentials" message is displayed.
  •  Check test coverage for auth flows
  •  Redirect blocked roles during OAuth flow (code)
  • Redirect blocked roles during password flow (code)
  • Decide whether to redirect blocked users to a separate (new) UI screen or to a configurable page (e.g. the "FAQ" page).
  • Ensure that API key authentication remains unaffected
@tillprochaska tillprochaska added ui Issues related to Aleph’s frontend feature-request Requests for new features or enhancements of existing features labels Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Requests for new features or enhancements of existing features ui Issues related to Aleph’s frontend
Projects
None yet
Development

No branches or pull requests

1 participant