We had requirement to handle multiple applications via our web application for multiple users as SSO login.
For that, specific organization(our customers) admins add multiple applications specific to their organizations like intranet, support, etc., into our web application.
All the applications which we register in our web application has to be added as "Trust Relationships" in SAML section of Gluu-server. For which we require APIs.