Post

1 follower Follow
0
Avatar

Custom Tenant Dashboard Extension

Hi,

Whenever a Tenant user login to the Apprenda, instead of showing default Apprenda dashboard, We need to show our custom application which contains custom dashboard. Could I know how to do this. Note that tenant will not subscribe to the dashboard application. We have looked into Extension Samples but not sure how to implement the same?

Regards,

Chandru. BK

Chandru B.K.

Please sign in to leave a comment.

5 comments

0
Avatar

Hi Bernie,

Thanks for the information. However, this will not solve my requirement.

Let me brief my requirement:

  1. I need to develop a small dashboard application which will be shown to all the tenants whenever he logs in. (Instead of showing Apprenda dashboard)

  2. The dashboard will have list of all the application which he has subscribed along with other custom content and look & feel. On click of the application link, it should open the respective application as currently available in Apprenda dashboard.

  3. The tenant will not aware and not subscribe to my Dashboard application.

The Approach I have tried:

  1. Created a small dashboard application as attached with this email for your reference.

  2. As suggested earlier by you, I have used the “UserContext.Instance.CurrentUser.GetSubscriptions()” get the subscribed applications.

  3. In order to avoid tenant subscribing to the dashboard application, I have deployed the same with “Authentication” mode. When I run this app, it not gives any information on Subscriptions.

  4. The next option I have tried is deployed the same with “Authorization” mode and it displays list of all the subscribed application but it requires tenant subscription or need to assign this app to particular user.

  5. If I override “@Citadel.Login.ForwardUrlOverride” to the dashboard application link, on tenant login, it displays access denied error.

Can you please suggest me the recommended approach to do the same?

Regards,

Chandru. BK

Bernie Herdan 0 votes
0
Avatar

Hi Chandru,

The first approach was in the right track, however using 'UserContext' to retrieve subscriptions would only return the list of subscriptions that the current user is subscribed to. In order to achieve what you are trying to do at a tenant-level, you should use the TenantContext to retrieve all the Subscription Groups, and then query them for the Subscriptions within each group. ( http://docs.apprenda.com/api/interface_apprenda_1_1_saa_s_grid_1_1_i_tenant_subscription_group.html)

The reason why you are getting 'Access Denied' is because you are attempting to use an application with 'Authorization' without having purchased a subscription for it. Deploying the application under 'Authentication' and querying against the Tenant Context should provide you with the information you need.

From what I gather, you are attempting to create your own version of the Account Portal. This use case might be solved with more ease by using our REST API, which will be released in the coming weeks.

Best,

Bernie

Bernie Herdan 0 votes
0
Avatar

Hi,

 I have tried my sample by deploying with “Authentication” mode by using TenantContext but still getting Forbidden error as attached in the Error.txt file. I have put my latest code for your reference.

 Note that now I’m using Apprenda 4.5.  As suggested earlier, can you please share some information on how to achieve the same using Apprenda 4.5 REST API?

Regards,

Chandru. BK

Chandru B.K. 0 votes
0
Avatar

Hi Chandru,

I am moving this question to our private forums to better discuss your implementation. You should receive an email from me shortly.

Best,

Bernie

Bernie Herdan 0 votes