Azure-Samples / active-directory-dotnet-webapp-webapi-multitenant-openidconnect

A sample .NET 4.5 MVC SaaS web app that signs-up and signs-in users from any Azure AD tenant, and calls the Azure AD Graph API.
66 stars 45 forks source link

Can call seperate API App, not the graph Api ? #28

Closed AliBazzi closed 5 years ago

AliBazzi commented 8 years ago

can the sample call real separate Api App that supports Multi-Tenancy, I am reading this example and comparing it with this example that cover Web App to Api Call, but single-tenant https://github.com/Azure-Samples/active-directory-dotnet-webapp-webapi-openidconnect I can't figure out how to configure a web app to consent to access multi-tenant Api, an Api that is Not Graph Api.

vibronet commented 8 years ago

You can refer to https://azure.microsoft.com/en-us/documentation/samples/active-directory-dotnet-webapi-multitenant-windows-store/ - it shows how to implement a multitenant API. You just need to substitute the sample client (a store app) with a web app client. There are no changes on the API side.

gadhiya-nilesh commented 8 years ago

As you mentioned, we just need to substitute the sample client (a store app) with a web app client. But in that case, do we need to sign up every tenant in web app as well as in web api?

gadhiya-nilesh commented 8 years ago

Hi, Can you please give me that sample code? Multi-tenant web app to multi-tenant web api sample

kalyankrishna1 commented 5 years ago

This one has one example of calling a custom Api (https://github.com/Azure-Samples/active-directory-dotnet-daemon)