[Iplant-api-dev] Perl client for Agave API
Rion Dooley
dooley at tacc.utexas.edu
Sun Feb 2 09:09:39 MST 2014
Thanks for the great work, Cornel! I’m looking at the oauth2 branch and it looks like you’re expecting a token and/or client credentials to already be cached in a ~/.iplant.foundationalapi.json file on disk. The Agave CLI does the same thing (save storing the user’s password). It caches the following information:
{
"access_token": "",
"apikey": "",
"apisecret": "",
"created_at": "",
"expires_in": "",
"refresh_token": "",
"username": ""
}
Would it make sense to standardize all the clients and have them consistently search for auth tokens in the following order?
1. Check for values explicitly passed in
2. Check the environment
3. Check the ~/.agave file on disk
This might make development easier on some folks who might use one library or script to validate the behavior of another, or who are patching together multiple technologies. I think the Kurt has been taking a similar approach with rPlant. Perhaps he has some input.
--
Rion
On Feb 2, 2014, at 8:34 AM, Cornel Ghiban <ungreen at gmail.com<mailto:ungreen at gmail.com>> wrote:
Hi,
I've been working on this for a while and I'd like to get some feedback.
It needs polishing and documentation, but it's usable.
It started as a wrapper for v1 (see the code in v1 branch though) and I've updated it for v2.
https://github.com/cghiban/iPlant-FoundationalAPI
(yes, it needs to be renamed too).
For a quick start, look at the examples.
Thanks,
Cornel
_______________________________________________
Iplant-api-dev Mailing List: Iplant-api-dev at iplantcollaborative.org<mailto:Iplant-api-dev at iplantcollaborative.org>
List Info and Archives: http://mail.iplantcollaborative.org/mailman/listinfo/iplant-api-dev
One-click Unsubscribe: http://mail.iplantcollaborative.org/mailman/options/iplant-api-dev/dooley%40tacc.utexas.edu?unsub=1&unsubconfirm=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iplantcollaborative.org/pipermail/iplant-api-dev/attachments/20140202/2f6c5418/attachment.html
More information about the Iplant-api-dev
mailing list