First time here? Check out the FAQ!
0

Custom web controller in askbot instance

Is it possible to add a custom web controller in an askbot instance in order to respond to an url and login users using a custom login scheme.

I'm currently trying to add the code in url.py, is there a better place to put the controller's code ?

Also, how can I programmatically create a user and/or authenticate users from a custom controller ?

Fabien Meghazi's avatar
93
Fabien Meghazi
asked 2013-01-23 09:48:43 -0600, updated 2013-01-23 09:49:12 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Yes, but it's better to create a custom authentication backend - please find the corresponding django documentation on the subject.

Perhaps you could find some intro to django for the Rails developer (looks like you're coming from rails?).

Evgeny's avatar
13.2k
Evgeny
answered 2013-01-23 23:05:49 -0600
edit flag offensive 0 remove flag delete link

Comments

In fact, all the code I need is in the openid backend included in askbot. I just need to figure out how to call some parts from my view directly plugged in url.py. No, I don't come from rails.

Fabien Meghazi's avatar Fabien Meghazi (2013-01-24 03:29:22 -0600) edit

Ok, what I was searching for was not backend specific at all. I found the answer here : http://stackoverflow.com/questions/2787650/manually-logging-in-a-user-without-password

Fabien Meghazi's avatar Fabien Meghazi (2013-01-24 09:48:21 -0600) edit

Ok, what I was searching for was not backend specific at all. I found the answer here : http://stackoverflow.com/questions/2787650/manually-logging-in-a-user-without-password

Fabien Meghazi's avatar Fabien Meghazi (2013-01-24 09:48:23 -0600) edit
add a comment see more comments