First time here? Check out the FAQ!
0

What are the mechanics between google login and askbot?

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

SocialQA's avatar
265
SocialQA
asked 2013-03-30 21:28:12 -0600, updated 2013-03-30 21:34:09 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

Evgeny's avatar
13.2k
Evgeny
answered 2013-03-31 00:02:03 -0600, updated 2013-03-31 00:03:47 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments