purepennons / gss

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

Web Browser is always redirected to https://wayf.grnet.gr/ #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. compile and deploy
2. Open IE to http://localhost:8080/pithos/index.html or GSS.html Or
without html
3. Redirect to https://wayf.grnet.gr/

What is the expected output? What do you see instead?
It should show the GSS web interface. It is redirected to
https://wayf.grnet.gr/....

What version of the product are you using? On what operating system?
hg, jboss 5.0.0, gwt 2.0.1, ant 1.8.x ...on windows 7

Please provide any additional information below.

https://wayf.grnet.gr/?entityID=https%3A%2F%2Fpithos.grnet.gr%2Fshibboleth&retur
n=https%3A%2F%2Fpithos.grnet.gr%2FShibboleth.sso%2FDS%3FSAMLDS%3D1%26target%3Dco
okie

Original issue reported on code.google.com by chensc...@gmail.com on 16 Feb 2010 at 11:27

GoogleCodeExporter commented 8 years ago
I update the URL from to pithos.grnet.gr to localhost:8080, but when I go to
http://localhost:8080/pithos/login, it fails and redirect to
https://localhost:8080/pithos/login?next=http://localhost:8080/pithos/ and it 
cannot
display.

Original comment by chensc...@gmail.com on 16 Feb 2010 at 11:49

GoogleCodeExporter commented 8 years ago
I have login issue here.

Original comment by chensc...@gmail.com on 17 Feb 2010 at 6:11

GoogleCodeExporter commented 8 years ago
JBoss console output is attached.

Original comment by chensc...@gmail.com on 17 Feb 2010 at 6:22

Attachments:

GoogleCodeExporter commented 8 years ago
00:09:52,864 http-127.0.0.1-8080-2 ERROR () [[Login]] Servlet.service() for 
servlet
Login threw exception
java.lang.ClassCastException: gr.ebs.gss.server.domain.User cannot be cast to
gr.ebs.gss.server.domain.User

Original comment by chensc...@gmail.com on 17 Feb 2010 at 6:23

GoogleCodeExporter commented 8 years ago
You need to have Shibboleth authentication set up in order to authenticate. The 
first
step in the Shibboleth authentication process is a redirection to a WAYF (Where 
Are
You From) server, for selecting the Identity Provider that has your 
credentials. You
can read more about Shibboleth here: 

http://en.wikipedia.org/wiki/Shibboleth

Alternatively, for development purposes you can use a shortcut in the server, to
authenticate without Shibboleth. You have to manually initialize a user entry 
in the
database first (using SQL insert) and then set its username in the testUsername
property of the gss.properties configuration file. You can find it deployed in
JBOSS_HOME\server\default\conf\gss.properties. The proper URL for using in this
scenario is the following, which can be also found in the GWT hosted mode launch
configuration:

http://127.0.0.1:8080/pithos/login?next=http://127.0.0.1:8080/pithos/

I'll make sure to update BUILD.txt with this information, but do let me know if 
you
need any more help with this.

Original comment by past...@gmail.com on 17 Feb 2010 at 8:29

GoogleCodeExporter commented 8 years ago
I have modified JBOSS_HOME\server\default\conf\gss.properties to use the user 
name of
scott: testUsername=scott, and insert a record in table - gss_user in the 
database.
Then open a browser, go to
http://127.0.0.1:8080/pithos/login?next=http://127.0.0.1:8080/pithos/, and I 
get the
error and the JBoss console output attached:

--------------------------------------------------------------------------------
HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented it from
fulfilling this request.

exception 

java.lang.ClassCastException: gr.ebs.gss.server.domain.User cannot be cast to
gr.ebs.gss.server.domain.User
    $Proxy203.findUser(Unknown Source)
    gr.ebs.gss.server.Login.service(Login.java:201)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    gr.ebs.gss.server.CacheFilter.doFilter(CacheFilter.java:63)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

Original comment by chensc...@gmail.com on 17 Feb 2010 at 9:45

Attachments:

GoogleCodeExporter commented 8 years ago
Can you provide some sample/example data/scripts for the database? Thanks! 
-Scott

Original comment by chensc...@gmail.com on 17 Feb 2010 at 9:59

GoogleCodeExporter commented 8 years ago
There should definitely exist an initialization script for the database.
Unfortunately it's a bit difficult for me to do the necessary deployment and 
testing
right now. The class cast exception could be caused by a failure to find 
connected
entries in other tables, like userclass that holds the quota information. Can 
you add
an entry for that table, too? If it still doesn't work, can you send me your db
contents or the commands you used to initialize them?

Original comment by past...@gmail.com on 18 Feb 2010 at 8:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Since revision 305438787c there is a user registration workflow implemented. 
Now you shouldn't need to 
initialize the first user using SQL commands. The registration page is at:

http://127.0.0.1:8080/pithos/register

Since login requires Shibboleth, the registration process creates an account in 
an external LDAP server in addition 
to adding a row to the user table in the DBMS. You can configure various LDAP 
server settings from 
gss.properties.

Original comment by past...@gmail.com on 12 May 2010 at 11:02

GoogleCodeExporter commented 8 years ago

Original comment by past...@gmail.com on 28 May 2010 at 8:41