├── .gitignore ├── LICENSE ├── README.md ├── app1.com ├── README.md ├── app.css ├── app.js ├── auth0_logo_final_blue_RGB.png └── index.html ├── app2.com ├── README.md ├── app.css ├── app.js ├── auth0_logo_final_blue_RGB.png └── index.html ├── app3.com ├── .env ├── Procfile ├── README.md ├── config.js ├── package-lock.json ├── package.json ├── public │ ├── app.css │ └── auth0_logo_final_blue_RGB.png ├── routes │ ├── auth0-callback.js │ ├── home.js │ ├── middlewares │ │ └── login.js │ ├── sso.js │ └── user.js ├── server.js └── views │ └── user.html └── metadata.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # Compiled binary addons (http://nodejs.org/api/addons.html) 20 | build/Release 21 | 22 | # Dependency directory 23 | # Commenting this out is preferred by some people, see 24 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- 25 | node_modules 26 | 27 | # Users Environment Variables 28 | .lock-wscript 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Auth0, Inc. (http://auth0.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SSO sample 2 | 3 | This is the example for the [SSO article](https://docs.auth0.com/sso/single-sign-on). In here, you'll see how to implement SSO between Single Page Apps and Regular Web Apps using Auth0. 4 | 5 | ## Structure 6 | 7 | In this example, we have 3 applications: 8 | 9 | * app1.com (single page app) 10 | * app2.com (single page app) 11 | * app3.com (regular web app) 12 | 13 | Each application has its own folder in this repository with its own instructions on how to run it. 14 | 15 | ## Running 16 | 17 | In order to be able to test SSO correctly, each application must have its own domain. For that, you can edit your `/etc/hosts` and make app1.com, app2.com and app3.com all point to `127.0.0.1`. 18 | 19 | For that, open `/etc/hosts` and edits as follows: 20 | 21 | ```` 22 | ## 23 | # Host Database 24 | # 25 | # localhost is used to configure the loopback interface 26 | # when the system is booting. Do not change this entry. 27 | ## 28 | 127.0.0.1 localhost 29 | 255.255.255.255 broadcasthost 30 | ::1 localhost 31 | # ... 32 | 127.0.0.1 app1.com 33 | 127.0.0.1 app2.com 34 | 127.0.0.1 app3.com 35 | ```` 36 | 37 | Once that's done, just run all 3 applications (See specific instructions on each README) and go to [`app1.com:3000`](http://app1.com:3000) to start using the applications :). 38 | 39 | ## Learning 40 | 41 | To learn more about how this 3 apps work with SSO, please read the [SSO article](https://docs.auth0.com/sso/single-sign-on) from our docs. 42 | 43 | ## Issue Reporting 44 | 45 | If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues. 46 | 47 | ## Author 48 | 49 | [Auth0](auth0.com) 50 | 51 | ## License 52 | 53 | This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info. 54 | -------------------------------------------------------------------------------- /app1.com/README.md: -------------------------------------------------------------------------------- 1 | # app1.com 2 | 3 | This is the starting point for the SSO example. Remember to start all 3 apps to try everything out and to [configure `/etc/hosts` correctly](https://github.com/auth0/auth0-sso-sample#running) 4 | 5 | ## Running the example 6 | 7 | In order to run the example you need to just start a server. What we suggest is doing the following: 8 | 9 | 1. Install node 10 | 2. run `npm install -g serve` 11 | 3. run `serve -l 3000` in the directory of this project. 12 | 13 | Go to `http://app1.com:3000` and you'll see the app running :). 14 | -------------------------------------------------------------------------------- /app1.com/app.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: "proxima-nova", sans-serif; 3 | text-align: center; 4 | font-size: 300%; 5 | font-weight: 100; 6 | } 7 | input[type=checkbox], 8 | input[type=radio] { 9 | position: absolute; 10 | opacity: 0; 11 | } 12 | input[type=checkbox] + label, 13 | input[type=radio] + label { 14 | display: inline-block; 15 | } 16 | input[type=checkbox] + label:before, 17 | input[type=radio] + label:before { 18 | content: ""; 19 | display: inline-block; 20 | vertical-align: -0.2em; 21 | width: 1em; 22 | height: 1em; 23 | border: 0.15em solid #0074d9; 24 | border-radius: 0.2em; 25 | margin-right: 0.3em; 26 | background-color: white; 27 | } 28 | input[type=radio] + label:before { 29 | border-radius: 50%; 30 | } 31 | input[type=radio]:checked + label:before, 32 | input[type=checkbox]:checked + label:before { 33 | background-color: #0074d9; 34 | box-shadow: inset 0 0 0 0.15em white; 35 | } 36 | input[type=radio]:focus + label:before, 37 | input[type=checkbox]:focus + label:before { 38 | outline: 0; 39 | } 40 | .btn { 41 | font-size: 140%; 42 | text-transform: uppercase; 43 | letter-spacing: 1px; 44 | border: 0; 45 | background-color: #16214D; 46 | color: white; 47 | } 48 | .btn:hover { 49 | background-color: #44C7F4; 50 | } 51 | .btn:focus { 52 | outline: none !important; 53 | } 54 | .btn.btn-lg { 55 | padding: 20px 30px; 56 | } 57 | .btn:disabled { 58 | background-color: #333; 59 | color: #666; 60 | } 61 | h1, 62 | h2, 63 | h3 { 64 | font-weight: 100; 65 | } 66 | #logo img { 67 | width: 300px; 68 | margin-bottom: 60px; 69 | } 70 | .home-description { 71 | font-weight: 100; 72 | margin: 100px 0; 73 | } 74 | h2 { 75 | margin-top: 30px; 76 | margin-bottom: 40px; 77 | font-size: 200%; 78 | } 79 | label { 80 | font-size: 100%; 81 | font-weight: 300; 82 | } 83 | .btn-next { 84 | margin-top: 30px; 85 | } 86 | .answer { 87 | width: 70%; 88 | margin: auto; 89 | text-align: left; 90 | padding-left: 10%; 91 | margin-bottom: 20px; 92 | } 93 | .login-page .login-box { 94 | padding: 100px 0; 95 | } 96 | 97 | .url { 98 | display: none; 99 | } 100 | 101 | .bold { 102 | font-weight: bold; 103 | } 104 | -------------------------------------------------------------------------------- /app1.com/app.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | 3 | const AUTH0_CLIENT_ID = 'QLxSuRiYf0mkkzYp8qZgNq1tBkesd8Sq'; 4 | const AUTH0_DOMAIN = 'auth0pnp.auth0.com'; 5 | 6 | // hide the page in case there is an SSO session (to avoid flickering) 7 | document.body.style.display = 'none'; 8 | 9 | const webAuth = new auth0.WebAuth({ 10 | domain: AUTH0_DOMAIN, 11 | clientID: AUTH0_CLIENT_ID, 12 | audience: 'https://' + AUTH0_DOMAIN + '/userinfo', 13 | scope: 'openid profile', 14 | responseType: 'token id_token', 15 | redirectUri: 'http://app1.com:3000' 16 | }); 17 | 18 | var isAuthCallback = false; 19 | 20 | // Get the user token if we've saved it in localStorage before 21 | var idToken = localStorage.getItem('idToken'); 22 | if (idToken) { 23 | // This would go to a different route like 24 | // window.location.href = '#home'; 25 | // But in this case, we just hide and show things 26 | goToHomepage(getQueryParameter('targetUrl'), idToken); 27 | return; 28 | } else { 29 | // If user is not signed in, check if we have an SSO session 30 | webAuth.checkSession({ 31 | state: getQueryParameter('targetUrl') 32 | }, function(err, result) { 33 | if (err) { 34 | // If no SSO session was found, display the normal login 35 | document.body.style.display = 'inline'; 36 | } else { 37 | // If authentication via SSO was successful, then display the home page 38 | saveAuthResult(result); 39 | goToHomepage(result.state, result.idToken); 40 | } 41 | }) 42 | } 43 | 44 | // Showing Login 45 | $('.btn-login').click(function (e) { 46 | e.preventDefault(); 47 | webAuth.authorize(); 48 | }); 49 | 50 | function goToHomepage(state, token) { 51 | // Instead of redirect, we just show boxes 52 | document.body.style.display = 'inline'; 53 | $('.login-box').hide(); 54 | $('.logged-in-box').show(); 55 | var profile = jwt_decode(token); 56 | $('.name').text(profile.name); 57 | if (state) { 58 | $('.url').show(); 59 | $('.url span').text(state); 60 | } 61 | } 62 | 63 | function getQueryParameter(name) { 64 | name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); 65 | var regex = new RegExp("[\\?&]" + name + "=([^&]*)"), 66 | results = regex.exec(location.search); 67 | return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); 68 | } 69 | 70 | function saveAuthResult (result) { 71 | localStorage.setItem('idToken', result.idToken); 72 | localStorage.setItem('accessToken', result.accessToken); 73 | localStorage.setItem('expirationDate', Date.now() + Number.parseInt(result.expiresIn) * 1000); 74 | } 75 | 76 | webAuth.parseHash(window.location.hash, function (err, result) { 77 | if (err) { 78 | console.error(err); 79 | } else if (result) { 80 | saveAuthResult(result); 81 | } 82 | }); 83 | }); 84 | -------------------------------------------------------------------------------- /app1.com/auth0_logo_final_blue_RGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-samples/auth0-sso-sample/b509dd0ccf370242f15f8932a401151a0de77fc0/app1.com/auth0_logo_final_blue_RGB.png -------------------------------------------------------------------------------- /app1.com/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 36 |
37 | 38 | 39 | -------------------------------------------------------------------------------- /app2.com/README.md: -------------------------------------------------------------------------------- 1 | # app2.com 2 | 3 | This is the app2.com for the SSO example. Remember to start all 3 apps to try everything out and to [configure `/etc/hosts` correctly](https://github.com/auth0/auth0-sso-sample#running) 4 | 5 | ## Running the example 6 | 7 | In order to run the example you need to just start a server. What we suggest is doing the following: 8 | 9 | 1. Install node 10 | 2. run `npm install -g serve` 11 | 3. run `serve -l 3001` in the directory of this project. 12 | 13 | Go to `http://app2.com:3001` and you'll see the app running :). 14 | -------------------------------------------------------------------------------- /app2.com/app.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: "proxima-nova", sans-serif; 3 | text-align: center; 4 | font-size: 300%; 5 | font-weight: 100; 6 | } 7 | input[type=checkbox], 8 | input[type=radio] { 9 | position: absolute; 10 | opacity: 0; 11 | } 12 | input[type=checkbox] + label, 13 | input[type=radio] + label { 14 | display: inline-block; 15 | } 16 | input[type=checkbox] + label:before, 17 | input[type=radio] + label:before { 18 | content: ""; 19 | display: inline-block; 20 | vertical-align: -0.2em; 21 | width: 1em; 22 | height: 1em; 23 | border: 0.15em solid #0074d9; 24 | border-radius: 0.2em; 25 | margin-right: 0.3em; 26 | background-color: white; 27 | } 28 | input[type=radio] + label:before { 29 | border-radius: 50%; 30 | } 31 | input[type=radio]:checked + label:before, 32 | input[type=checkbox]:checked + label:before { 33 | background-color: #0074d9; 34 | box-shadow: inset 0 0 0 0.15em white; 35 | } 36 | input[type=radio]:focus + label:before, 37 | input[type=checkbox]:focus + label:before { 38 | outline: 0; 39 | } 40 | .btn { 41 | font-size: 140%; 42 | text-transform: uppercase; 43 | letter-spacing: 1px; 44 | border: 0; 45 | background-color: #16214D; 46 | color: white; 47 | } 48 | .btn:hover { 49 | background-color: #44C7F4; 50 | } 51 | .btn:focus { 52 | outline: none !important; 53 | } 54 | .btn.btn-lg { 55 | padding: 20px 30px; 56 | } 57 | .btn:disabled { 58 | background-color: #333; 59 | color: #666; 60 | } 61 | h1, 62 | h2, 63 | h3 { 64 | font-weight: 100; 65 | } 66 | #logo img { 67 | width: 300px; 68 | margin-bottom: 60px; 69 | } 70 | .home-description { 71 | font-weight: 100; 72 | margin: 100px 0; 73 | } 74 | h2 { 75 | margin-top: 30px; 76 | margin-bottom: 40px; 77 | font-size: 200%; 78 | } 79 | label { 80 | font-size: 100%; 81 | font-weight: 300; 82 | } 83 | .btn-next { 84 | margin-top: 30px; 85 | } 86 | .answer { 87 | width: 70%; 88 | margin: auto; 89 | text-align: left; 90 | padding-left: 10%; 91 | margin-bottom: 20px; 92 | } 93 | .login-page .login-box { 94 | padding: 100px 0; 95 | } 96 | 97 | .url { 98 | display: none; 99 | } 100 | 101 | .bold { 102 | font-weight: bold; 103 | } 104 | -------------------------------------------------------------------------------- /app2.com/app.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | 3 | const AUTH0_CLIENT_ID = 'ZjAxVwIFlBawtCS3L1Pm9AOghYeDaIlZ'; 4 | const AUTH0_DOMAIN = 'auth0pnp.auth0.com'; 5 | 6 | // hide the page in case there is an SSO session (to avoid flickering) 7 | document.body.style.display = 'none'; 8 | 9 | const webAuth = new auth0.WebAuth({ 10 | domain: AUTH0_DOMAIN, 11 | clientID: AUTH0_CLIENT_ID, 12 | audience: 'https://' + AUTH0_DOMAIN + '/userinfo', 13 | scope: 'openid profile', 14 | responseType: 'token id_token', 15 | redirectUri: 'http://app2.com:3001' 16 | }); 17 | 18 | var isAuthCallback = false; 19 | 20 | // Get the user token if we've saved it in localStorage before 21 | var idToken = localStorage.getItem('idToken'); 22 | if (idToken) { 23 | // This would go to a different route like 24 | // window.location.href = '#home'; 25 | // But in this case, we just hide and show things 26 | goToHomepage(getQueryParameter('targetUrl'), idToken); 27 | return; 28 | } else { 29 | // If user is not signed in, check if we have an SSO session 30 | webAuth.checkSession({ 31 | state: getQueryParameter('targetUrl') 32 | }, function(err, result) { 33 | if (err) { 34 | // If no SSO session was found, display the normal login 35 | document.body.style.display = 'inline'; 36 | } else { 37 | // If authentication via SSO was successful, then display the home page 38 | saveAuthResult(result); 39 | goToHomepage(result.state, result.idToken); 40 | } 41 | }) 42 | } 43 | 44 | // Showing Login 45 | $('.btn-login').click(function (e) { 46 | e.preventDefault(); 47 | webAuth.authorize(); 48 | }); 49 | 50 | function goToHomepage(state, token) { 51 | // Instead of redirect, we just show boxes 52 | document.body.style.display = 'inline'; 53 | $('.login-box').hide(); 54 | $('.logged-in-box').show(); 55 | var profile = jwt_decode(token); 56 | $('.name').text(profile.name); 57 | if (state) { 58 | $('.url').show(); 59 | $('.url span').text(state); 60 | } 61 | } 62 | 63 | function getQueryParameter(name) { 64 | name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); 65 | var regex = new RegExp("[\\?&]" + name + "=([^&]*)"), 66 | results = regex.exec(location.search); 67 | return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); 68 | } 69 | 70 | function saveAuthResult (result) { 71 | localStorage.setItem('idToken', result.idToken); 72 | localStorage.setItem('accessToken', result.accessToken); 73 | localStorage.setItem('expirationDate', Date.now() + Number.parseInt(result.expiresIn) * 1000); 74 | } 75 | 76 | webAuth.parseHash(window.location.hash, function (err, result) { 77 | if (err) { 78 | console.error(err); 79 | } else if (result) { 80 | saveAuthResult(result); 81 | } 82 | }); 83 | }); 84 | -------------------------------------------------------------------------------- /app2.com/auth0_logo_final_blue_RGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-samples/auth0-sso-sample/b509dd0ccf370242f15f8932a401151a0de77fc0/app2.com/auth0_logo_final_blue_RGB.png -------------------------------------------------------------------------------- /app2.com/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 36 |
37 | 38 | 39 | -------------------------------------------------------------------------------- /app3.com/.env: -------------------------------------------------------------------------------- 1 | AUTH0_CLIENT_ID=WEEBumZRiQrIJt1PdcDANyiKo1PpGiF6 2 | AUTH0_CLIENT_SECRET=3pX5hySnl5cloaRmyW_bU5RmWiCB0_uvan8reHNRC5Dftp0cBJOa8O2SRMiXEC6E 3 | AUTH0_DOMAIN=auth0pnp.auth0.com 4 | AUTH0_CALLBACK_URL=http://app3.com:3002/callback 5 | -------------------------------------------------------------------------------- /app3.com/Procfile: -------------------------------------------------------------------------------- 1 | web: node server.js -------------------------------------------------------------------------------- /app3.com/README.md: -------------------------------------------------------------------------------- 1 | # app3.com 2 | 3 | This is the app3.com for the SSO example. Remember to start all 3 apps to try everything out and to [configure `/etc/hosts` correctly](https://github.com/auth0/auth0-sso-sample#running) 4 | 5 | #Running the example 6 | 7 | In order to run the example you need to have npm and nodejs installed. 8 | 9 | Just run `node server.js` and try calling [http://app3.com:3002/](http://app3.com:3002/) 10 | -------------------------------------------------------------------------------- /app3.com/config.js: -------------------------------------------------------------------------------- 1 | var swig = require('swig'), 2 | passport = require('passport'), 3 | logger = require('morgan'), 4 | cors = require('cors'), 5 | express = require('express'), 6 | Auth0Strategy = require('passport-auth0'); 7 | cookieParser = require('cookie-parser'), 8 | session = require('express-session'), 9 | bodyParser = require('body-parser'); 10 | 11 | exports.template = function(app) { 12 | app.engine('html', swig.renderFile); 13 | app.set('view engine', 'html'); 14 | app.set('views', __dirname + '/views'); 15 | } 16 | 17 | exports.parsers = function(app) { 18 | app.use(bodyParser.urlencoded()); 19 | app.use(bodyParser.json()); 20 | app.use(cookieParser()); 21 | } 22 | 23 | exports.log = function(app) { 24 | if (process.env.NODE_ENV === 'development') { 25 | app.use(express.logger('dev')); 26 | } 27 | } 28 | 29 | exports.session = function(app) { 30 | app.use(session({ secret: 'my super secret' })); 31 | } 32 | 33 | exports.static = function(app) { 34 | app.use('/public', express.static(__dirname + '/public')); 35 | } 36 | 37 | exports.passport = function(app) { 38 | var strategy = new Auth0Strategy({ 39 | domain: process.env['AUTH0_DOMAIN'], 40 | clientID: process.env['AUTH0_CLIENT_ID'], 41 | clientSecret: process.env['AUTH0_CLIENT_SECRET'], 42 | callbackURL: process.env['AUTH0_CALLBACK_URL'] || 'http://localhost:3000/callback' 43 | }, function(accessToken, refreshToken, profile, done) { 44 | //Some tracing info 45 | console.log('profile is', profile); 46 | //save the profile 47 | return done(null, profile); 48 | }); 49 | 50 | passport.use(strategy); 51 | 52 | // you can use this section to keep a smaller payload 53 | passport.serializeUser(function(user, done) { 54 | done(null, user); 55 | }); 56 | 57 | passport.deserializeUser(function(user, done) { 58 | done(null, user); 59 | }); 60 | 61 | app.use(passport.initialize()); 62 | app.use(passport.session()); 63 | 64 | } 65 | -------------------------------------------------------------------------------- /app3.com/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "auth0-nodejs-regular-webapp-sample", 3 | "version": "0.1.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "accepts": { 8 | "version": "1.3.4", 9 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.4.tgz", 10 | "integrity": "sha1-hiRnWMfdbSGmR0/whKR0DsBesh8=", 11 | "requires": { 12 | "mime-types": "2.1.17", 13 | "negotiator": "0.6.1" 14 | } 15 | }, 16 | "ajv": { 17 | "version": "5.5.2", 18 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", 19 | "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", 20 | "requires": { 21 | "co": "4.6.0", 22 | "fast-deep-equal": "1.0.0", 23 | "fast-json-stable-stringify": "2.0.0", 24 | "json-schema-traverse": "0.3.1" 25 | } 26 | }, 27 | "amdefine": { 28 | "version": "1.0.1", 29 | "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", 30 | "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=" 31 | }, 32 | "array-flatten": { 33 | "version": "1.1.1", 34 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 35 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 36 | }, 37 | "asn1": { 38 | "version": "0.2.3", 39 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", 40 | "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" 41 | }, 42 | "assert-plus": { 43 | "version": "1.0.0", 44 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 45 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 46 | }, 47 | "async": { 48 | "version": "0.2.10", 49 | "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", 50 | "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=" 51 | }, 52 | "asynckit": { 53 | "version": "0.4.0", 54 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 55 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" 56 | }, 57 | "aws-sign2": { 58 | "version": "0.7.0", 59 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", 60 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" 61 | }, 62 | "aws4": { 63 | "version": "1.6.0", 64 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", 65 | "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=" 66 | }, 67 | "base64url": { 68 | "version": "0.0.6", 69 | "resolved": "https://registry.npmjs.org/base64url/-/base64url-0.0.6.tgz", 70 | "integrity": "sha1-lZezazMNscQkdzIuqH6oAnSZuCs=" 71 | }, 72 | "basic-auth": { 73 | "version": "2.0.0", 74 | "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.0.tgz", 75 | "integrity": "sha1-AV2z81PgLlY3d1X5YnQuiYHnu7o=", 76 | "requires": { 77 | "safe-buffer": "5.1.1" 78 | } 79 | }, 80 | "bcrypt-pbkdf": { 81 | "version": "1.0.1", 82 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", 83 | "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", 84 | "optional": true, 85 | "requires": { 86 | "tweetnacl": "0.14.5" 87 | } 88 | }, 89 | "body-parser": { 90 | "version": "1.18.2", 91 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.2.tgz", 92 | "integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=", 93 | "requires": { 94 | "bytes": "3.0.0", 95 | "content-type": "1.0.4", 96 | "debug": "2.6.9", 97 | "depd": "1.1.1", 98 | "http-errors": "1.6.2", 99 | "iconv-lite": "0.4.19", 100 | "on-finished": "2.3.0", 101 | "qs": "6.5.1", 102 | "raw-body": "2.3.2", 103 | "type-is": "1.6.15" 104 | } 105 | }, 106 | "boom": { 107 | "version": "4.3.1", 108 | "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", 109 | "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", 110 | "requires": { 111 | "hoek": "4.2.0" 112 | } 113 | }, 114 | "bytes": { 115 | "version": "3.0.0", 116 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", 117 | "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" 118 | }, 119 | "camelcase": { 120 | "version": "1.2.1", 121 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", 122 | "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=" 123 | }, 124 | "caseless": { 125 | "version": "0.12.0", 126 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 127 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" 128 | }, 129 | "co": { 130 | "version": "4.6.0", 131 | "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", 132 | "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" 133 | }, 134 | "combined-stream": { 135 | "version": "1.0.5", 136 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", 137 | "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", 138 | "requires": { 139 | "delayed-stream": "1.0.0" 140 | } 141 | }, 142 | "compressible": { 143 | "version": "2.0.12", 144 | "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.12.tgz", 145 | "integrity": "sha1-xZpcmdt2dn6YdlAOJx72OzSTvWY=", 146 | "requires": { 147 | "mime-db": "1.30.0" 148 | } 149 | }, 150 | "compression": { 151 | "version": "1.7.1", 152 | "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.1.tgz", 153 | "integrity": "sha1-7/JgPvwuIs+G810uuTWJ+YdTc9s=", 154 | "requires": { 155 | "accepts": "1.3.4", 156 | "bytes": "3.0.0", 157 | "compressible": "2.0.12", 158 | "debug": "2.6.9", 159 | "on-headers": "1.0.1", 160 | "safe-buffer": "5.1.1", 161 | "vary": "1.1.2" 162 | } 163 | }, 164 | "content-disposition": { 165 | "version": "0.5.2", 166 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", 167 | "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ=" 168 | }, 169 | "content-type": { 170 | "version": "1.0.4", 171 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 172 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 173 | }, 174 | "cookie": { 175 | "version": "0.3.1", 176 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", 177 | "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=" 178 | }, 179 | "cookie-parser": { 180 | "version": "1.4.3", 181 | "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.3.tgz", 182 | "integrity": "sha1-D+MfoZ0AC5X0qt8fU/3CuKIDuqU=", 183 | "requires": { 184 | "cookie": "0.3.1", 185 | "cookie-signature": "1.0.6" 186 | } 187 | }, 188 | "cookie-signature": { 189 | "version": "1.0.6", 190 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 191 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 192 | }, 193 | "core-util-is": { 194 | "version": "1.0.2", 195 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 196 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 197 | }, 198 | "cors": { 199 | "version": "2.8.4", 200 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.4.tgz", 201 | "integrity": "sha1-K9OB8usgECAQXNUOpZ2mMJBpRoY=", 202 | "requires": { 203 | "object-assign": "4.1.1", 204 | "vary": "1.1.2" 205 | } 206 | }, 207 | "crc": { 208 | "version": "3.4.4", 209 | "resolved": "https://registry.npmjs.org/crc/-/crc-3.4.4.tgz", 210 | "integrity": "sha1-naHpgOO9RPxck79as9ozeNheRms=" 211 | }, 212 | "cryptiles": { 213 | "version": "3.1.2", 214 | "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", 215 | "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", 216 | "requires": { 217 | "boom": "5.2.0" 218 | }, 219 | "dependencies": { 220 | "boom": { 221 | "version": "5.2.0", 222 | "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", 223 | "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", 224 | "requires": { 225 | "hoek": "4.2.0" 226 | } 227 | } 228 | } 229 | }, 230 | "dashdash": { 231 | "version": "1.14.1", 232 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 233 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 234 | "requires": { 235 | "assert-plus": "1.0.0" 236 | } 237 | }, 238 | "debug": { 239 | "version": "2.6.9", 240 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 241 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 242 | "requires": { 243 | "ms": "2.0.0" 244 | } 245 | }, 246 | "decamelize": { 247 | "version": "1.2.0", 248 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 249 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" 250 | }, 251 | "delayed-stream": { 252 | "version": "1.0.0", 253 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 254 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" 255 | }, 256 | "depd": { 257 | "version": "1.1.1", 258 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", 259 | "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=" 260 | }, 261 | "destroy": { 262 | "version": "1.0.4", 263 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 264 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 265 | }, 266 | "dotenv": { 267 | "version": "0.4.0", 268 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-0.4.0.tgz", 269 | "integrity": "sha1-9vs1E2PC2SIHJFxzeALJq1rhSVo=" 270 | }, 271 | "ecc-jsbn": { 272 | "version": "0.1.1", 273 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", 274 | "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", 275 | "optional": true, 276 | "requires": { 277 | "jsbn": "0.1.1" 278 | } 279 | }, 280 | "ee-first": { 281 | "version": "1.1.1", 282 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 283 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 284 | }, 285 | "encodeurl": { 286 | "version": "1.0.1", 287 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.1.tgz", 288 | "integrity": "sha1-eePVhlU0aQn+bw9Fpd5oEDspTSA=" 289 | }, 290 | "escape-html": { 291 | "version": "1.0.3", 292 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 293 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 294 | }, 295 | "etag": { 296 | "version": "1.8.1", 297 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 298 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 299 | }, 300 | "express": { 301 | "version": "4.16.2", 302 | "resolved": "https://registry.npmjs.org/express/-/express-4.16.2.tgz", 303 | "integrity": "sha1-41xt/i1kt9ygpc1PIXgb4ymeB2w=", 304 | "requires": { 305 | "accepts": "1.3.4", 306 | "array-flatten": "1.1.1", 307 | "body-parser": "1.18.2", 308 | "content-disposition": "0.5.2", 309 | "content-type": "1.0.4", 310 | "cookie": "0.3.1", 311 | "cookie-signature": "1.0.6", 312 | "debug": "2.6.9", 313 | "depd": "1.1.1", 314 | "encodeurl": "1.0.1", 315 | "escape-html": "1.0.3", 316 | "etag": "1.8.1", 317 | "finalhandler": "1.1.0", 318 | "fresh": "0.5.2", 319 | "merge-descriptors": "1.0.1", 320 | "methods": "1.1.2", 321 | "on-finished": "2.3.0", 322 | "parseurl": "1.3.2", 323 | "path-to-regexp": "0.1.7", 324 | "proxy-addr": "2.0.2", 325 | "qs": "6.5.1", 326 | "range-parser": "1.2.0", 327 | "safe-buffer": "5.1.1", 328 | "send": "0.16.1", 329 | "serve-static": "1.13.1", 330 | "setprototypeof": "1.1.0", 331 | "statuses": "1.3.1", 332 | "type-is": "1.6.15", 333 | "utils-merge": "1.0.1", 334 | "vary": "1.1.2" 335 | }, 336 | "dependencies": { 337 | "setprototypeof": { 338 | "version": "1.1.0", 339 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", 340 | "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" 341 | }, 342 | "statuses": { 343 | "version": "1.3.1", 344 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", 345 | "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=" 346 | } 347 | } 348 | }, 349 | "express-jwt": { 350 | "version": "0.3.2", 351 | "resolved": "https://registry.npmjs.org/express-jwt/-/express-jwt-0.3.2.tgz", 352 | "integrity": "sha1-GriN0+L6VguW/BaN826Lq6EeLbE=", 353 | "requires": { 354 | "express-unless": "0.0.0", 355 | "jsonwebtoken": "1.1.2" 356 | } 357 | }, 358 | "express-session": { 359 | "version": "1.15.6", 360 | "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.15.6.tgz", 361 | "integrity": "sha512-r0nrHTCYtAMrFwZ0kBzZEXa1vtPVrw0dKvGSrKP4dahwBQ1BJpF2/y1Pp4sCD/0kvxV4zZeclyvfmw0B4RMJQA==", 362 | "requires": { 363 | "cookie": "0.3.1", 364 | "cookie-signature": "1.0.6", 365 | "crc": "3.4.4", 366 | "debug": "2.6.9", 367 | "depd": "1.1.1", 368 | "on-headers": "1.0.1", 369 | "parseurl": "1.3.2", 370 | "uid-safe": "2.1.5", 371 | "utils-merge": "1.0.1" 372 | } 373 | }, 374 | "express-unless": { 375 | "version": "0.0.0", 376 | "resolved": "https://registry.npmjs.org/express-unless/-/express-unless-0.0.0.tgz", 377 | "integrity": "sha1-ytxyhfuoV3+5vgR2NM+nOIBvK88=" 378 | }, 379 | "extend": { 380 | "version": "3.0.1", 381 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", 382 | "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=" 383 | }, 384 | "extsprintf": { 385 | "version": "1.3.0", 386 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 387 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" 388 | }, 389 | "fast-deep-equal": { 390 | "version": "1.0.0", 391 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz", 392 | "integrity": "sha1-liVqO8l1WV6zbYLpkp0GDYk0Of8=" 393 | }, 394 | "fast-json-stable-stringify": { 395 | "version": "2.0.0", 396 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 397 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 398 | }, 399 | "finalhandler": { 400 | "version": "1.1.0", 401 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.0.tgz", 402 | "integrity": "sha1-zgtoVbRYU+eRsvzGgARtiCU91/U=", 403 | "requires": { 404 | "debug": "2.6.9", 405 | "encodeurl": "1.0.1", 406 | "escape-html": "1.0.3", 407 | "on-finished": "2.3.0", 408 | "parseurl": "1.3.2", 409 | "statuses": "1.3.1", 410 | "unpipe": "1.0.0" 411 | }, 412 | "dependencies": { 413 | "statuses": { 414 | "version": "1.3.1", 415 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", 416 | "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=" 417 | } 418 | } 419 | }, 420 | "forever-agent": { 421 | "version": "0.6.1", 422 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 423 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" 424 | }, 425 | "form-data": { 426 | "version": "2.3.1", 427 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.1.tgz", 428 | "integrity": "sha1-b7lPvXGIUwbXPRXMSX/kzE7NRL8=", 429 | "requires": { 430 | "asynckit": "0.4.0", 431 | "combined-stream": "1.0.5", 432 | "mime-types": "2.1.17" 433 | } 434 | }, 435 | "forwarded": { 436 | "version": "0.1.2", 437 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 438 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 439 | }, 440 | "fresh": { 441 | "version": "0.5.2", 442 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 443 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 444 | }, 445 | "getpass": { 446 | "version": "0.1.7", 447 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 448 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 449 | "requires": { 450 | "assert-plus": "1.0.0" 451 | } 452 | }, 453 | "har-schema": { 454 | "version": "2.0.0", 455 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", 456 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" 457 | }, 458 | "har-validator": { 459 | "version": "5.0.3", 460 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", 461 | "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", 462 | "requires": { 463 | "ajv": "5.5.2", 464 | "har-schema": "2.0.0" 465 | } 466 | }, 467 | "hawk": { 468 | "version": "6.0.2", 469 | "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", 470 | "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", 471 | "requires": { 472 | "boom": "4.3.1", 473 | "cryptiles": "3.1.2", 474 | "hoek": "4.2.0", 475 | "sntp": "2.1.0" 476 | } 477 | }, 478 | "hoek": { 479 | "version": "4.2.0", 480 | "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.0.tgz", 481 | "integrity": "sha512-v0XCLxICi9nPfYrS9RL8HbYnXi9obYAeLbSP00BmnZwCK9+Ih9WOjoZ8YoHCoav2csqn4FOz4Orldsy2dmDwmQ==" 482 | }, 483 | "http-errors": { 484 | "version": "1.6.2", 485 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz", 486 | "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=", 487 | "requires": { 488 | "depd": "1.1.1", 489 | "inherits": "2.0.3", 490 | "setprototypeof": "1.0.3", 491 | "statuses": "1.4.0" 492 | } 493 | }, 494 | "http-signature": { 495 | "version": "1.2.0", 496 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", 497 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", 498 | "requires": { 499 | "assert-plus": "1.0.0", 500 | "jsprim": "1.4.1", 501 | "sshpk": "1.13.1" 502 | } 503 | }, 504 | "iconv-lite": { 505 | "version": "0.4.19", 506 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", 507 | "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==" 508 | }, 509 | "inherits": { 510 | "version": "2.0.3", 511 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 512 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 513 | }, 514 | "ipaddr.js": { 515 | "version": "1.5.2", 516 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.5.2.tgz", 517 | "integrity": "sha1-1LUFvemUaYfM8PxY2QEP+WB+P6A=" 518 | }, 519 | "is-typedarray": { 520 | "version": "1.0.0", 521 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 522 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 523 | }, 524 | "isstream": { 525 | "version": "0.1.2", 526 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 527 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" 528 | }, 529 | "jsbn": { 530 | "version": "0.1.1", 531 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 532 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", 533 | "optional": true 534 | }, 535 | "json-schema": { 536 | "version": "0.2.3", 537 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 538 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" 539 | }, 540 | "json-schema-traverse": { 541 | "version": "0.3.1", 542 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", 543 | "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" 544 | }, 545 | "json-stringify-safe": { 546 | "version": "5.0.1", 547 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 548 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" 549 | }, 550 | "jsonwebtoken": { 551 | "version": "1.1.2", 552 | "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-1.1.2.tgz", 553 | "integrity": "sha1-sjHDC5bwFCkonu1vk79c5a5JQ8U=", 554 | "requires": { 555 | "jws": "0.2.6" 556 | } 557 | }, 558 | "jsprim": { 559 | "version": "1.4.1", 560 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", 561 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", 562 | "requires": { 563 | "assert-plus": "1.0.0", 564 | "extsprintf": "1.3.0", 565 | "json-schema": "0.2.3", 566 | "verror": "1.10.0" 567 | } 568 | }, 569 | "jwa": { 570 | "version": "0.0.1", 571 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-0.0.1.tgz", 572 | "integrity": "sha1-LQX1TWjxcGSMMP5FlEcxo4jNB8w=", 573 | "requires": { 574 | "base64url": "0.0.6" 575 | } 576 | }, 577 | "jws": { 578 | "version": "0.2.6", 579 | "resolved": "https://registry.npmjs.org/jws/-/jws-0.2.6.tgz", 580 | "integrity": "sha1-6bfprI0qwQZ0EyM7xsIPvYho6bo=", 581 | "requires": { 582 | "base64url": "0.0.6", 583 | "jwa": "0.0.1" 584 | } 585 | }, 586 | "media-typer": { 587 | "version": "0.3.0", 588 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 589 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 590 | }, 591 | "merge-descriptors": { 592 | "version": "1.0.1", 593 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 594 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 595 | }, 596 | "methods": { 597 | "version": "1.1.2", 598 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 599 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 600 | }, 601 | "mime": { 602 | "version": "1.4.1", 603 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", 604 | "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==" 605 | }, 606 | "mime-db": { 607 | "version": "1.30.0", 608 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz", 609 | "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE=" 610 | }, 611 | "mime-types": { 612 | "version": "2.1.17", 613 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz", 614 | "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=", 615 | "requires": { 616 | "mime-db": "1.30.0" 617 | } 618 | }, 619 | "minimist": { 620 | "version": "0.0.10", 621 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", 622 | "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=" 623 | }, 624 | "morgan": { 625 | "version": "1.9.0", 626 | "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.0.tgz", 627 | "integrity": "sha1-0B+mxlhZt2/PMbPLU6OCGjEdgFE=", 628 | "requires": { 629 | "basic-auth": "2.0.0", 630 | "debug": "2.6.9", 631 | "depd": "1.1.1", 632 | "on-finished": "2.3.0", 633 | "on-headers": "1.0.1" 634 | } 635 | }, 636 | "ms": { 637 | "version": "2.0.0", 638 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 639 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 640 | }, 641 | "negotiator": { 642 | "version": "0.6.1", 643 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", 644 | "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=" 645 | }, 646 | "node-sync-walker": { 647 | "version": "0.1.0", 648 | "resolved": "https://registry.npmjs.org/node-sync-walker/-/node-sync-walker-0.1.0.tgz", 649 | "integrity": "sha1-WJ/sVeUrpK1YiChkc+WEF0JTV+U=" 650 | }, 651 | "oauth": { 652 | "version": "0.9.15", 653 | "resolved": "https://registry.npmjs.org/oauth/-/oauth-0.9.15.tgz", 654 | "integrity": "sha1-vR/vr2hslrdUda7VGWQS/2DPucE=" 655 | }, 656 | "oauth-sign": { 657 | "version": "0.8.2", 658 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", 659 | "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" 660 | }, 661 | "object-assign": { 662 | "version": "4.1.1", 663 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 664 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 665 | }, 666 | "on-finished": { 667 | "version": "2.3.0", 668 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 669 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 670 | "requires": { 671 | "ee-first": "1.1.1" 672 | } 673 | }, 674 | "on-headers": { 675 | "version": "1.0.1", 676 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz", 677 | "integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c=" 678 | }, 679 | "optimist": { 680 | "version": "0.6.1", 681 | "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", 682 | "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", 683 | "requires": { 684 | "minimist": "0.0.10", 685 | "wordwrap": "0.0.3" 686 | } 687 | }, 688 | "parseurl": { 689 | "version": "1.3.2", 690 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", 691 | "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=" 692 | }, 693 | "passport": { 694 | "version": "0.3.2", 695 | "resolved": "https://registry.npmjs.org/passport/-/passport-0.3.2.tgz", 696 | "integrity": "sha1-ndAJ+RXo/glbASSgG4+C2gdRAQI=", 697 | "requires": { 698 | "passport-strategy": "1.0.0", 699 | "pause": "0.0.1" 700 | } 701 | }, 702 | "passport-auth0": { 703 | "version": "0.5.2", 704 | "resolved": "https://registry.npmjs.org/passport-auth0/-/passport-auth0-0.5.2.tgz", 705 | "integrity": "sha1-1ZRpiTqekqNkezUlWRdZZq7raCg=", 706 | "requires": { 707 | "passport-oauth": "1.0.0", 708 | "request": "2.83.0", 709 | "xtend": "4.0.1" 710 | } 711 | }, 712 | "passport-oauth": { 713 | "version": "1.0.0", 714 | "resolved": "https://registry.npmjs.org/passport-oauth/-/passport-oauth-1.0.0.tgz", 715 | "integrity": "sha1-kK/2M4dUDwIImvKM2tOep/gNd98=", 716 | "requires": { 717 | "passport-oauth1": "1.1.0", 718 | "passport-oauth2": "1.4.0" 719 | } 720 | }, 721 | "passport-oauth1": { 722 | "version": "1.1.0", 723 | "resolved": "https://registry.npmjs.org/passport-oauth1/-/passport-oauth1-1.1.0.tgz", 724 | "integrity": "sha1-p96YiiEfnPRoc3cTDqdN8ycwyRg=", 725 | "requires": { 726 | "oauth": "0.9.15", 727 | "passport-strategy": "1.0.0", 728 | "utils-merge": "1.0.1" 729 | } 730 | }, 731 | "passport-oauth2": { 732 | "version": "1.4.0", 733 | "resolved": "https://registry.npmjs.org/passport-oauth2/-/passport-oauth2-1.4.0.tgz", 734 | "integrity": "sha1-9i+BWDy+EmCb585vFguTlaJ7hq0=", 735 | "requires": { 736 | "oauth": "0.9.15", 737 | "passport-strategy": "1.0.0", 738 | "uid2": "0.0.3", 739 | "utils-merge": "1.0.1" 740 | } 741 | }, 742 | "passport-strategy": { 743 | "version": "1.0.0", 744 | "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz", 745 | "integrity": "sha1-tVOaqPwiWj0a0XlHbd8ja0QPUuQ=" 746 | }, 747 | "path-to-regexp": { 748 | "version": "0.1.7", 749 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 750 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 751 | }, 752 | "pause": { 753 | "version": "0.0.1", 754 | "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz", 755 | "integrity": "sha1-HUCLP9t2kjuVQ9lvtMnf1TXZy10=" 756 | }, 757 | "performance-now": { 758 | "version": "2.1.0", 759 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", 760 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" 761 | }, 762 | "proxy-addr": { 763 | "version": "2.0.2", 764 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.2.tgz", 765 | "integrity": "sha1-ZXFQT0e7mI7IGAJT+F3X4UlSvew=", 766 | "requires": { 767 | "forwarded": "0.1.2", 768 | "ipaddr.js": "1.5.2" 769 | } 770 | }, 771 | "punycode": { 772 | "version": "1.4.1", 773 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", 774 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" 775 | }, 776 | "qs": { 777 | "version": "6.5.1", 778 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", 779 | "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==" 780 | }, 781 | "random-bytes": { 782 | "version": "1.0.0", 783 | "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", 784 | "integrity": "sha1-T2ih3Arli9P7lYSMMDJNt11kNgs=" 785 | }, 786 | "range-parser": { 787 | "version": "1.2.0", 788 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", 789 | "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=" 790 | }, 791 | "raw-body": { 792 | "version": "2.3.2", 793 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz", 794 | "integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=", 795 | "requires": { 796 | "bytes": "3.0.0", 797 | "http-errors": "1.6.2", 798 | "iconv-lite": "0.4.19", 799 | "unpipe": "1.0.0" 800 | } 801 | }, 802 | "request": { 803 | "version": "2.83.0", 804 | "resolved": "https://registry.npmjs.org/request/-/request-2.83.0.tgz", 805 | "integrity": "sha512-lR3gD69osqm6EYLk9wB/G1W/laGWjzH90t1vEa2xuxHD5KUrSzp9pUSfTm+YC5Nxt2T8nMPEvKlhbQayU7bgFw==", 806 | "requires": { 807 | "aws-sign2": "0.7.0", 808 | "aws4": "1.6.0", 809 | "caseless": "0.12.0", 810 | "combined-stream": "1.0.5", 811 | "extend": "3.0.1", 812 | "forever-agent": "0.6.1", 813 | "form-data": "2.3.1", 814 | "har-validator": "5.0.3", 815 | "hawk": "6.0.2", 816 | "http-signature": "1.2.0", 817 | "is-typedarray": "1.0.0", 818 | "isstream": "0.1.2", 819 | "json-stringify-safe": "5.0.1", 820 | "mime-types": "2.1.17", 821 | "oauth-sign": "0.8.2", 822 | "performance-now": "2.1.0", 823 | "qs": "6.5.1", 824 | "safe-buffer": "5.1.1", 825 | "stringstream": "0.0.5", 826 | "tough-cookie": "2.3.3", 827 | "tunnel-agent": "0.6.0", 828 | "uuid": "3.1.0" 829 | } 830 | }, 831 | "safe-buffer": { 832 | "version": "5.1.1", 833 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", 834 | "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" 835 | }, 836 | "send": { 837 | "version": "0.16.1", 838 | "resolved": "https://registry.npmjs.org/send/-/send-0.16.1.tgz", 839 | "integrity": "sha512-ElCLJdJIKPk6ux/Hocwhk7NFHpI3pVm/IZOYWqUmoxcgeyM+MpxHHKhb8QmlJDX1pU6WrgaHBkVNm73Sv7uc2A==", 840 | "requires": { 841 | "debug": "2.6.9", 842 | "depd": "1.1.1", 843 | "destroy": "1.0.4", 844 | "encodeurl": "1.0.1", 845 | "escape-html": "1.0.3", 846 | "etag": "1.8.1", 847 | "fresh": "0.5.2", 848 | "http-errors": "1.6.2", 849 | "mime": "1.4.1", 850 | "ms": "2.0.0", 851 | "on-finished": "2.3.0", 852 | "range-parser": "1.2.0", 853 | "statuses": "1.3.1" 854 | }, 855 | "dependencies": { 856 | "statuses": { 857 | "version": "1.3.1", 858 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", 859 | "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=" 860 | } 861 | } 862 | }, 863 | "serve-static": { 864 | "version": "1.13.1", 865 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.1.tgz", 866 | "integrity": "sha512-hSMUZrsPa/I09VYFJwa627JJkNs0NrfL1Uzuup+GqHfToR2KcsXFymXSV90hoyw3M+msjFuQly+YzIH/q0MGlQ==", 867 | "requires": { 868 | "encodeurl": "1.0.1", 869 | "escape-html": "1.0.3", 870 | "parseurl": "1.3.2", 871 | "send": "0.16.1" 872 | } 873 | }, 874 | "setprototypeof": { 875 | "version": "1.0.3", 876 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", 877 | "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ=" 878 | }, 879 | "sntp": { 880 | "version": "2.1.0", 881 | "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz", 882 | "integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==", 883 | "requires": { 884 | "hoek": "4.2.0" 885 | } 886 | }, 887 | "source-map": { 888 | "version": "0.1.34", 889 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.34.tgz", 890 | "integrity": "sha1-p8/omux7FoLDsZjQrPtH19CQVms=", 891 | "requires": { 892 | "amdefine": "1.0.1" 893 | } 894 | }, 895 | "sshpk": { 896 | "version": "1.13.1", 897 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", 898 | "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", 899 | "requires": { 900 | "asn1": "0.2.3", 901 | "assert-plus": "1.0.0", 902 | "bcrypt-pbkdf": "1.0.1", 903 | "dashdash": "1.14.1", 904 | "ecc-jsbn": "0.1.1", 905 | "getpass": "0.1.7", 906 | "jsbn": "0.1.1", 907 | "tweetnacl": "0.14.5" 908 | } 909 | }, 910 | "statuses": { 911 | "version": "1.4.0", 912 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", 913 | "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" 914 | }, 915 | "stringstream": { 916 | "version": "0.0.5", 917 | "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", 918 | "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=" 919 | }, 920 | "swig": { 921 | "version": "1.4.2", 922 | "resolved": "https://registry.npmjs.org/swig/-/swig-1.4.2.tgz", 923 | "integrity": "sha1-QIXKBFM2kQS11IPihBs5t64aq6U=", 924 | "requires": { 925 | "optimist": "0.6.1", 926 | "uglify-js": "2.4.24" 927 | } 928 | }, 929 | "tough-cookie": { 930 | "version": "2.3.3", 931 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz", 932 | "integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=", 933 | "requires": { 934 | "punycode": "1.4.1" 935 | } 936 | }, 937 | "tunnel-agent": { 938 | "version": "0.6.0", 939 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 940 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 941 | "requires": { 942 | "safe-buffer": "5.1.1" 943 | } 944 | }, 945 | "tweetnacl": { 946 | "version": "0.14.5", 947 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 948 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", 949 | "optional": true 950 | }, 951 | "type-is": { 952 | "version": "1.6.15", 953 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.15.tgz", 954 | "integrity": "sha1-yrEPtJCeRByChC6v4a1kbIGARBA=", 955 | "requires": { 956 | "media-typer": "0.3.0", 957 | "mime-types": "2.1.17" 958 | } 959 | }, 960 | "uglify-js": { 961 | "version": "2.4.24", 962 | "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.4.24.tgz", 963 | "integrity": "sha1-+tV1XB4Vd2WLsG/5q25UjJW+vW4=", 964 | "requires": { 965 | "async": "0.2.10", 966 | "source-map": "0.1.34", 967 | "uglify-to-browserify": "1.0.2", 968 | "yargs": "3.5.4" 969 | } 970 | }, 971 | "uglify-to-browserify": { 972 | "version": "1.0.2", 973 | "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", 974 | "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=" 975 | }, 976 | "uid-safe": { 977 | "version": "2.1.5", 978 | "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", 979 | "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", 980 | "requires": { 981 | "random-bytes": "1.0.0" 982 | } 983 | }, 984 | "uid2": { 985 | "version": "0.0.3", 986 | "resolved": "https://registry.npmjs.org/uid2/-/uid2-0.0.3.tgz", 987 | "integrity": "sha1-SDEm4Rd03y9xuLY53NeZw3YWK4I=" 988 | }, 989 | "unpipe": { 990 | "version": "1.0.0", 991 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 992 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 993 | }, 994 | "utils-merge": { 995 | "version": "1.0.1", 996 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 997 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 998 | }, 999 | "uuid": { 1000 | "version": "3.1.0", 1001 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", 1002 | "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==" 1003 | }, 1004 | "vary": { 1005 | "version": "1.1.2", 1006 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1007 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 1008 | }, 1009 | "verror": { 1010 | "version": "1.10.0", 1011 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 1012 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", 1013 | "requires": { 1014 | "assert-plus": "1.0.0", 1015 | "core-util-is": "1.0.2", 1016 | "extsprintf": "1.3.0" 1017 | } 1018 | }, 1019 | "window-size": { 1020 | "version": "0.1.0", 1021 | "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", 1022 | "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=" 1023 | }, 1024 | "wordwrap": { 1025 | "version": "0.0.3", 1026 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", 1027 | "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=" 1028 | }, 1029 | "xtend": { 1030 | "version": "4.0.1", 1031 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", 1032 | "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=" 1033 | }, 1034 | "yargs": { 1035 | "version": "3.5.4", 1036 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.5.4.tgz", 1037 | "integrity": "sha1-2K/49mXpTDS9JZvevRv68N3TU2E=", 1038 | "requires": { 1039 | "camelcase": "1.2.1", 1040 | "decamelize": "1.2.0", 1041 | "window-size": "0.1.0", 1042 | "wordwrap": "0.0.2" 1043 | }, 1044 | "dependencies": { 1045 | "wordwrap": { 1046 | "version": "0.0.2", 1047 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", 1048 | "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=" 1049 | } 1050 | } 1051 | } 1052 | } 1053 | } 1054 | -------------------------------------------------------------------------------- /app3.com/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "auth0-nodejs-regular-webapp-sample", 3 | "version": "0.1.0", 4 | "description": "Auth0 + NodeJS Regular WebApp seed", 5 | "repository": "git://github.com/auth0/node-auth0", 6 | "author": "Martin Gontovnikas", 7 | "license": "MIT", 8 | "dependencies": { 9 | "body-parser": "^1.6.2", 10 | "compression": "^1.0.10", 11 | "cookie-parser": "^1.3.2", 12 | "cors": "^2.4.1", 13 | "dotenv": "^0.4.0", 14 | "express": "^4.8.2", 15 | "express-jwt": "^0.3.1", 16 | "express-session": "^1.7.4", 17 | "morgan": "^1.2.2", 18 | "node-sync-walker": "^0.1.0", 19 | "passport": "^0.3.2", 20 | "passport-auth0": "^0.5.2", 21 | "swig": "^1.4.2" 22 | }, 23 | "engines": { 24 | "node": "0.10.x" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app3.com/public/app.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: "proxima-nova", sans-serif; 3 | text-align: center; 4 | font-size: 300%; 5 | font-weight: 100; 6 | } 7 | input[type=checkbox], 8 | input[type=radio] { 9 | position: absolute; 10 | opacity: 0; 11 | } 12 | input[type=checkbox] + label, 13 | input[type=radio] + label { 14 | display: inline-block; 15 | } 16 | input[type=checkbox] + label:before, 17 | input[type=radio] + label:before { 18 | content: ""; 19 | display: inline-block; 20 | vertical-align: -0.2em; 21 | width: 1em; 22 | height: 1em; 23 | border: 0.15em solid #0074d9; 24 | border-radius: 0.2em; 25 | margin-right: 0.3em; 26 | background-color: white; 27 | } 28 | input[type=radio] + label:before { 29 | border-radius: 50%; 30 | } 31 | input[type=radio]:checked + label:before, 32 | input[type=checkbox]:checked + label:before { 33 | background-color: #0074d9; 34 | box-shadow: inset 0 0 0 0.15em white; 35 | } 36 | input[type=radio]:focus + label:before, 37 | input[type=checkbox]:focus + label:before { 38 | outline: 0; 39 | } 40 | .btn { 41 | font-size: 140%; 42 | text-transform: uppercase; 43 | letter-spacing: 1px; 44 | border: 0; 45 | background-color: #16214D; 46 | color: white; 47 | } 48 | .btn:hover { 49 | background-color: #44C7F4; 50 | } 51 | .btn:focus { 52 | outline: none !important; 53 | } 54 | .btn.btn-lg { 55 | padding: 20px 30px; 56 | } 57 | .btn:disabled { 58 | background-color: #333; 59 | color: #666; 60 | } 61 | h1, 62 | h2, 63 | h3 { 64 | font-weight: 100; 65 | } 66 | #logo img { 67 | width: 300px; 68 | margin-bottom: 60px; 69 | } 70 | .home-description { 71 | font-weight: 100; 72 | margin: 100px 0; 73 | } 74 | h2 { 75 | margin-top: 30px; 76 | margin-bottom: 40px; 77 | font-size: 200%; 78 | } 79 | label { 80 | font-size: 100%; 81 | font-weight: 300; 82 | } 83 | .btn-next { 84 | margin-top: 30px; 85 | } 86 | .answer { 87 | width: 70%; 88 | margin: auto; 89 | text-align: left; 90 | padding-left: 10%; 91 | margin-bottom: 20px; 92 | } 93 | .login-page .login-box { 94 | padding: 100px 0; 95 | } 96 | 97 | 98 | .bold { 99 | font-weight: bold; 100 | } 101 | -------------------------------------------------------------------------------- /app3.com/public/auth0_logo_final_blue_RGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/auth0-samples/auth0-sso-sample/b509dd0ccf370242f15f8932a401151a0de77fc0/app3.com/public/auth0_logo_final_blue_RGB.png -------------------------------------------------------------------------------- /app3.com/routes/auth0-callback.js: -------------------------------------------------------------------------------- 1 | var passport = require('passport'); 2 | 3 | module.exports = function(app) { 4 | // Auth0 callback handler 5 | app.get('/callback', 6 | passport.authenticate('auth0'), 7 | function(req, res) { 8 | if (req.query.state) { 9 | res.redirect("/user?targetUrl=" + req.query.state); 10 | } else { 11 | res.redirect("/user"); 12 | } 13 | }); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /app3.com/routes/home.js: -------------------------------------------------------------------------------- 1 | var passport = require('passport'); 2 | 3 | module.exports = function(app) { 4 | app.get('/', 5 | passport.authenticate('auth0', {}), 6 | function(req, res) { 7 | res.redirect('/user'); 8 | }); 9 | } 10 | -------------------------------------------------------------------------------- /app3.com/routes/middlewares/login.js: -------------------------------------------------------------------------------- 1 | exports.required = function(req, res, next) { 2 | if (!req.isAuthenticated()) { 3 | return res.redirect('/'); 4 | } 5 | next(); 6 | } 7 | -------------------------------------------------------------------------------- /app3.com/routes/sso.js: -------------------------------------------------------------------------------- 1 | var passport = require('passport'); 2 | 3 | module.exports = function(app) { 4 | app.get('/sso', function(req,res, next) { 5 | if (req.isAuthenticated()) { 6 | if (/^http/.test(req.query.targetUrl)) return res.send(400, "url must be relative"); 7 | // Here we'd redirect to req.query.targetUrl like following 8 | // res.redirect(req.query.targetUrl); 9 | // But in this case we'll go to User anyway 10 | res.redirect('/user?targetUrl=' + req.query.targetUrl); 11 | } else { 12 | console.log("Authenticating with Auth0 for SSO"); 13 | passport.authenticate('auth0', { 14 | state: req.query.targetUrl, 15 | connection: req.query.connection, 16 | })(req, res, next); 17 | } 18 | }); 19 | } 20 | -------------------------------------------------------------------------------- /app3.com/routes/user.js: -------------------------------------------------------------------------------- 1 | var login = require('./middlewares/login'); 2 | 3 | module.exports = function(app) { 4 | app.get('/user', 5 | login.required, 6 | function(req, res) { 7 | res.render('user', { 8 | user: req.user, 9 | url: req.query.targetUrl 10 | }); 11 | }); 12 | } 13 | -------------------------------------------------------------------------------- /app3.com/server.js: -------------------------------------------------------------------------------- 1 | var express = require('express'), 2 | http = require('http'), 3 | config = require('./config'), 4 | walker = require('node-sync-walker'), 5 | dotenv = require('dotenv'); 6 | 7 | 8 | var app = express(); 9 | 10 | dotenv.load(); 11 | 12 | app.set('showStackError', true); 13 | 14 | // Prettify HTML 15 | app.locals.pretty = true; 16 | 17 | 18 | // Configure Logging 19 | config.log(app); 20 | 21 | // Configure templates 22 | config.template(app); 23 | 24 | // Configure parsers 25 | config.parsers(app); 26 | 27 | // Configure session 28 | config.session(app); 29 | 30 | // Configure passport 31 | config.passport(app); 32 | 33 | // Configure static folders 34 | config.static(app); 35 | 36 | walker.routeWalker(__dirname + '/routes', app); 37 | 38 | var port = process.env.PORT || 3002; 39 | 40 | http.createServer(app).listen(port, function (err) { 41 | console.log('listening in http://localhost:' + port); 42 | }); 43 | -------------------------------------------------------------------------------- /app3.com/views/user.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Multiple Domain Single-Sign-On Sample", 3 | "type": "sample", 4 | "tags": [ 5 | "nodejs", 6 | "web", 7 | "single-sign-on" 8 | ] 9 | } 10 | --------------------------------------------------------------------------------