Hi Rahul Gaur,

Thanks for your answer.
I will definitely take a look at the gist and repositories that you 
provided. 
Hopefully, it will gives me some ideas. :-)

Thanks a lot.

Kind Regards,
Cheng

On Thursday, February 6, 2014 6:03:03 PM UTC+8, Rahul Gaur wrote:
>
> Hi , 
> You can take a look at the following GIST : 
> https://gist.github.com/aregee/6310787 
> I have two projects , that implement the Token based authentication.
> I have used Django Tastypie for rolling out the RESTful apis and since 
> tastypie offers ApiKeyAuthentication() method , on the client side I have 
> used AngularJS. My gist link contains factory session service for angularJs 
> that stores the user details ie: Api Key and username in the browser cache.
> For every request the angular code makes to server , it appends the api 
> key to headers.
>
> Code quality is not really very great , but I think you can get a brief 
> idea.
> Let me know if you have any questions.
>
> Project Repos : 
> https://github.com/aregee/moksaya
> https://github.com/aregee/musicstore
>
> Regards, 
> Rahul 
>
>
> On Thu, Feb 6, 2014 at 2:35 PM, Calvin Chen <[email protected]<javascript:>
> > wrote:
>
>> Hi,
>>
>> I couldn't find any real example about how to use token-based 
>> authentication in Django, and how to let it work with front-end MVC 
>> framework like AngularJS.
>> Do you guys have any ideas?
>>
>> Kind Regards,
>> Calvin
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/bf839d9c-c92e-4206-a5c7-a01ce1ee556d%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
>
> -------------------------------------------------------------------------------------------------------
> Rahul Gaur
> irc : iamaregee2
> Web: http://www.rahulgaur.info
> Github: https://github.com/aregee 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/007f6528-9a2a-4f72-bb47-c4d7f171b1f6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to