Ask Your Question
0

What are the mechanics between google login and askbot?

asked 2013-03-30 21:28:12 -0600

SocialQA gravatar image

updated 2013-03-30 21:34:09 -0600

In askbot site when user click google login option user get re-direct to Google Login page

Just like that I want to add a logo and when user click that logo I want to take the user to private login provider site (IdP). I have added the logo but when I click that logo the focus get set to askbot username password field. I don't know how I should do this redirect or what section of the code actually handles this. In the Google URL I see that openid2 which means that its openid code in deps (util.py) getting use. But where exactly that massive urls is getting generated. It would be great if someone could provide steps on how to setup this.

This is what I have done so far:

In util.py I have added my login to to data dictionary and done the necessary changes in the views.py to make that logo showup. I want to now make this logo click direct to my private idp (or in that matter any url).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-03-31 00:02:03 -0600

Evgeny gravatar image

updated 2013-03-31 00:03:47 -0600

Google login in Askbot uses standard OpenID protocol. If you need to use a different protocol (you've mentioned SAML2 before) - the protocol will firstly need to be implemented on the Askbot side.

Probably examples of SAML2 implementation would be most helpful to you.

In Askbot function signin initates all authentication protocols - depending on the login provide type variable. So it might be necessary to add the code for starting SAML2 in that function, and after that implement the remaining protocol. Since SAML2 is different from OAuth and OpenID - implementations of those in Askbot may not be helpful examples.

Once you click your custom button Askbot should run that signin function.

edit flag offensive delete link more

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-03-30 21:28:12 -0600

Seen: 154 times

Last updated: Mar 31 '13