Step 1 – Create the CSD

In PassPort the resources and actions offered by client applications are described by their Component Security Descriptor (CSD). This is an XML file. For more information on CSD files, see the Axway PassPort Administrator Guide.

In this scenario the resource is the /batcave and the actions are the supported HTTP verbs GET, POST, and DELETE. In this case the CSD might look like:

<?xml version="1.0" encoding="UTF-8"?>
<AMImport CSDVersion="1" 
        ComponentGroup="Gotham City" ComponentName="Lairs" ComponentVersion="1.0.0" 
        ImportProtocolVersion="1.0.0" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:noNamespaceSchemaLocation="importation.xsd">
        
    <ResourceDefinition>

        <Resource name="/batcave">
            <Description>
                <Content content="Used by: Lairs" lang="en"/>
            </Description>
            <AvailableActions>

                <AvailableAction>
                    <Action name="DELETE"/>
                    <Description>
                        <Content content="HTTP DELETE" lang="en"/>
                    </Description>
                </AvailableAction>                

                <AvailableAction>
                    <Action name="POST"/>
                    <Description>
                        <Content content="HTTP POST" lang="en"/>
                    </Description>
                </AvailableAction>                

                <AvailableAction>
                    <Action name="GET"/>
                    <Description>
                        <Content content="HTTP GET" lang="en"/>
                    </Description>
                </AvailableAction>                

            </AvailableActions>
        </Resource>

    </ResourceDefinition>
</AMImport>
Tip   A script is available in the following location in your API Gateway installation, which can generate a CSD based on the current configuration of API Gateway:
INSTALL_DIR/scripts/passport/generateCSD.py

Related Links