Hi
For testing hybrid I write simple application (one servlet in eclipse
with google appengine).
I discovered that when I add params ( params.put("openid.ns.ui",
"http://specs.openid.net/extensions/ui/1.0");
params.put("openid.ui.mode", "popup"); )
to request then after sign in to account in granting access to google
services there is no services from scope, only grant access to
information like email addres, language and country. When I start
application without this parameters then hybrid work's great.
--
You received this message because you are subscribed to the Google Groups "dyuproject" group.
To post to this group, send email to dyupr...@googlegroups.com.
To unsubscribe from this group, send email to dyuproject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dyuproject?hl=en.
Cheers
On 21 Cze, 12:22, David Yu <david.yu....@gmail.com> wrote:
> There might be a bug somewhere in your code.
> I basically used the same demo and just added popup_login_hybrid.html (see
> attached).
> I've updated the demo in appengine to include a hybrid popup.
> It works fine.
>
> Cheers
>
> On Sun, Jun 20, 2010 at 3:10 AM, David Yu <david.yu....@gmail.com> wrote:
> >> accounts/o8/id <https://www.google.com/%0Aaccounts/o8/id>";
> >> static final String GOOGLE_OPENID_SERVER = "
> >>https://www.google.com/
> >> accounts/o8/ud <https://www.google.com/%0Aaccounts/o8/ud>";
> >> final RelyingParty _relyingParty = RelyingParty.getInstance();
>
> >> static {
> >> RelyingParty.getInstance().addListener(
> >> new
> >> AxSchemaExtension().addExchange("email").addExchange(
>
> >> "country").addExchange("language")).addListener(
> >> new RelyingParty.Listener() {
> >> @Override
> >> public void
> >> onPreAuthenticate(OpenIdUser arg0,
> >> HttpServletRequest
> >> arg1,
>
> >> UrlEncodedParameterMap params) {
> >> // TODO Auto-generated
> >> method stub
>
> >> System.out.println("onPreAuthenticate");
>
> >> Log.info("onPreAuthenticate");
> >> //oauth extension
>
> >> params.add("openid.ns.oauth","http://specs.openid.net/extensions/
> >> oauth/1.0 <http://specs.openid.net/extensions/%0Aoauth/1.0>");
>
> >> params.put("openid.oauth.consumer", __google.getConsumerKey());
>
> >> params.put("openid.oauth.scope","http://www.google.com/m8/feeds/
> >>https://picasaweb.google.com/data/");
> >> //openid popup mode
> >> String returnTo = "
> >>http://www.testap3.appspot.com/user/home";
>
> >> params.put(Constants.OPENID_RETURN_TO, returnTo);
>
> >> params.put(Constants.OPENID_REALM, returnTo);
> >> params.put("openid.ns.ui",
> >> "http://specs.openid.net/extensions/
> >> ui/1.0 <http://specs.openid.net/extensions/%0Aui/1.0>");
> ...
>
> więcej »
>
> popup_login_hybrid.html
> 7KZobaczPobierz
--
You received this message because you are subscribed to the Google Groups "dyuproject" group.
To post to this group, send email to dyupr...@googlegroups.com.
To unsubscribe from this group, send email to dyuproject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dyuproject?hl=en.
> ...
>
> więcej >>
--
You received this message because you are subscribed to the Google Groups "dyuproject" group.
To post to this group, send email to dyupr...@googlegroups.com.
To unsubscribe from this group, send email to dyuproject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dyuproject?hl=en.