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)
committerTom Clegg <tom@tomclegg.ca>
Wed, 18 Nov 2020 14:56:08 +0000 (09:56 -0500)
commit6a613ba162b66beab17bcdf6192034d6ed335ad4
tree265901d13a5ae8d0bc0878f525c6bd386820030e
parent40a52eaf419c4a7c2f0e32cc87aaba29e0098439
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