开发者

Django openid authentication with google

开发者 https://www.devze.com 2022-12-23 09:23 出处:网络
I am looking into authenticating via google. I dont understand how it works:http://code.google.com/apis/accounts/docs/OpenID.html#Samples

I am looking into authenticating via google.

I dont understand how it works:http://code.google.com/apis/accounts/docs/OpenID.html#Samples If i do that 2nd request by entering the data as one url with params into browser i get back XML file. Should i not get back sample response nr3?

Can somebody explain this to me?

The problem is, that im trying to sort through some third party app that uses google openid authentication and its not recieving authenticated users e-mail back, like in sample response 3.

Alan

PS i have read through similar questions and their responses and gone through pages like:

  • How does OpenID authentication work?
  • http://www.windley.com/archives/2006/04/how_does_openid.shtml
  • http://tinisles.blogspot.com/2008/02/how-does-openid-work.htm开发者_运维知识库l
  • http://openid.net/pres/protocolflow-1.1.png


What sort of XML file?

Remember that a checkid_setup request like that isn't something your application is meant to make with a direct connection, it's a request that's sent from the user's browser. So the response is going to be something for the browser to parse, prompt the user to log in if necessary, maybe ask the user for permission or which values it should send back, and only after all of that send back a redirect like in the sample response.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号