Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/microsoftedge/webauthnsample
https://github.com/microsoftedge/webauthnsample
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/microsoftedge/webauthnsample
- Owner: MicrosoftEdge
- License: other
- Created: 2018-07-17T20:48:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T22:56:37.000Z (over 1 year ago)
- Last Synced: 2024-04-14T04:00:00.743Z (9 months ago)
- Language: JavaScript
- Size: 275 KB
- Stars: 84
- Watchers: 9
- Forks: 25
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](https://nodejs.org/en/)
2. Download and install [VS Code](https://code.visualstudio.com/)
3. Download and install [MongoDB Community](https://www.mongodb.com/download-center#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 mongodbBefore 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](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.