<div dir="ltr">I am also very curious to see if anyone has a simple solution for this. I have recently been considering flask/pyramid vs django. For RESTful services, django seems <i>very</i> cumbersome... perhaps someone can demonstrate otherwise.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 August 2015 at 13:08, Paul Nijjar <span dir="ltr"><<a href="mailto:paul_nijjar@yahoo.ca" target="_blank">paul_nijjar@yahoo.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am too intimidated to ask this on Stack Exchange, and by<br>
DuckDuckGo-fu is weak, so I'll ask here:<br>
<br>
I have a Django webapp. Human-interactive screens will be<br>
authenticated using LDAP (aka the authentication system on the<br>
Operating System That Shall Not Be Named).<br>
<br>
Now I am creating a very simple API from scratch. I would like to<br>
avoid using Tastypie or Django REST Framework if I can, because the<br>
API is really trivial.<br>
<br>
The API will be consumed by two things:<br>
- A Javascript snippet<br>
- A desktop application written in Python<br>
<br>
My goals:<br>
<br>
- Authenticate the API methods against a small set of shared<br>
passwords NOT stored on the LDAP server<br>
- Do it in such a way that it is easy to program the Javascript<br>
snippet and desktop application to authenticate<br>
- Do it quickly and easily, without needing to learn anything too<br>
complex (otherwise I would just use Tastypie)<br>
- Not use this layer of authentication for the interactive screens of<br>
the webapp<br>
<br>
What am I looking for? How do I go about this?<br>
<br>
I do not think I need anything as complicated as an API key setup.<br>
<br>
I am pretty confused as to how you even authenticate REST calls in<br>
Django, so pointers to that would be helpful as well.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Paul<br>
<br>
<br>
--<br>
<a href="http://pnijjar.freeshell.org" rel="noreferrer" target="_blank">http://pnijjar.freeshell.org</a><br>
<br>
<br>
_______________________________________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a><br>
<a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" rel="noreferrer" target="_blank">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Jotham Apaloo<br></div><a href="mailto:jothamapaloo@gmail.com" target="_blank">jothamapaloo@gmail.com</a><br></div></div>
</div>