Building(a(Server(Appliance(with(Node.js(...

Preview:

Citation preview

Building  a  Server  Appliance  with  Node.js    

Auth0  

Eugenio  Pace  –  eugeniop@auth0.com    @authzero      @eugenio_pace  

Apps Authentication System

OAuth  1,  2  OpenId  Connect  SAML  2.0  WS-­‐FederaEon  WS-­‐Trust    SAML  JWT  SWT    

SSO Directory Log Audit

SSO Directory Log Audit

Setup SDK Run Anywhere

Demo!

7  

VM  (Linux  /  Windows)  

VM Host / HW Public Cloud Hosting

Authorization Server

node.js

Control Panel

Serv

ice

Man

agem

ent

API Docs

Mongo

Authorization Server

node.js

Control Panel API Docs

hPp://upstart.ubuntu.com/    

Considering…

•  forever  à    hPps://github.com/nodejitsu/forever    

11  

Authorization Server

node.js

Control Panel API Docs

nginx

hPps://app.myauth0.com  

localhost:9000   localhost:5000  

Authorization Server

node.js

nginx

hPps://ad.myauth0.com  

Apache AD  

Considering…

• node-­‐hPp-­‐proxy      à  hPps://github.com/nodejitsu/node-­‐hPp-­‐proxy    • haproxy    

15  

Ge@ng  the  bits

1.  sudo  apt-­‐get  install  puppetmaster  

2.  wget  https://builds.auth0.com/{build}  

3.  sudo  puppet  apply  -­‐-­‐modulepath=modules  -­‐e  "include  run”  

4.  MyAuth0!    

1. Generally  well  documented  2. Good  support  hPps://puppetlabs.com/    

3. Minimize  content  in  you  package  4. Leverage  install  tools  (apt,  npm)      

Considering…

•  chef  à  hPp://www.opscode.com/chef/  

18  

On  node

• TransacEons  • Malleability  • No  wheel  reinvenEng  

• Service  and  Server  • Any  cloud  

20  

Thanks! eugeniop@auth0.com    

21