Code Monkey home page Code Monkey logo

dotvvm-samples-azuread-auth's Introduction

Azure Active Directory Authentication Sample for DotVVM

This is a sample app featuring the Azure Active Directory authentication sample for DotVVM.

Instructions

  1. Sign in to the Azure Portal and open (or create) your Azure Active Directory resource.

  2. Open the Properties tab and copy the Directory ID value. Paste it in the ida:TenantId application setting in the web.config file.

  3. Open the App registrations tab and open (or create) the app registration.

  4. Copy the Application ID value and paste it in the ida:ClientId application setting in the web.config file.

  5. Make sure that the URL on which the web app is running, is listed in the Home Page field or in the Reply URLs section. The URL must match including the HTTP/HTTPS and port.

Now the application should work with all accounts from the directory.

Multi-Tenancy

If you want to make the application multi-tenant (to allow the users to sign in even if they are from a different Azure Active Directory tenant), you need to make these changes:

  1. In the Properties tab of the App Registration, switch the Multi-tenanted field to Yes.

  2. In the web.config, change the ida:TenantId to the value common.


We are still working on the ASP.NET Core version of this sample. The principles are the same, however there are some issues with the Open ID Connect library.

dotvvm-samples-azuread-auth's People

Contributors

tomasherceg avatar

Watchers

James Cloos avatar

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.