Wednesday, June 10, 2015

Application / Subscription Sharing in WSO2 API Manager 1.9

How it works


This feature enables the users in the same organization (group) to share the applications and subscriptions. All the applications and subscriptions created by a user in an organization, are visible to the other users in the same organisation.

How does API Manager know the organization of a user ?


WSO2 API Manager Store and Publisher web apps support more than one authentication mechanism. e.g. Authentication via Carbon user stores, SAML based SSO.

As a result, the way the organization of a user should be determined accordingly.

API Manager is shipped with a default implementation for the default authentication mechanism, and API Manager has the flexibility to plug-in a different implementation. 

This article explains how application / subscription sharing can be done with the default implementation.

Enabling application / subscription sharing


Uncomment the following line in APIM_HOME/repository/conf/api-manager.xml
<GroupingExtractor>org.wso2.carbon.apimgt.impl.DefaultGroupIDExtractorImpl</GroupingExtractor>

Use case


1) A user and give his/her organization during the signing up process. ( See Fig. 1).
user_a and user_b belongs to org_1



Fig. 1


2) Then the user create a new application. (See Fig. 2)
    user_a creates app_a.


Fig. 2


3) Since user_b also belongs to org_1 he can see the application which user_a created. ( See    Fig. 3)

Fig. 3



4) user_a subscribes to WeatherAPI (See Fig. 4)

Fig. 4



5) Since user_b also belongs to org_1 he can see the subscription to WeatherAPI.
( See Fig. 5)


Fig. 5





No comments:

Post a Comment