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
# 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
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
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
object PoolingHttpClientFactory { | |
private val poolingConnectionManager = PoolingHttpClientConnectionManager().apply { | |
maxTotal = 40 | |
defaultMaxPerRoute = 40 | |
} | |
// called every 30 seconds from a scheduled task | |
fun cleanupConnections() { |
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
/** @type {CredentialsExchangeAction} */ | |
module.exports = async (event, context) => { | |
// This action works for an API with the API audience https://example.com/api along with an application with the | |
// client id 5drbxrf5qMc1KTFNEw6Wjrbw319pOiyW | |
if (event.audience === "https://example.com/api" && event.client.id === "5drbxrf5qMc1KTFNEw6Wjrbw319pOiyW") { | |
return { | |
customClaims: { | |
"https://www.customnamespace.com/some_key": "some value" | |
} | |
}; |
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) { | |
if (context.connection === "facebook" && !user.email) { | |
return callback(new UnauthorizedError("We can't access your email. Please enable sharing your e-mail from Facebook apps settings and re-try.")); | |
} | |
return callback(null, user, context); | |
} |
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
<!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
module.exports = function (raw_data) { | |
var profile = { | |
id: raw_data.objectGUID || raw_data.uid || raw_data.cn, | |
displayName: raw_data.displayName, | |
name: { | |
familyName: raw_data.sn, | |
givenName: raw_data.givenName | |
}, | |
nickname: raw_data['sAMAccountName'] || raw_data['cn'] || raw_data['commonName'], | |
groups: raw_data['groups'], |