Code Monkey home page Code Monkey logo

arclockaspnetcoremvc's Introduction

Introduction

This project demonstrates one of the implementation of a web app for using smart lock by a large number of people.

"SwitchBot Lock" (https://www.switchbot.jp/products/switchbot-lock) is used for a smart lock device which provides nice and rich API access for IoT hobbyists (https://github.com/OpenWonderLabs/SwitchBotAPI).

ASP.NET Core MVC is used for a framework of the app and it can be hosted to your preferred cloud service such as Azure Web Apps.

Demo

First check the demo shown below that tells what the web app does.

(click โ–ถ to play)

lockmovie

Problem to be solved

SwitchBot is basically controlled by iOS and Android app, and they work perfectly in most of the cases. However, as the product is mainly targeted for home use, sharing devices with a large number of people is not considered well. As there is a feature called "Home Sharing" in SwitchBot, you can easily invite members you want to grant access to a device like SwitchBot Lock. But if you are going to use in SOHO or small enterprise like 10-50 people, it is time-consuming for both administrator and user to insall dedicated app just only to unlock a door.

Add AzureAD authentication

ASP.NET Core provides the way to integrate AzureAD to a web application that enables users to sign in using OAuth 2.0 with credentials from Azure Active Directory. Please check Azure Active Directory with ASP.NET Core to learn more. Using AzureAD for authentication method and by adding [Authorize] prefix to controller of pages you want to control, those who in an organization can access to the company web page for office unlock.

arclockaspnetcoremvc's People

Contributors

nakatahr avatar

Stargazers

 avatar

Watchers

 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.