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

chore: add warning to Client.login #378

Merged
merged 4 commits into from
Aug 9, 2023
Merged

chore: add warning to Client.login #378

merged 4 commits into from
Aug 9, 2023

Conversation

oleobal
Copy link
Contributor

@oleobal oleobal commented Jul 27, 2023

Summary

This adds a warning to Client.login telling you to use tokens from the frontend instead. Also tells you when your session will expire.

I purposefully avoided calling it "deprecated" (since we have no plans to remove it), but maybe we should.

Also add a check for HTTP 410 on this endpoint, to match Substra/substra-backend#698 and provide a helpful error message.

See also Substra/substra-documentation#335

Closes FL-1112

Please check if the PR fulfills these requirements

  • If necessary, the changelog has been updated
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • The commit message follows the conventional commit specification
  • For any breaking changes, companion PRs have been opened on the following repositories:

@oleobal oleobal requested a review from a team as a code owner July 27, 2023 13:15
@linear
Copy link

linear bot commented Jul 27, 2023

@oleobal oleobal marked this pull request as draft July 27, 2023 13:15
@oleobal oleobal force-pushed the chore/login-warning branch 2 times, most recently from 2eb5470 to 8c75074 Compare July 31, 2023 17:08
Signed-off-by: Olivier Léobal <[email protected]>
Signed-off-by: Olivier Léobal <[email protected]>
Signed-off-by: Olivier Léobal <[email protected]>
@oleobal oleobal merged commit 71ee2be into main Aug 9, 2023
5 checks passed
@oleobal oleobal deleted the chore/login-warning branch August 9, 2023 08:34
@Milouu Milouu mentioned this pull request Sep 5, 2023
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