Ask Your Question
0

Custom web controller in askbot instance

asked 2013-01-23 09:48:43 -0600

Fabien Meghazi gravatar image

updated 2013-01-23 09:49:12 -0600

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 ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-01-23 23:05:49 -0600

Evgeny gravatar image

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?).

edit flag offensive delete link more

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 gravatar imageFabien 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 gravatar imageFabien 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 gravatar imageFabien Meghazi ( 2013-01-24 09:48:23 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-01-23 09:48:43 -0600

Seen: 88 times

Last updated: Jan 23 '13