Project

General

Profile

Actions

Feature #17499

closed

Workbench1 supports username/pw login

Added by Peter Amstutz about 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench
Target version:
Story points:
-
Release relationship:
Auto

Description

In order to fully eliminate the legacy SSO server, Workbench 1 needs to be able to support username/pw login for LDAP and PAM.

From discussion, the preferred solution will be to add a new username/password login page to Workbench 1.

Design:

  1. For LDAP, PAM and Test modes, the login page displays username and password entry
  2. Login button controller makes an AJAX call to "user authenticate" endpoint, providing username and password, and receiving API token or an error.
  3. Errors should redisplay the login page with a "login failed" message at the top (rails "flash" box)

Subtasks 1 (0 open1 closed)

Task #17675: Review 17499-wb-login-formResolvedPeter Amstutz05/13/2021Actions
Actions #1

Updated by Peter Amstutz about 3 years ago

  • Description updated (diff)
Actions #2

Updated by Peter Amstutz about 3 years ago

  • Description updated (diff)
Actions #3

Updated by Peter Amstutz about 3 years ago

  • Category set to Workbench
Actions #4

Updated by Peter Amstutz about 3 years ago

  • Target version changed from 2021-04-14 sprint to 2021-05-12 sprint
Actions #5

Updated by Peter Amstutz almost 3 years ago

  • Target version changed from 2021-05-12 sprint to 2021-05-26 sprint
Actions #6

Updated by Peter Amstutz almost 3 years ago

  • Assigned To set to Peter Amstutz
Actions #7

Updated by Peter Amstutz almost 3 years ago

17499-wb-login-form @ c426bf92611cff8b5590d5bf77359ea241d82dcb

developer-run-tests: #2472

  • On the welcome page, now switches between "click here to log in" and basic username/password form based on configured login method.
  • Javascript is shamelessly taken from login_testuser.go
  • Replaced welcome text with Rails.configuration.Workbench.WelcomePageHTML
Actions #8

Updated by Peter Amstutz almost 3 years ago

  • Status changed from New to In Progress
Actions #9

Updated by Lucas Di Pentima almost 3 years ago

Some comments below:

  • File apps/workbench/app/views/users/welcome.html.erb
    • There's funky indentation in the javascript code that makes it difficult to follow, could it be tidier?
    • There's commented code at line 34
    • The error message could be displayed in red font, or some other hint that makes it clear that's an error.
    • Whenever the username or password field change, the error message could be cleared, for UI friendliness purposes (and consistency with wb2's login form).
  • The WelcomePageHTML default config has some confusing wording, depending on the login method:
    • "The log in button below will show you a sign-in page...." - the sign-in page sometimes is the current one.
    • "Arvados Workbench uses your name and email address only for id..." - the form doesn't ask for email address
Actions #10

Updated by Peter Amstutz almost 3 years ago

Lucas Di Pentima wrote:

Some comments below:

  • File apps/workbench/app/views/users/welcome.html.erb
    • There's funky indentation in the javascript code that makes it difficult to follow, could it be tidier?

Should be fixed.

  • There's commented code at line 34

Fixed.

  • The error message could be displayed in red font, or some other hint that makes it clear that's an error.

Done.

  • Whenever the username or password field change, the error message could be cleared, for UI friendliness purposes (and consistency with wb2's login form).

Done.

  • The WelcomePageHTML default config has some confusing wording, depending on the login method:
    • "The log in button below will show you a sign-in page...." - the sign-in page sometimes is the current one.
    • "Arvados Workbench uses your name and email address only for id..." - the form doesn't ask for email address

I removed the confusing wording, it should work for both login types.

I also fixed some integration tests.

17499-wb-login-form @ e8f266b10a8cd66209fd2ca6c64a100f86b8b887

https://ci.arvados.org/view/Developer/job/developer-run-tests/

Actions #11

Updated by Lucas Di Pentima almost 3 years ago

This LGTM, there're some integration tests failing, but not sure if they're the usual flaky ones.

Actions #12

Updated by Peter Amstutz almost 3 years ago

  • Status changed from In Progress to Resolved
Actions #13

Updated by Peter Amstutz almost 3 years ago

  • Status changed from Resolved to Feedback

This has a couple of mistakes

Actions #14

Updated by Peter Amstutz almost 3 years ago

Peter Amstutz wrote:

This has a couple of mistakes

Which were fixed in ecef6ad8ac0724b311c545412518b8fd1dc72b79

Actions #15

Updated by Peter Amstutz almost 3 years ago

  • Status changed from Feedback to Resolved
Actions #16

Updated by Peter Amstutz over 2 years ago

  • Release set to 41
Actions

Also available in: Atom PDF