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: graceful handling of unauthorized responses from the api #12

Open
ncudlenco opened this issue Dec 2, 2024 · 1 comment
Open

fix: graceful handling of unauthorized responses from the api #12

ncudlenco opened this issue Dec 2, 2024 · 1 comment
Assignees
Labels
service:cloud.io Issues/Features related to cloud.io service:db_search Issues/Features related to database search severity: medium Affects only a minor part of the app type:fix A bug fix

Comments

@ncudlenco
Copy link
Member

ncudlenco commented Dec 2, 2024

Service

cloud.io

Version

1.11.0

Overview

When the access token of the service expires, the BE sends an unauthorized message. When that happens, cloud.io and db search display an error Unauthorized and stop working. The current workaround is to manually access the identity provider's logout endpoint. Web apps should gracefully handle this.

Steps to Reproduce

  • Access cloud.io or db search
  • Make sure you are logged in (if you can access them you are)
  • When your access token expires (max after 1 hour), you will get an Unauthorized error

Expected Behavior

  • The user is logged out

Additional Notes

Related to #11: "However, a forced logout is needed to use cloud.io and db search"

@ncudlenco ncudlenco added severity: medium Affects only a minor part of the app type:fix A bug fix labels Dec 2, 2024
@ncudlenco ncudlenco self-assigned this Dec 2, 2024
@ncudlenco ncudlenco added service:cloud.io Issues/Features related to cloud.io service:db_search Issues/Features related to database search labels Dec 2, 2024
@ncudlenco ncudlenco reopened this Dec 9, 2024
@ncudlenco
Copy link
Member Author

@NathaliaForero, this is now fixed. Please re-test and let me know if instead of the Unauthorized error after 1 hour the user is redirected to the logout page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service:cloud.io Issues/Features related to cloud.io service:db_search Issues/Features related to database search severity: medium Affects only a minor part of the app type:fix A bug fix
Projects
None yet
Development

No branches or pull requests

1 participant