21217: Strip leading/trailing space chars from incoming tokens.
authorTom Clegg <tom@curii.com>
Thu, 30 Nov 2023 14:58:04 +0000 (09:58 -0500)
committerTom Clegg <tom@curii.com>
Thu, 30 Nov 2023 14:58:04 +0000 (09:58 -0500)
commitfb1f664fd1d11ef18cb00bed2ae4b49ce346c477
tree39ba2df2c856ac1bf18881940d621ac1edbb54d1
parent1a61611cbb8ed4471eb2e04e60bad548bff94678
21217: Strip leading/trailing space chars from incoming tokens.

Depending on OS/browser, trailing spaces and newlines are easy to
include inadvertently when copying, and impossible to detect when
pasting into a password input that displays placeholder symbols
instead of the pasted text.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
sdk/go/auth/auth.go
sdk/go/auth/handlers_test.go
services/keep-web/handler_test.go