Signin invalid after append custom oauth login module
 

I tried to append to my Askbot instance a custom login module: OAuth version 1a.

With help of this community, I got this answer (which was a great help but I cannot append the link - insufficient karma). So, as suggested I added to settings.py:

ASKBOT_CUSTOM_AUTH_MODULE = 'askbot.custom-oauth.oauth_1a'

After, I reboot my server, and opened the browser and entered /account/signin/when the browser terminated the rendering I tried my custom login and nothing happened, clicked a few more times and nothing... on the terminal the HTTP log was fine with errors, at every click I was refreshing the page (by some failed method and redirected to this page).

After checking the askbot.log I have found this message:

/home/vagrant/myaskbot/askbot/deps/django_authopenid/forms.py TIME: 2014-11-18 15:47:59,151 MSG: forms.py:clean:79 unknown provider name

So, I thought the problem was my Custom Provider, so I tried the other login providers, and the behavior maintained the same - without any kind of error or redirect to other provider login pages. I went to check the askbot.log and the previous message increased in quantity.

As, final resource, I tried to signin with my admin account and this one does not work anymore. Again without any kind of error or redirect to other pages. I went again to check the askbot.log and even the normal signin provider creates this error.

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)
pnascimento's avatar
1
pnascimento
asked 10 years ago, updated 10 years ago

Comments

I created the custom module with help from @Evgeny from his answer: http://askbot.org/en/question/9819/how-can-i-add-an-oauth2-custom-login-provider-to-askbot/?answer=9823#post-id-9823%3C/p (http://askbot.org/en/question/9819/how-can-i-add-an-oauth2-custom-login-provider-to-askbot/?answer=9823#post-id-9823</p<>>)

pnascimento's avatar pnascimento (10 years ago)
see more comments