NAR/CRT OAUTH2 server for webAPI


We managed to get the NAR/CRT OAUTH2 server booted and able to serve some pages.

image

On Windows these were the steps we took:

1) we created a node web application (microsoft model, for easy azure hosting)

image

2) on the npm line, we right clicked to add a node package, using the package manager who we primed to search on reso-

image

3) per instructions, we copied config files and directory from the samples directory to the root

image

4) we amended the default server.js file

image

and started the mongodb server

 

we see

image

 

image

the config file was changed, form the original, to turn off ssl/encrypted-traffic

 

{
  “port” : 1340,
  “security”: {
    “tokenLife” : 3600
  },
  “mongoose”: {
    “uri”: “mongodb://localhost/oauth”
  },
  “domain”: “localhost”,
  “entry_point”: “index.html”,
  “encrypted_traffic”: false,
  “certificate”: “./ssl/server.crt”,
  “key”: “./ssl/server.key”
}

we see that various collections of objects are present in in the mongodb, now.

image

Advertisements

About home_pw@msn.com

Computer Programmer who often does network administration with focus on security servers. Very strong in Microsoft Azure cloud!
This entry was posted in odata. Bookmark the permalink.