Details

      Description

      Steps to reproduce:
      1, Deploy cas-web
      2, Go to Control Panel -> Portal Settings -> Authentication, set authenticate: "By Screen Name"
      3, Go to Control Panel -> Portal Settings -> Authentication -> CAS
      4, Enable CAS
      5, Login URL: http://localhost:8080/cas-web/login
      6, Logout URL: http://localhost:8080/cas-web/logout
      7, Server Name: localhost:8080
      8, Server URL: http://localhost:8080/cas-web
      9, Service URL: http://localhost:8080/c/portal/login
      10, Save

      Expected result: Configuration is saved
      Actual result: There is an error stating we cannot use together both server URL and service URL

      Before fix (wrong behavior):
      11, So now clear Server URL to save the configuration
      12, Save the configuration
      13, Log out, click Sign in
      14, Browser is redirected to the CAS login, enter credentials: test:test
      15, Browser is redirected to http://localhost:8080/c/portal/login?ticket=.... with following error in the log:

      org.jasig.cas.client.validation.TicketValidationException: java.net.MalformedURLException: no protocol: /proxyValidate?&redirectAfterValidation=false&ticket=ST-4-sNtXZhtfl7Vk5TlIQbLX-localhost&service=http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin&casServerUrlPrefix=&serverName=localhost:8080&casServerLoginUrl=http://localhost:8080/cas-web/login

      After the fix (correct behavior):
      11, Both Server URL and Service URL are set and CAS configuration is saved
      12, Log out and click on Sign in
      13, Browser is redirected to the CAS login, enter credentials: test:test
      14, Browser is redirected to http://localhost:8080/c/portal/login?ticket=.... and then to the portal, user is successfully authenticated

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              tomas.polesovsky Tomáš Polešovský
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 5 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M3