what i did:

1-build the below cas-management-webapp/pom.xml file using the *mvn clean 
package* command:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd ">
    <modelVersion>4.0.0</modelVersion>
    <groupId>net.unicon</groupId>
    <artifactId>cas4-svc-mgmt-overlay</artifactId>
    <packaging>war</packaging>
    <version>1.0</version>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <warName>cas-services</warName>
                    <overlays>
                        <overlay>
                            <groupId>org.jasig.cas</groupId>
                            <artifactId>cas-management-webapp</artifactId>
                        </overlay>
                    </overlays>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.3</version>
                <configuration>
                    <source>${maven.compiler.source}</source>
                    <target>${maven.compiler.target}</target>
                </configuration>
            </plugin>

            <plugin>
                 <groupId>com.rimerosolutions.maven.plugins</groupId>
                 <artifactId>wrapper-maven-plugin</artifactId>
                 <version>0.0.4</version>
            </plugin>

        </plugins>
        <finalName>cas-services</finalName>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.jasig.cas</groupId>
            <artifactId>cas-management-webapp</artifactId>
            <version>${cas.version}</version>
            <type>war</type>
            <scope>runtime</scope>
        </dependency>
    </dependencies>

    <properties>
        <cas.version>4.2.1</cas.version>
        <maven.compiler.source>1.7</maven.compiler.source>
        <maven.compiler.target>1.7</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
</project>

2- deploy *cas-services.war* to Tomcat
3- in the Tomcat Manager WebApp there is a /cas-services link. clicking on 
it says "*Application Not Authorized to use CAS*", also it's http not 
https. so i should add cas-services as a service, to cas.
4- the /webapps/*cas-services*/WEB-INF/classes/services directory has a 
file which is missing inside the /webapps/*cas*/WEB-INF/classes/services 
directory, the rest is the same. the name of this file is 
*ServicesManagementWebApplication-52497044623301.json* , i copied it so now 
cas/..../services directory contains this json too.(why there is two 
services directories?)
5- the /webapps/*cas*/WEB-INF/classes/services/
*ServicesManagementWebApplication-52497044623301.json* file now contains 
this content:

{
  "@class" : "org.jasig.cas.services.RegexRegisteredService",
  "serviceId" : "http://localhost:8080/cas-management/callback";,
  "name" : "Services Management Web Application",
  "id" : 52497044623301,
  "description" : "Services Management Web Application",
  "proxyPolicy" : {
    "@class" : "org.jasig.cas.services.RefuseRegisteredServiceProxyPolicy"
  },
  "evaluationOrder" : 2,
  "usernameAttributeProvider" : {
    "@class" : 
"org.jasig.cas.services.DefaultRegisteredServiceUsernameProvider"
  },
  "logoutType" : "BACK_CHANNEL",
  "attributeReleasePolicy" : {
    "@class" : "org.jasig.cas.services.ReturnAllowedAttributeReleasePolicy",
    "principalAttributesRepository" : {
      "@class" : 
"org.jasig.cas.authentication.principal.DefaultPrincipalAttributesRepository"
    },
    "authorizedToReleaseCredentialPassword" : false,
    "authorizedToReleaseProxyGrantingTicket" : false
  },
  "accessStrategy" : {
    "@class" : 
"org.jasig.cas.services.DefaultRegisteredServiceAccessStrategy",
    "enabled" : true,
    "ssoEnabled" : true
  }
}

i changed the value of *serviceId* from this

"serviceId" : "http://localhost:8080/cas-management/callback";
to this
"serviceId" : "https://localhost8443/cas-management/callback.*";
so it uses the https protocol, it's port is 8443 and also it accepts urls 
that have characters after the 'callback' word.

6- now i go to https:localhost:8443/cas-services , it redirects me to the 
cas login page.
7- after i login, although the logs says *AUTHENTICATION_SUCCESS*,  
*TICKET_GRANTING_TICKET_CREATED* and *SERVICE_TICKET_CREATED* but after cas 
redirects me to
https://localhost:8443/cas-management/callback?client_name=CasClient&ticket=ST-4-U9f3KcWa6llcVbe3mCiV-cas01.example.org
 
<https://github.com/asedsami/cas-management-404/blob/master>
i see a 404 page which says:

HTTP Status 404 - /cas-management/callback
------------------------------

*type* Status report

*message* */cas-management/callback*

*description* *The requested resource is not available.*
and 

is there documentation related to this i missed? did i do something wrong?
thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/976edbea-969e-4b8a-a66e-65f04022857b%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to