This file contains hidden or 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
function (user, context, callback) { | |
// Execute the rule only for the required Apps's client ID | |
var samlIdpClientId = 'LYkMiVolEzhDzaTQJPg6mRI468blVFU4'; | |
if (context.clientID !== samlIdpClientId) { | |
return callback(null, user, context); | |
} | |
user.tmpMemberOf = ""; | |
function appendMember(memberOf) { |
This file contains hidden or 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
function (user, context, callback) { | |
/** | |
* This rule has been automatically generated by | |
* Unknown at 2021-01-23T12:00:26.298Z | |
*/ | |
var request = require('[email protected]'); | |
var queryString = require('querystring'); | |
var Promise = require('[email protected]'); | |
var jwt = require('[email protected]'); |
This file contains hidden or 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
# Check if a custom domain supports TLS 1_x | |
openssl s_client -connect saltukalakus-cd-27cmr6vn4orkxckx.edge.tenants.auth0.com:443 -servername demo.saltukalakus.com -tls1_1 | |
openssl s_client -connect saltukalakus-cd-27cmr6vn4orkxckx.edge.tenants.auth0.com:443 -servername demo.saltukalakus.com -tls1_2 |
This file contains hidden or 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
{ | |
"id": "118028435727952686478", | |
"primaryEmail": "[email protected]", | |
"name": "John Dough", | |
"isAdmin": false, | |
"isDelegatedAdmin": false, | |
"lastLoginTime": "2021-01-05T13:27:25.000Z", | |
"creationTime": "2016-10-03T15:55:40.000Z", | |
"addresses": [ | |
{ |
This file contains hidden or 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
"use strict"; | |
const openssl = require('openssl-nodejs'); | |
const crypto = require('crypto'); | |
function handler(domain) | |
{ | |
return openssl(['s_client', '-connect', domain, '-showcerts'], function (err, buffer) { | |
const res = getCertificateFingerprintSha256(buffer.toString()); | |
console.log("sha - 256", res); |
This file contains hidden or 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
function (user, context, callback) { | |
var ManagementClient = require('[email protected]').ManagementClient; | |
var req = context.request; | |
var audience = req.query.audience; | |
var scopes = (req.query && req.query.scope) || (req.body && req.body.scope); | |
var permissionNames = []; | |
// Limit the rule execution for the realted API identifier |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import time | |
import requests | |
import socket | |
from datetime import datetime | |
from functools import lru_cache | |
from urllib3.connection import HTTPConnection | |
class KeepaliveAdapter(requests.adapters.HTTPAdapter): |
This file contains hidden or 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
<!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" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
</head> | |
<style> |
This file contains hidden or 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
<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" | |
@@AssertServiceURLAndDestination@@ | |
AssertionConsumerServiceURL="https://demo-saml-sp.auth0.com/login/callback" | |
ID="@@ID@@" | |
IssueInstant="@@IssueInstant@@" | |
ProtocolBinding="@@ProtocolBinding@@" Version="2.0"> | |
<saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">@@Issuer@@</saml:Issuer> | |
</samlp:AuthnRequest> |
This file contains hidden or 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
# conf | |
PORT=3000 | |
ISSUER_BASE_URL=https://your-account.[region].auth0.com | |
CLIENT_ID=your-client-id | |
CLIENT_SECRET=your-client-secret | |
BASE_URL=http://localhost:3000 | |
SECRET=LONG_RANDOM_VALUE |