17106: Improve handling of bare tokens issued by remote clusters.
authorTom Clegg <tom@tomclegg.ca>
Tue, 17 Nov 2020 20:42:28 +0000 (15:42 -0500)
committerNico Cesar <nico@nicocesar.com>
Thu, 10 Dec 2020 20:27:10 +0000 (15:27 -0500)
commit6452fa1e968d0dd33eb2628fec5323bf4f8bbe8c
treed05ba8f1f8252a5b5fe995e498e24b5e246a2e4a
parentdeaadbea28f273c4528394606a18a9443b30ea02
17106: Improve handling of bare tokens issued by remote clusters.

When caching, use the remote cluster's original token UUID.

When returning the current api_client_authorization record, include
the secret supplied by the caller, even when only storing the HMAC in
the database.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>
services/api/app/models/api_client_authorization.rb