Giter Club home page Giter Club logo

aspnetcore_multitenantwebapp's Introduction

ASP.NET Core 2.0 Multi-Tenant WebApp

The ASP.NET Core 2.0 Multi-Tenant WebApp shows how to implement a Multi-Tenant Webb Application that uses a Web Api. Both applications are secured by Azure Active Directory. The WebApp starts with a Welcome Page that allows the user either to signin or to signup and onboard the Application in his AAD Tenant.

Setup

The Application can be setup using the Powershellscript 'Deploy-Application.ps1'. The script registers both Applications in your AAD Tenant as Multi-Tenant Application. The script needs only four parameters:

The script returns an object that contains the Application's ClientIds, ClientSecrets and the WebApi Uri. You have to put these values in the appsettings.json file of the Web-Application and Web-Api.

OnBoarding

After calling the script you can use another AAD Tenant to test the OnBoarding process. The user can agree to the required Application permissions.

Authentication Cookies

The Web-Application's Authentication Cookies are stored in a in memory Session store to keep the Cookies small.

Token Caching

The Web-Application uses a in memory Token Cache.

IIS Express Ports

The Application is configured to use IIS Express. The Web Application uses IIS Express on port 44377

Deployment to Azure

Not supported at the moment.

Removing the Application in your AAD Tenant

To remove the Application from your AAD Tenant just call the Remove-Application.ps1 script and specify the Web-Applications's ClientId and the Web-Api's ClientId.

Links

https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-devhowto-multi-tenant-overview

aspnetcore_multitenantwebapp's People

Contributors

andreasm009 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

erjosito

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.