An open API service indexing awesome lists of open source software.

https://github.com/mebohq/example-auth

BasicAuth example using passport
https://github.com/mebohq/example-auth

auth example expressjs mebo passport

Last synced: 2 months ago
JSON representation

BasicAuth example using passport

Awesome Lists containing this project

README

          



## Example about running an action through the auth support
Running example:
```
git clone https://github.com/meboHQ/example-auth.git
cd example-auth
npm install
NODE_ENV=development node .
```

## Requirements
- Node 8 or greater
- Express 4 or greater

## Action
Authentication using basic-auth strategy
`GET: http://localhost:8080/api/sum?a=1&b=2`

![postman](./data/postman.png)
*running on [postman](https://www.getpostman.com)*

## Licensing
Mebo is free software; you can redistribute it and/or modify it under the terms of the MIT License