Skip to content

Authentication check can't deal with a token that is invalid but not expiredΒ #4662

@ybnd

Description

@ybnd

Describe the bug

When Tomcat is restarted while a user is logged in, refreshing before the authentication token expires causes the login dropdown/page to not render the authentication methods.
Refreshing again resolves the problem.

This is not a very common occurence from the point of view of a regular user, but we run into this problem very frequently when developing.

To Reproduce

Steps to reproduce the behavior:

  1. Run a DSpace repository locally
  2. Log in to the Angular UI
  3. Restart Tomcat
  4. Refresh the Angular UI
    • You won't see the authentication methods appear in the user menu and login page
  5. Refresh the Angular UI again
    • Now the authentication methods will appear again

Expected behavior

Authentication methods should appear on the first refresh.

Potential solution

Ensure that authentication methods are retrieved even if the authentication token hasn't expired yet

Metadata

Metadata

Assignees

Type

Projects

Status

πŸ— In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions