Coder Social home page Coder Social logo

webauthnsample's Introduction

About this sample app

This is a simple NodeJS app that demonstrates the Web Authentication APIs.

You can see a live version at https://webauthnsample.azurewebsites.net

Deploying a local instance

  1. Download and install NodeJS 8.9 or newer
  2. Download and install VS Code
  3. Download and install MongoDB Community
  4. Clone this repository
  5. Open this repository in VS Code
  6. Run npm install in the root directory
  7. Launch program - configurations should already be set
  8. In Edge, navigate to localhost:3000

Deploying to Azure

First, in Azure Portal:

  • Create an app services web instance
  • Create a Cosmos DB instance with API set to mongodb

Before deploying, you'll need to define the following environment variables inside app services application settings so they can be accessed by this NodeJS app at runtime:

  • MONGODB_URL - connection URL to your mongodb. Get it from Cosmos DB settings. Pick the latest Node.js 3.0 connection string under Quick Start.
  • JWT_SECRET - some long random string
  • HOSTNAME - hostname of your deployed service (e.g. "webauthnsample.azurewebsites.net")
  • ENFORCE_SSL_AZURE - set to "true"
  • WEBSITE_NODE_DEFAULT_VERSION - set to "8.9.4" or newer

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

webauthnsample's People

Contributors

akshayku avatar dependabot[bot] avatar idamlaj avatar iiic avatar mkkhedawat avatar molant 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.