2015-01-06 40 views
0

我有延長AuthRequest的的getMessage consumer.AuthRequest是將openid_shutdown_ack添加到請求

這是對象我得到這個正確的方法。我所添加的參數openid_shutdown_ack

<openid.message.Message {...(<Symbol Bare namespace>, 'openid_shutdown_ack'): '2015-04-20', ('http://openid.net/extensions/sreg/1.1', 'optional'): 'nickname,fullname,postcode,country,language,timezone', ('http://openid.net/srv/ax/1.0', 'type.country'): 'http://axschema.org/contact/country/home', ('http://specs.openid.net/auth/2.0', 'mode'): 'checkid_setup', ('http://openid.net/srv/ax/1.0', 'type.timezone'): 'http://axschema.org/pref/timezone', ('http://openid.net/srv/ax/1.0', 'required'): 'email', ('http://openid.net/srv/ax/1.0', 'type.email'): 'http://axschema.org/contact/email'}> 

此消息將被轉換爲request.htmlMarkup(境界,redirect_to的),併發送給Google之前被去除的值。

這是將此遷移參數發送給Google的正確方法嗎?

回答

0

只要它包含一個openid_shutdown_ack字段作爲值爲2015-04-20的查詢參數,它應該沒問題。

驗證更改是否按預期工作很簡單,如果您繼續看到警告消息,說明您的實施存在問題(僅用於參考預期行爲,imdb.com目前正在實施此操作 - 請注意當您嘗試使用Google帳戶登錄時,不會顯示警告消息)。

希望有幫助!