Hi Tarun
At the moment I am still playing around so have 2 servlets
http://myprofessions.com/demo.htm
(I have only added keys for hotmail and google )
so not expecting rest to work
The demo redirects to OpenIdAuthentication?provider="+provider+"
Within google config:
Target URL path prefix:
http://myprofessions.com/healthnbeauty/AuthSuccess
I had this on the 1st servlet and when I run the test it redirects me
to the login page(which is what I have asked it to do if no provider
is give)
so I have set it to AuthSuccess for now and unsure if AuthSuccess at
all works since when I run
Test your AuthSub registration it returns me to my site and
AuthSuccess url with a token but I see nothing (that is a seperate
issue if AuthSuccess is not returning anything)
Had a quick read of instructions on google and
http://code.google.com/apis/youtube/2.0/developers_guide_protocol_authsub.html
(
http://code.google.com/apis/accounts/docs/
RegistrationForWebAppsAuto.html)
if you're making an AuthSub request, this URL must be identical to the
prefix value of the next parameter used in your authorization requests
So I presume this means I need to revert it back to
OpenIdAuthenticaion servlet... but this is how it was and it hasn't
been working
so far as debug etc I may have to run this all on another
instance..... since too much logs being dumped on my sites..
Here is something I could find from google: (so it knows of SuccessUrl
which was not part of the config on googles end last night)
10-May-2011 01:05:12 org.apache.catalina.valves.RequestDumperValve
invoke
INFO: header=Location=
https://www.google.com/accounts/o8/
ud?openid.ax.mode=fetch_request&openid.ax.required=country%2Cemail
%2Cfirstname%2Clanguag
e%2Clastname&openid.ax.type.country=http%3A%2F%2Faxschema.org%2Fcontact
%2Fcountry%2Fhome&openid.ax.type.email=http%3A%2F%2Faxschema.org
%2Fcontact%2Femail&ope
nid.ax.type.firstname=http%3A%2F%2Faxschema.org%2FnamePerson
%2Ffirst&openid.ax.type.language=http%3A%2F%2Faxschema.org%2Fpref
%2Flanguage&openid.ax.type.lastn
ame=http%3A%2F%2Faxschema.org%2FnamePerson
%2Flast&openid.claimed_id=http%3A%2F%
2Fspecs.openid.net%2Fauth
%2F2.0%2Fidentifier_select&openid.ext2.consumer=%2Fhe
althnbeauty&openid.ext2.scope=http%3A%2F%
2Fwww.google.com%2Fm8%2Ffeeds
%2F&openid.identity=http%3A%2F%
2Fspecs.openid.net%2Fauth
%2F2.0%2Fidentifier_select&open
id.mode=checkid_setup&
openid.ns.ax=http%3A%2F%2Fopenid.net%2Fsrv%2Fax
%2F1.0&openid.ns.ext2=http%3A%2F%
2Fspecs.openid.net%2Fextensions
%2Foauth%2F1.0&openid.ns
.max_auth_age=0&openid.ns.pape=http%3A%2F%
2Fspecs.openid.net
%2Fextensions%2Fpape%2F1.0&openid.ns=http%3A%2F%
2Fspecs.openid.net
%2Fauth%2F2.0&openid.realm=%2Fh
ealthnbeauty&openid.return_to=%2Fhealthnbeauty%2FAuthSuccess
10-May-2011 01:05:12 org.apache.catalina.valves.RequestDumperValve
invoke
INFO: message=null
10-May-2011 01:05:12 org.apache.catalina.valves.RequestDumperV
On May 10, 10:30 am, Tarun <
tar...@brickred.com> wrote:
> Hi
>
> There may be a problem with your keys..
>
> First you'll have to register your application with providers to get
> the key/secret.
> Use these key/secret in oauth_consumer.properties file.
> Then you'll have to run your application with the same domain what you
> have registered.
>
> Read:-
http://code.google.com/p/socialauth/wiki/GettingStarted