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 ?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Fabien Meghazi's avatar
93
Fabien Meghazi
asked 12 years ago, updated 12 years ago

Comments

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
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 (12 years ago)

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 (12 years ago)

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 (12 years ago)
see more comments