Coder Social home page Coder Social logo

zkavtaskin / multitenancy-microservice-federatedidentity-example Goto Github PK

View Code? Open in Web Editor NEW
36.0 8.0 22.0 1.72 MB

Multitenancy Federated Identity Example ASP.NET MVC C#

License: GNU General Public License v3.0

C# 35.07% HTML 9.91% CSS 27.62% ASP 0.01% JavaScript 24.73% TSQL 2.66%
multitenancy microservice federated-identity asp-net-mvc csharp owin owin-middleware sso openid-connect

multitenancy-microservice-federatedidentity-example's Introduction

Multitenancy and Federated Identity example

Alt text

Repository objective: To supplement blog articles on multitenancy, microservices and federated identity (see below), and to create easy to follow code repository that makes sense (if it still makes no sense then please do let me know).

Please do note that this repository currently does not contain microservice examples just yet, right now it covers multitenancy and federated identity. Please use this for theoretical / educational purposes only.

Articles

ASP.NET MVC Multitenancy - Introduction & Architecture Overview

ASP.NET MVC Multitenancy, Part 0 - Subdomain VS URL Path

ASP.NET MVC Multitenancy, Part 1 - Routing with OWIN

ASP.NET MVC Multitenancy, Part 2 - OpenID Connect authentication

ASP.NET MVC Multitenancy, Part 3 - NHibernate Tenant Data Filtering and Shared Database

ASP.NET MVC Multitenancy, Part 4 - Authorisation

WROC# Conference Recording - Developing multi-tenant SaaS business applications on Azure

Basic SaaS conversion guide, migrate your application to the Azure Cloud

alt text

Setup Instructions

Step 1 - Create SQL Server

Step 2 - Run baseline.sql

alt text

This will create stoptheline database in your SQL server.

Step 3 - Update Web.config connection string

alt text

Step 4 - Run the web project

Step 5 - Create authentication keys

To use this project you will need authenticate using Open ID Connect protocol. To do this you can use Google, Azure AD, etc.

I am going to use Google to keep things simple, you will need to setup Auth 2.0 credentials, this Google page explains how you can do this.

Once you are done you should see something like this: alt text

alt text

Fill everything in use the client id that Google has given you when you have created your auth 2.0 credentials. For authority just use https://accounts.google.com

Before you press "create account", please whitelist your URL, how do you know what your URL is? You get a preview:

alt text

Now that you know what it is go to your Google web application credential account and add your URL to the "Authorized redirect URIs":

alt text

Press "create account".

If you don't do this, when you will press "create account" you will get a screen that will look like this:

alt text

Step 7 - Sign Up

alt text

Step 8 - You are in, just use the app

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.