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

fix: Clients limit exceeded route requires login #4139

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

taratatach
Copy link
Member

We should return an Unauthorized error when someone tries to access
the clients limit exceeded route of a Cozy without a valid session
(i.e. without being logged in).

@taratatach taratatach self-assigned this Sep 26, 2023
@taratatach taratatach requested a review from a team as a code owner September 26, 2023 18:06
@taratatach taratatach force-pushed the fix/require-login-for-oauth-clients-modal-page branch from 2b6aa5f to c3c0de0 Compare September 27, 2023 08:05
  Settings tests' requests are all considered to have a session cookie
  which makes impossible to test the result of making a request as a
  logged-out user.

  To this end, we'll add the session to the request context only if a
  session cookie with a value of `connected` is present.
  We should return an Unauthorized error when someone tries to access
  the clients limit exceeded route of a Cozy without a valid session
  (i.e. without being logged in).
@taratatach taratatach force-pushed the fix/require-login-for-oauth-clients-modal-page branch from c3c0de0 to fbf61b0 Compare September 27, 2023 08:36
@taratatach taratatach merged commit 6bd697a into master Sep 27, 2023
@taratatach taratatach deleted the fix/require-login-for-oauth-clients-modal-page branch September 27, 2023 11:07
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.

2 participants