contactlaveena / dyuproject

Automatically exported from code.google.com/p/dyuproject
0 stars 0 forks source link

help with live demo #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. http://dp-openid.morphexchange.com/home/
2. choose AOL 
3. login

What is the expected output? What do you see instead?
 redirect to home , but it show me the login page again 

What version of the product are you using? On what operating system?

Please provide any additional information below.
 Please help

Original issue reported on code.google.com by toa...@gmail.com on 10 Dec 2008 at 9:49

GoogleCodeExporter commented 9 years ago
Morph (the host) is currently having problems on their backend.
Will ping you when its running normal.

You can actually checkout the source and run mvn jetty:run on the 
openid-servlet demo.
or deploy the war in the dist directory on the servlet container of your choice.

Original comment by david.yu...@gmail.com on 11 Dec 2008 at 4:29

GoogleCodeExporter commented 9 years ago
I deploy the war file but my server is timing out after choose AOL (or any other
provider) and click "Send"
After a while it gives the error on the browser 
=======================
HTTP Status 401 -

type Status report

message

description This request requires HTTP authentication ().
Apache Tomcat/6.0.18
======================

Is there any log somewhere beside catalina.out ?

Any help is appreciated.

Toan.

Original comment by toa...@gmail.com on 11 Dec 2008 at 5:23

GoogleCodeExporter commented 9 years ago
I just tried it locally and its fine.
Remember to prefix your url with "http://".

In the demo, you should see the error stacktrace when you receive a 401.
More likely it threw a FileNotFoundException. (returned 404 from the url you 
provided)

The snippet in HomeServlet.java:

            e.printStackTrace();
            response.sendError(401);

Original comment by david.yu...@gmail.com on 12 Dec 2008 at 4:20

GoogleCodeExporter commented 9 years ago
url start with secure https://
that should not be the problem right ?

Thanks

Original comment by toa...@gmail.com on 12 Dec 2008 at 6:34

GoogleCodeExporter commented 9 years ago
Should not be a problem.(although I haven't tried with https)
Have you got it working with http://?
Did you get redirected when you tried to login?

Can you post the stacktrace if there is any.

Cheers

Original comment by david.yu...@gmail.com on 13 Dec 2008 at 9:56

GoogleCodeExporter commented 9 years ago
Just tested with ie7, http://dp-openid.morphexchange.com works just fine.
Something is wrong with it when using ff3.  The cookie somehow disappears 
(strange)
after being redirected back to the site from your openid provider.

Original comment by david.yu...@gmail.com on 16 Dec 2008 at 1:58

GoogleCodeExporter commented 9 years ago
Thanks for the information.
will there be a new version or a patch for this soon?
Please let me know so we can decide to wait for this or start looking for other
Service Provider.

Toan

Original comment by toa...@gmail.com on 16 Dec 2008 at 4:33

GoogleCodeExporter commented 9 years ago
I tried with ff3 , it let me login but complains about can't /home/
I have servlet in sub directory  /openid/ (since i have other apps in tomcat 
env)

so the url is like this https://a.b.com/openid/
and after login it redirect to upper level https://a.b.com/home which I don't 
have any.

How do I fix this ?

Thanks.
Toan.

Original comment by toa...@gmail.com on 16 Dec 2008 at 8:14

GoogleCodeExporter commented 9 years ago
String redirectUrl = RelyingParty.getAuthUrlString(user, trustRoot, realm, 
returnTo);

The returnTo must be a full url.  basically you can hardcode it to
"https://a.b.com/openid/ ...
Its a matter of what servlet/filter handled the request and where you want it
redirected.  The control is yours.

Cheers

Original comment by david.yu...@gmail.com on 19 Dec 2008 at 8:55

GoogleCodeExporter commented 9 years ago
HttpSessionBasedUserManager is now added and is the default.

Original comment by dyuproj...@gmail.com on 8 Jan 2009 at 3:32