-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e34ea0
commit db9e55f
Showing
16 changed files
with
11,982 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"presets": [ | ||
"es2015" | ||
], | ||
"plugins": ["transform-eval"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
"extends": "google" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"enabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"enabled": false | ||
} |
Oops, something went wrong.