Skip to end of metadata
Go to start of metadata

In the internal gateway Service providers can subscribe to published apis created by the gateway admin/publishers.

Internal gateway consists of 2 types of approval work flows namely Internal Gateway Type 1 and Internal Gateway Type 2.

Both types involve the following approval work flows.

  1. Application approval work flow
  2. Subscription approval work flow

Internal gateway Type 1 differs from Type 2 , based on the subscription approval work flow.

Type 1 : Subscription should be approved by the following parties in the given sequence.

    • Gateway Admin
    • An API Publisher user from the API Publisher group

Type 2 : Subscription should only be approved by the following party.

    •  An API Publisher user from the API Publisher group

Approval work flow common configurations

Carbon Server Configurations

  1. Open <CARBON_HOME>/bin/wso2server.sh and change the deployment type parameter depending on the workflow type to be enabled and save.
              Internal gateway Type 1 :

                           -DDEPLOYMENT_TYPE=internal_gateway_type1 \
              Internal gateway Type 2 :                      

                          -DDEPLOYMENT_TYPE=internal_gateway_type2 \

  2.  Run the wso2server.sh or wso2server.bat as appropriate

  3. API Publisher web application is running at http://localhost:9763/publisher. You may login to the Publisher using the default administrator credentials (user: admin, pass: admin).

  4. API Store web application is running at http://localhost:9763/store. You may login to the Store using the default administrator credentials (user: admin, pass: admin).

  5. API Manage web application is running at http://localhost:9763/manage-service. You may login to the Store using the default administrator credentials (user: admin, pass: admin).

Activiti Engine configurations

  1. Once the server is started navigate to https://localhost:9443/activiti-explorer/ and load the Activity explorer.
  2. Login to the activiti explorer.
    Note: The activit engine contains 1 user account as admin (password of each account is the same as its username). It is mandatory to disable or change the default password in the production environment.
  3. Navigate to Manage > deployments >upload new and upload the following files  located at '<CARBON_HOME>/repository/resources/workflow/
                        ApplicationCreationApprovalWorkflow.br
                        SubscriptionCreationApprovalWorkflow.bar

User and User Role Creation

  1. Role names should reflect the business unit. Therefore create a publisher user role with the user name in the following format using the instructions here.
    hub-<Business_unit_name>-publisher
             eg : hub-unitA-publisher
    Specify only the 'creator' and 'publisher' permission for the role.
  2. Follow the instructions here and
            Create users by the following names
                        publisher1
                        publisher2
                        publisher3
            Assign the following roles to all above created users  
                        Above created publisher role
    manage-app-admin
    Note: manage-app-admin role exists on the server by default, and it is required for the API publisher user to be able to log in to https://localhost:9443/manage application, to approve work flow tasks.
    A publishing user MUST HAVE ONE of the roles (ONLY ONE ROLE) created in Step 1.
  3. Load https://localhost:9443/store and Sign up a new subscriber user with the user name subscriber1.
  4. Update the user profile of all 4 users with valid email addresses.

 

Manage app deployment

Refer Manage app 2.0 deployment


                                                                                     

 

                                                       

  • No labels