This documentation is for WSO2 API Manager 2.1.0 View documentation for the latest release.
Sharing Applications and Subscriptions - API Manager 2.1.0 - WSO2 Documentation
||
Skip to end of metadata
Go to start of metadata

The API Manager provides the facility to users of a specific logical group, such as an organization, to view each others' applications and subscriptions.  

By default, the API Manager considers the organization name that you give at the time you sign up to the API Store, as the group ID. It extracts the claim http://wso2.org/claims/organization of a user and uses the value specified in it as the group ID. This way, all users who specify the same organization name belong to the same group, and therefore, can view each others' subscriptions and applications. The API Manager also provides the flexibility to change this default authentication implementation.

The steps below explain how to share applications and subscriptions.

  1. Uncomment the <GroupingExtractor> element in the <API-M_HOME>/repository/conf/api-manager.xml file.

    <GroupingExtractor>org.wso2.carbon.apimgt.impl.DefaultGroupIDExtractorImpl</GroupingExtractor>

    This default extractor doesn't work with SAML SSO. If you are using SAML SSO, skip step 1 above and follow the steps given below instead.

     Click here to view the steps to configure sharing subscriptions when using SSO.
    1. Configure SSO with SAML2. Make sure you select the Enable Attribute Profile and Include Attributes in the Response Always check boxes when configuring the Store and Publisher service providers in WSO2 Identity Server. This passes the organization claim value in SAML Response.
    2. Download this custom group extractor project and build it. 
    3. Copy the jar in the /target folder to the <API-M_HOME>/repository/components/lib directory.
    4.  Enable the <GroupingExtractor> element in the <API-M_HOME>/repository/conf/api-manager.xml file and set the extractor as org.wso2.sample.gropuid.impl.WSO2ISGroupIdExtractor
    5. Start the Identity Server server.
    6. Configure the http://wso2.org/claims/organization claim in the Store/Publisher service providers in Identity Server, as shown below.
    7. Continue with the steps provided below.
  2. Start WSO2 API Manager and click Sign-up.
  3. Sign up to the API store as two different users (User1 and User2) with the same organization name.
    Example:
  4. Sign in as User1, create a new application (e.g., TestApp1) and subscribe to an API using the new application. 
  5. Sign out of the API Store and sign back in as User2.
    Go to the Applications page and note that the previous user's subscription is listed under Subscriptions for the application that the previous user created (e.g., TestApp1). 
  • No labels