1 2 Previous Next 21 Replies Latest reply on May 20, 2011 12:45 PM by zarathos

    GateIn and SSO

    namrata.hangal

      Hi,

       

      Has anyone tried out the GateIn and SSO configuration steps mentioned in the GateIn reference guide?

        • 1. Re: GateIn and SSO
          mposolda

          Yes, I successfully tried it for Cas, josso, OpenSSO and SPNEGO. All SSO frameworks that are described in reference guide

          Do you have any problems with GateIn + SSO?

           

          Have a nice day,

          Marek

          • 2. Re: GateIn and SSO
            namrata.hangal

            Hi Marek,

             

            That's great!

            Referring to the Prerequisites mentioned in the Reference Guide, could you tell me which all files need to be downloaded from http://repository.jboss.org/maven2/org/gatein/sso/sso-packaging/  ?

            I'm kind of confused...

            • 3. Re: GateIn and SSO
              namrata.hangal

              I've started off with the CAS configuration, but am facing certain issues. It's probably because am on a proxy server, although am not sure that may be the root cause of the problem!!

              Here's the exception stack trace on the console when i try to run the command "mvn install" in the cas_home/cas-server-webapp directory. There is no target/cas.war file created.

               

              [Namrata@01HW077158 cas-server-webapp]$ mvn install

              [INFO] Scanning for projects...

              Downloading: http://developer.ja-sig.org/maven2/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom

              [WARNING] Unable to get resource 'org.jasig.parent:jasig-parent:pom:21' from repository jasig-repository (http://developer.ja-sig.org/maven2): Error transferring file: developer.ja-sig.org

              Downloading: http://repository.jboss.com/maven2/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom

              [WARNING] Unable to get resource 'org.jasig.parent:jasig-parent:pom:21' from repository jboss (http://repository.jboss.com/maven2): Error transferring file: repository.jboss.com

              Downloading: http://repo1.maven.org/maven2/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom

              [WARNING] Unable to get resource 'org.jasig.parent:jasig-parent:pom:21' from repository central (http://repo1.maven.org/maven2): Error transferring file: repo1.maven.org

              [INFO] ------------------------------------------------------------------------

              [ERROR] FATAL ERROR

              [INFO] ------------------------------------------------------------------------

              [INFO] Error building POM (may not be this project's POM).

               

               

              Project ID: org.jasig.cas:cas-server:pom:3.4.3

               

              Reason: Cannot find parent: org.jasig.parent:jasig-parent for project: org.jasig.cas:cas-server:pom:3.4.3 for project org.jasig.cas:cas-server:pom:3.4.3

               

               

              [INFO] ------------------------------------------------------------------------

               

              [INFO] Trace

               

              org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jasig.parent:jasig-parent for project: org.jasig.cas:cas-server:pom:3.4.3 for project org.jasig.cas:cas-server:pom:3.4.3

               

                  at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)

               

                  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)

               

                  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

               

                  at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

               

                  at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

               

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

               

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

               

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

               

                  at java.lang.reflect.Method.invoke(Method.java:616)

               

                  at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

               

                  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

               

                  at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

               

                  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

               

              Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.jasig.parent:jasig-parent for project: org.jasig.cas:cas-server:pom:3.4.3 for project org.jasig.cas:cas-server:pom:3.4.3

               

                  at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)

               

                  at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1407)

               

                  at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)

               

                  at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)

               

                  at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)

               

                  at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)

               

                  at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)

               

                  at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)

               

                  ... 12 more

               

              Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jasig.parent:jasig-parent' not found in repository: Unable to download the artifact from any repository

               

                org.jasig.parent:jasig-parent:pom:21

               

              from the specified remote repositories:

                central (http://repo1.maven.org/maven2),

                jboss (http://repository.jboss.com/maven2),

                jasig-repository (http://developer.ja-sig.org/maven2)

               

              for project org.jasig.parent:jasig-parent

                  at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)

                  at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)

                  ... 19 more

              Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

               

                org.jasig.parent:jasig-parent:pom:21

               

              from the specified remote repositories:

                central (http://repo1.maven.org/maven2),

                jboss (http://repository.jboss.com/maven2),

                jasig-repository (http://developer.ja-sig.org/maven2)

               

               

                  at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)

               

                  at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)

               

                  at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)

               

                  ... 20 more

               

              Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository

               

                  at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)

               

                  at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)

               

                  ... 22 more

               

              [INFO] ------------------------------------------------------------------------

               

              [INFO] Total time: 2 minutes

               

              [INFO] Finished at: Thu Oct 07 18:06:13 IST 2010

               

              [INFO] Final Memory: 1M/4M

               

              [INFO] ------------------------------------------------------------------------

              • 4. Re: GateIn and SSO
                mposolda

                Hi,

                 

                you need to download latest released community version, which is 1.0.0-Beta02. So correct ZIP should be http://repository.jboss.org/maven2/org/gatein/sso/sso-packaging/1.0.0-Beta02/sso-packaging-1.0.0-Beta02.zip . Then you need to unzip it to some directory, which is referred as $GATEIN_SSO_HOME in rest of reference guide (more info in section  6.6.1.1. Prerequisites )

                 

                hope this helps,

                Marek

                • 5. Re: GateIn and SSO
                  mposolda

                  yes, this can be caused by proxy server. Look at http://maven.apache.org/guides/mini/guide-proxies.html maybe this can help you solve your problem.

                  • 6. Re: GateIn and SSO
                    namrata.hangal

                    Hi Marek,

                    Thanks for the reply!

                    I tried the steps mentioned on the link you posted, but am still facing the same issues!

                    • 7. Re: GateIn and SSO
                      namrata.hangal

                      Also, could you tell me where have you downloaded OpenSSO from? Am getting redirected to the enterprise edition which needs a contract with Sun!

                      • 8. Re: GateIn and SSO
                        mposolda

                        Hello,

                         

                        OpenSSO was open before but it's not the case now. You need to buy Sun/Oracle subscription if you want OpenSSO. But other SSO solutions (CAS, JOSSO, SPNEGO) are still free so you can try them if you want.

                        • 9. Re: GateIn and SSO
                          namrata.hangal

                          Hi Marek,

                          In the Reference Guide,

                          6.6.3.1.2. Modifying JOSSO server
                          1.  Copy the files from GATEIN_SSO_HOME/josso/plugin into the Tomcat directory
                               (JOSSO_HOME).

                           

                          What is meant by Tomcat directory (JOSSO_HOME)?

                          • 10. Re: GateIn and SSO
                            robdale

                            This is not accurate.  OpenSSO is still freely avaiable at Oracle but no longer developed there.  OpenSSO was forked as OpenAM by ForgeRockhttp://www.forgerock.com/openam.html

                            • 11. Re: GateIn and SSO
                              theute

                              Not 100% accurate bur result is very similar, Oracle closed the binaries. You can't just go ahead and download OpenSSO binaries as before, they removed the previously public binaries

                              We heard about ForgeRock, but so far I've seen people looking into other solutions instead (such as CAS). Users/Customers will tell if we need to support OpenAM.

                              • 12. Re: GateIn and SSO
                                namrata.hangal

                                Agree with Thomas!

                                 

                                Anyway, could someone please help me out with my issue?

                                • 13. Re: GateIn and SSO
                                  theute

                                  JOSSO_HOME refers to the Tomcat installation where you installed the Josso Gateway (http://www.josso.org/confluence/display/JOSSO1/Quick+Start#QuickStart-InstallingtheGateway%28IdP%29 )

                                  • 14. Re: GateIn and SSO
                                    zarathos

                                    Thomas,

                                     

                                    I really need your assistance on how to get the user's original password in my own custom LoginModule (UAASLoginModule), which I am extending from DefaultLoginModule.  I am implementing this as the 3rd LoginModule in the chain, above the JbossLoginModule. We need to be able to support multiple LoginModules, including the standard GateIn modules.

                                     

                                    I have even tried:

                                    callbacks[1] = new PasswordCallback("Password", true);  // so that it would echo the original text

                                    ...

                                    String password = new String(((PasswordCallback) callbacks[1]).getPassword());
                                    log.debug("***--- paas: " + password);  // prints ***--- paas: rememberme########

                                    ...

                                     

                                    I've tried:

                                         - using the pulling payload from TransientTokenService (just trying, always null)

                                         - using the pulling payload from CookieTokenService (just trying, always null)

                                         - Pulling InitiateLoginServlet.CREDENTIALS from request.session (request is null)

                                         -  credentials = new Credential[] {
                                                new UsernameCredential(username),  // where username = ((NameCallback) callbacks[0]).getName(); 
                                                new PasswordCredential(password)   // where password = new String(((PasswordCallback) callbacks[1]).getPassword())
                                            };

                                    and in all cases the password being sent to my custom authenticator (UAASAuthenticator) is some rememberme#######

                                     

                                    I know that I am doing something, probably simple, wrong..

                                     

                                    I have been struggleing with this since early last week without any luck.  You help would be greatly appreciated.

                                     

                                    I have attached my custom LoginModule and Authenticator, if that helps..

                                     

                                    Thanks..

                                     

                                    James

                                     

                                    Message was edited by: James Bragg -- Removed UAASAuthenticator.java file

                                    1 2 Previous Next