Перейти к файлу
Akshay Kumar d1e8d013c5
Merge pull request #7 from MicrosoftEdge/dependabot/npm_and_yarn/mongoose-5.7.5
Bump mongoose from 5.2.3 to 5.7.5
2019-12-05 08:55:19 -08:00
public New: Update `webauthnsample` to use ES6 2019-01-17 12:36:46 -08:00
.gitignore initial commit 2018-07-13 16:12:32 -07:00
LICENSE.md initial commit 2018-07-13 16:12:32 -07:00
README.md Fix: Add CoC 2018-07-17 15:06:40 -07:00
app.js New: Update `webauthnsample` to use ES6 2019-01-17 12:36:46 -08:00
fido.js New: Update `webauthnsample` to use ES6 2019-01-17 12:36:46 -08:00
package-lock.json Bump mongoose from 5.2.3 to 5.7.5 2019-10-30 06:56:21 +00:00
package.json Bump mongoose from 5.2.3 to 5.7.5 2019-10-30 06:56:21 +00:00
storage.js New: Update `webauthnsample` to use ES6 2019-01-17 12:36:46 -08:00

README.md

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 opencode@microsoft.com with any additional questions or comments.