Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/keyang/rhmap-auth


https://github.com/keyang/rhmap-auth

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

#RHMAP-AUTH
A library to validate RHMAP platform credentials. The lib is used in RHMAP cloud node.js app to check if credentials are in RHMAP platform.

##Installation

```
npm install rhmap-auth --save
```

##Usage

```js
var rhmapAuth=require("rhmap-auth");
rhmapAuth(username,password,function(err,isValid){
if (err){
//error handler
}else{
if (isValid === true){ //user is valid

}else{ // user is not valid

}
}
});
```