Get or generate a new signing certificate:
openssl req -x509 -nodes -sha256 -days 3650 -newkey rsa:2048 -keyout saml.key -out saml.crt
Update the script and update the following settings:
const { AuthenticationClient, ManagementClient } = require("auth0"); | |
const publicKey = `-----BEGIN CERTIFICATE----- | |
MIIC/zCCAeegAwIBAgIJHqZ8xG7fkm2bMA0GCSqGSIb3DQEBCwUAMB0xGzAZBgNV | |
BAMTEnNhbWwtaWRwLmF1dGgwLmNvbTAeFw0xNzA4MDMxNDE0MTBaFw0zMTA0MTIx | |
NDE0MTBaMB0xGzAZBgNVBAMTEnNhbWwtaWRwLmF1dGgwLmNvbTCCASIwDQYJKoZI | |
hvcNAQEBBQADggEPADCCAQoCggEBAOzFui1uCqya7hcEW6TwLQn4kfw0gXDoZ018 | |
VYVA9U45GQGuJPOVjXlNYDxwysjZXP9mOn322wL7AQGejavdrwsGFgiLZ23/X9DP | |
TsyGTcNuQtFCbW16xQcBB7PuLy3iluFXi50c+dvU/iSdBG9xEhndQ9mVtwbFMMFf | |
q8WNY4arU3PmnxFAhZIXgTmJih9a8hknGL82pgpcmK4iQof6Uw35x2Gg9X4zbbyt |
import fs from 'fs'; | |
import path from 'path'; | |
import { v4 } from 'uuid'; | |
import each from 'p-each-series'; | |
import Database from 'sqlite-async'; | |
/** | |
* Find all of the Chrome History files. | |
*/ | |
function getHistoryFiles(startPath, targetFile) { |
const fs = require('fs'); | |
const ursa = require('ursa'); | |
const async = require('async'); | |
const faker = require('faker'); | |
const util = require('util'); | |
const spawn = require('child_process').spawn; | |
const selfsigned = require('selfsigned'); | |
const total = Array.from(Array(10000).keys()); |
8d6f0f0711daedc87d1a6d595771015a
)https://sandbox.it.auth0.com/api/run/sandrino-dev/8d6f0f0711daedc87d1a6d595771015a?webtask_no_cache=1
function (user, context, callback) { | |
var Promise = require('bluebird'); | |
Promise.resolve('foo') | |
.then(function(result) { | |
console.log('Node version:', process.env.NODE_VERSION); | |
console.log('Promise result:', result); | |
callback(null, user, context); | |
}); | |
} |
The Github Deploy
extension allows you to deploy rules and database connections from GitHub to Auth0 (currently only for the public cloud as extensions are not yet supported in the appliance).
Everything is convention based and a sample repository is available here: https://github.com/auth0-samples/github-source-control-integration
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Sign In with Auth0</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<style> | |
html, body { padding: 0; margin: 0; } |