Bug #4344

[SDK] can't make an anonymous token from the cli

Added by Ward Vandewege over 2 years ago. Updated about 1 month ago.

Status:ResolvedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:API
Target version:-
Story points0.5
Velocity based estimate-

Description

Trying to make an anonymous token:

$ arv api_client_authorization create --api-client-authorization='{"scopes":["GET /"],"user":"su92l-tpzed-anonymouspublic"}'
Error: #<ActiveRecord::AssociationTypeMismatch: User(#19389640) expected, got String(#9218860)>

The alternative is to use the services/api/scripts/get_anonymous_user_token.rb script, but it should be possible to do this from the CLI.

History

#1 Updated by Ward Vandewege over 2 years ago

  • Description updated (diff)

#2 Updated by Ward Vandewege over 2 years ago

  • Target version changed from Bug Triage to Arvados Future Sprints

#3 Updated by Tom Clegg about 1 month ago

  • Category set to API
  • Status changed from New to Resolved

This works, but you have to say "owner_uuid":"X", not "user":"X".

#4 Updated by Tom Clegg about 1 month ago

  • Target version deleted (Arvados Future Sprints)

Also available in: Atom PDF