Re: Create Django token-based Authentication

2015-01-30 Thread François Schiettecatte
I wonder if OAuth would help you, see http://oauth.net

François

> On Jan 30, 2015, at 8:22 AM, Collin Anderson  wrote:
> 
> Hi,
> 
> What happens when you try? :)
> 
> Your setup is pretty complicated, but I don't know if REST framework will 
> help much.
> 
> Collin
> 
> On Tuesday, January 27, 2015 at 12:00:59 AM UTC-5, Hossein Rashnoo wrote:
> I have my authentication service on django. I want to role as web-service to 
> gave other website a token and authenticate users with that token.
> 
> This is my scenario:
> 
>   • user visit external website and try to login
>   • when hit the login button that website redirect user to my site to 
> use username and password for login
>   • When successfully logged in users will redirect to external website 
> with a token
>   • And every time that website send me that token, I recognize that user 
> and pass some data to external website I'm try to use REST-Framework 
> authentication but it is too complicated Please help me.
> 
> -- 
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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/cc8def1e-9788-41ef-8896-4632b0d3b1ea%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/9104F84F-0C1B-4D22-B972-27BC6EC46B93%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Create Django token-based Authentication

2015-01-30 Thread Guilherme Leal
Django REST Framework  already
implements token authentication (check this

out).

The rest of the logic is preaty much implementation by the "client" site.

But if you do want to implement some authentication form, you could create
a view that exibits an i frame, that would be loaded inside a popup box by
the client site.

That preaty much covers your problem.

Em Fri Jan 30 2015 at 11:22:36, Collin Anderson 
escreveu:

> Hi,
>
> What happens when you try? :)
>
> Your setup is pretty complicated, but I don't know if REST framework will
> help much.
>
> Collin
>
>
> On Tuesday, January 27, 2015 at 12:00:59 AM UTC-5, Hossein Rashnoo wrote:
>>
>> I have my authentication service on django. I want to role as web-service
>> to gave other website a token and authenticate users with that token.
>>
>> This is my scenario:
>>
>>1. user visit external website and try to login
>>2. when hit the login button that website redirect user to my site to
>>use username and password for login
>>3. When successfully logged in users will redirect to external
>>website with a token
>>4. And every time that website send me that token, I recognize that
>>user and pass some data to external website I'm try to use REST-Framework
>>authentication but it is too complicated Please help me.
>>
>>  --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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/cc8def1e-9788-41ef-8896-4632b0d3b1ea%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CAOs3Lp55dZZiOH-u4SWW9sVE4-mBisauWEXpbUEszd_e2FLE4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Create Django token-based Authentication

2015-01-30 Thread Collin Anderson
Hi,

What happens when you try? :)

Your setup is pretty complicated, but I don't know if REST framework will 
help much.

Collin

On Tuesday, January 27, 2015 at 12:00:59 AM UTC-5, Hossein Rashnoo wrote:
>
> I have my authentication service on django. I want to role as web-service 
> to gave other website a token and authenticate users with that token.
>
> This is my scenario:
>
>1. user visit external website and try to login
>2. when hit the login button that website redirect user to my site to 
>use username and password for login
>3. When successfully logged in users will redirect to external website 
>with a token
>4. And every time that website send me that token, I recognize that 
>user and pass some data to external website I'm try to use REST-Framework 
>authentication but it is too complicated Please help me.
>
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/cc8def1e-9788-41ef-8896-4632b0d3b1ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Create Django token-based Authentication

2015-01-26 Thread Hossein Rashnoo


I have my authentication service on django. I want to role as web-service 
to gave other website a token and authenticate users with that token.

This is my scenario:

   1. user visit external website and try to login
   2. when hit the login button that website redirect user to my site to 
   use username and password for login
   3. When successfully logged in users will redirect to external website 
   with a token
   4. And every time that website send me that token, I recognize that user 
   and pass some data to external website I'm try to use REST-Framework 
   authentication but it is too complicated Please help me.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/3de99068-f5a2-4759-8be0-8d5e42d5f525%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.