X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f4991e436219e135db96b8a9d064fdee3d39b2cd..7000c1ebd170001e10807b583a29e9e7e9570b23:/services/api/lib/create_superuser_token.rb diff --git a/services/api/lib/create_superuser_token.rb b/services/api/lib/create_superuser_token.rb index c1530162e9..7a18d97058 100755 --- a/services/api/lib/create_superuser_token.rb +++ b/services/api/lib/create_superuser_token.rb @@ -40,7 +40,7 @@ module CreateSuperUserToken where(user_id: system_user.id). where(api_client_id: apiClient.id). where_serialized(:scopes, ['all']). - where('(expires_at IS NULL OR expires_at > CURRENT_TIMESTAMP AT TIME ZONE ?)', 'UTC'). + where('(expires_at IS NULL OR expires_at > CURRENT_TIMESTAMP)'). first # none exist; create one with the supplied token @@ -54,7 +54,7 @@ module CreateSuperUserToken end end - api_client_auth.api_token + "v2/" + api_client_auth.uuid + "/" + api_client_auth.api_token end end end