[Building Sakai] authentication for consuming rest apis.

William Karavites willkara at oit.rutgers.edu
Wed Feb 25 11:06:04 PST 2015


Chris, 


Thanks for the info! Getting rid of website scraping would make it much more fluid and lightweight. It'll also make it much easier to implement across platforms. 

I'll have to take a look at it and see how easy it would be to implement it. 

-Will 

------------------------------------ 
William Karavites 
Application Programmer 
OIT/OIRT- Rutgers University 
Office: 848-445-8726 
Cell: 732-822-9405 
willkara at rutgers.edu 
http://willkara.com 
------------------------------------ 

----- Original Message -----

From: "Christopher R Schauer" <cschauer at txstate.edu> 
To: "William Karavites" <willkara at oit.rutgers.edu> 
Cc: "Sakai-Dev" <sakai-dev at collab.sakaiproject.org> 
Sent: Wednesday, February 25, 2015 1:59:21 PM 
Subject: Re: [Building Sakai] authentication for consuming rest apis. 

You can also get a session by posting to /direct/session?_username=user&_password=pw. This also sends back a session cookie, but it would eliminate the need for website scraping. 

-Chris 

On Feb 25, 2015, at 7:40 AM, William Karavites < willkara at oit.rutgers.edu > 
wrote: 




It also currently only supports Python2.7> since the egg it library it depends on for the website scraping/cookie logging (Mechanize) isn't Python3 supported yet. 

If anyone has a Python3 supported library please let me know. 


-Will 

------------------------------------ 
William Karavites 
Application Programmer 
OIT/OIRT- Rutgers University 
Office: 848-445-8726 
Cell: 732-822-9405 
willkara at rutgers.edu 
http://willkara.com 
------------------------------------ 

----- Original Message -----

From: "William Karavites" < willkara at oit.rutgers.edu > 
To: "Neal Caidin" < neal.caidin at apereo.org > 
Cc: "Anup" < anup.dhabarde at gmail.com >, "Sakai-Dev" < sakai-dev at collab.sakaiproject.org > 
Sent: Wednesday, February 25, 2015 8:38:39 AM 
Subject: Re: [Building Sakai] authentication for consuming rest apis. 

Anup, 


I'm the creator of SakaiPy and would love to assist you in using it if you need any help. I haven't had much time lately to go more into its development but it is stable at this point. 

The way it works is that you enter in a URL that contains the login form for your Sakai Installation. After you enter the password/username fields and values, it passes back a cookie to you which allows you to access the /direct API. 

It's currently limited to only a few tools but once I have time, I'm planning to extend it to more and also give it a 'blank space'(not the Taylor Swift song) functionality, so that you can put in your own /direct links. 

Please feel free to message or call me if you have any questions. 


-Will 

------------------------------------ 
William Karavites 
Application Programmer 
OIT/OIRT- Rutgers University 
Office: 848-445-8726 
Cell: 732-822-9405 
willkara at rutgers.edu 
http://willkara.com 
------------------------------------ 

----- Original Message -----

From: "Neal Caidin" < neal.caidin at apereo.org > 
To: "Anup" < anup.dhabarde at gmail.com > 
Cc: "Sakai-Dev" < sakai-dev at collab.sakaiproject.org > 
Sent: Wednesday, February 25, 2015 8:16:08 AM 
Subject: Re: [Building Sakai] authentication for consuming rest apis. 

Hi Anup, 

Check this out! 

http://willkara.com/sakaipy-the-sakai-python-restful-interface/ 

You could use the library directly and I also imagine it has good examples. It supports Python 2, last I heard, and not Python 3. 


Cheers, 
Neal 


On Tue, Feb 24, 2015 at 4:36 PM, Anup < anup.dhabarde at gmail.com > wrote: 

<blockquote>
Hi, 

I am currently working on an external application which will consume the rest 
apis (/direct). I am having trouble figuring out how to do the authentication 
for the same using oauth 1.0 in my python code? 

If anyone has an example, that would be very helpful. 

Thanks, 
Anup 

_______________________________________________ 
sakai-dev mailing list 
sakai-dev at collab.sakaiproject.org 
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev 

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe" 





_______________________________________________ 
sakai-dev mailing list 
sakai-dev at collab.sakaiproject.org 
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev 

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe" 




_______________________________________________ 
sakai-dev mailing list 
sakai-dev at collab.sakaiproject.org 
https://urldefense.proofpoint.com/v2/url?u=http-3A__collab.sakaiproject.org_mailman_listinfo_sakai-2Ddev&d=AwICAg&c=OrYO-caJHQE1g_AJU3az1awi55It-bjDIQrtRiZ6WBk&r=2GtSValzWzuAeHPe1VTn34y7siqsP0COyo2UCa1yuDA&m=9JY5RL63057dTHBndhte9NZM4G0NFYIXKmBeJKGVCJ8&s=29hlwvjMQieDns41VjEta_Vb-czvJb3CQOmMDxW6PXM&e= 

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe" 
</blockquote>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20150225/7bb41990/attachment.html 


More information about the sakai-dev mailing list