You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Login page does not display any authentication methods when standard login is enabled (DSpace-CRIS 2024.02.03) #130
In DSpace-CRIS 2024.02.03 (Angular release), the login page displays no authentication methods when only the Password authentication is enabled.
The REST /server/api/authn endpoint works correctly and returns the available method, but the Angular UI shows a completely blank login page (no form, no password fields, nothing).
This affects a clean installation with default configuration.
Steps to reproduce
Install DSpace-CRIS backend 8.2 and DSpace-CRIS Angular 2024.02.03.
Ensure only PasswordAuthentication is enabled: plugin.sequence.org.dspace.authenticate.AuthenticationMethod = org.dspace.authenticate.PasswordAuthentication
Navigate to /login.
The page loads but no login form is rendered.
Root cause
The issue is caused by incorrect logic in: src/app/shared/log-in/log-in.component.ts, function: filterAndSortAuthMethods(...)
Specifically:
if (!isStandardLoginDisabled) {
return authM.authMethodType !== AuthMethodType.Password;
}
When isStandardLoginDisabled = false (normal installation),
Password authentication is excluded, resulting in an empty list.
Activity