- SMTP_HOST
- SMTP_PORT
- SMTP_USERNAME
- SMTP_PASSWORD
- AUTH0_DOMAIN
- AUTH0_CLIENT_ID
- AUTH0_CLIENT_SECRET
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
title Authentication / Authorization Code Flow | |
participant User as user | |
participant "Web App" as browser | |
participant "Auth0" as auth0 | |
user -> browser : (1) User clicks login on the app (aoo.example.app) | |
browser -> auth0 : (2) https://YOUR_AUTH0_DOMAIN/authorize?client_id=xxx&state=abc&response_type=code.. | |
user -> auth0: (3) User enters username/password | |
auth0 -> auth0: (4) Rules / Actions pipeline run |
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
function(user, context, callback) { | |
var CLIENT_ID = "{CLIENT_ID}"; | |
//console.log(context); | |
// Only run this rule for the correct app and for azure_blob delegations | |
if (!(context.clientID === CLIENT_ID && | |
context.isDelegation && | |
context.request.body.api_type === 'azure_blob')) { | |
return callback(null, user, context); | |
} |