Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkrug committed Feb 27, 2018
1 parent 7e34ea0 commit db9e55f
Show file tree
Hide file tree
Showing 16 changed files with 11,982 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
"es2015"
],
"plugins": ["transform-eval"]
}
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
"extends": "google"
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
yarn-error.log
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sudo: required
dist: trusty
language: node_js
node_js:
- "7"
before_install:
- yarn install
script:
- yarn run test
cache:
yarn: true
directories:
- node_modules
28 changes: 28 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "auth0-rules",
"version": "1.0.0",
"main": "index.js",
"repository": "[email protected]:ThreatResponse/auth0-rules.git",
"author": "andrewkrug <[email protected]>",
"license": "MPL-2.0",
"babel": {
"presets": [
"es2015"
]
},
"scripts": {
"test": "./node_modules/mocha/bin/mocha --compilers js:babel-core/register --reporter spec test/test_*.js || exit 0"
},
"dependencies": {
"auth0-rule-sandbox": "^2.0.1",
"babel-core": "^6.26.0",
"babel-plugin-transform-eval": "^6.22.0",
"babel-preset-es2015": "^6.24.1",
"babel-register": "^6.26.0",
"chai": "^4.1.2",
"eslint": "^4.18.1",
"eslint-config-google": "^0.9.1",
"mocha": "^5.0.1",
"webtask-runtime": "^1.7.0"
}
}
11 changes: 11 additions & 0 deletions pages/error_page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- This page is coming from my repo! -->
<!DOCTYPE html>
<html>
<head>
<title>Oops</title>
</head>

<body>
<p>Oops!</p>
</body>
</html>
3 changes: 3 additions & 0 deletions pages/error_page.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"enabled": true
}
82 changes: 82 additions & 0 deletions pages/guardian_multifactor.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<!-- This page is coming from my repo! -->
<!DOCTYPE html>
<html>
<head>
<title>2nd Factor Authentication</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<style type="text/css">

html, body { padding: 0; margin: 0; }

.table {
display: table;
position: absolute;
height: 100%;
width: 100%;
background-color: #2b2b33;
}

.cell {
display: table-cell;
vertical-align: middle;
}

.content {
padding: 25px 0px 25px 0px;
margin-left: auto;
margin-right: auto;
width: 280px; /* login widget width */
}

</style>
</head>

<body>

<div class="table">
<div class="cell">
<div class="content">
<!-- WIDGET -->
<div class="js-mfa-container mfa-container" id="container"></div>
</div>
</div>
</div>

<script src="//cdn.auth0.com/js/mfa-widget/mfa-widget-0.1.1.min.js"></script>

<script>
(function() {
return new Auth0MFAWidget({
container: "container",

theme: {
icon: '//cdn.auth0.com/blog/react-js/react.png',
primaryColor: "#ea5323"
},

requesterErrors: [
{% for error in errors %}
{ message: "{{ error.message }}" }
{% endfor %}
],

mfaServerUrl: "{{ mfaServerUrl }}",
requestToken: "{{ requestToken }}",
postActionURL: "{{ postActionURL }}",

userData: {
userId: "{{ userData.userId }}",
email: "{{ userData.email }}",
friendlyUserId: "{{ userData.friendlyUserId }}",
tenant: "{{ userData.tenant }}",
{% if userData.tenantFriendlyName %}
tenantFriendlyName: "{{ userData.tenantFriendlyName }}"
{% endif %}
},
globalTrackingId: "{{ globalTrackingId }}"
});
})();
</script>
</body>
</html>
3 changes: 3 additions & 0 deletions pages/guardian_multifactor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"enabled": false
}
Loading

0 comments on commit db9e55f

Please sign in to comment.