[Iplant-api-dev] erratic behavior
Rion Dooley
dooley at tacc.utexas.edu
Tue Aug 5 16:38:14 MST 2014
To what system were you trying to register an app? The permission errors seem consistent. When you create and refresh your token, add a -V flag and see what grant type it is using. Older versions of the cli did not use the password grant type, so they would sporradically fail to refresh when tokens were pulled in different contexts .
Rion
________________________________________
From: iplant-api-dev-bounces at iplantcollaborative.org [iplant-api-dev-bounces at iplantcollaborative.org] on behalf of Barthelson, Roger A - (rogerab) [rogerab at email.arizona.edu]
Sent: Tuesday, August 05, 2014 6:23 PM
To: Rion Dooley
Cc: Discussion of iPlant API development
Subject: [Iplant-api-dev] erratic behavior
I have been trying to work with Agave this afternoon, but it seems rather inconsistent and very odd in its behavior. For example I tried to register an app, but I got this message:
Permission denied. You must authenticate to register an application.
I had a fairly fresh token, but tried creating a new token.
But I still got the same message. I tried running auth-check and it said
Current token is expired.
I ran auth-tokens-refresh and got this:
{"error":"invalid_grant","error_description":"Provided Authorization Grant is invalid.”}
I ran auth-tokens-create to get a new token and that ran okay.
I tried adding a new app and I got this again:
Permission denied. You must authenticate to register an application.
So I don’t understand what is going on.
Roger
--
Roger Barthelson Ph.D.
Scientific Analyst
iPlant Collaborative
BIO5 Institute, University of Arizona
Phone: 520-977-5249
Email: rogerab at email.arizona.edu<mailto:rogerab at email.arizona.edu>
Web: www.iplantcollaborative.org/<http://www.iplantcollaborative.org/>
More information about the Iplant-api-dev
mailing list