Skip to content

Instantly share code, notes, and snippets.

View vikasjayaram's full-sized avatar

Vikas Kannurpatti Jayaram vikasjayaram

View GitHub Profile
@vikasjayaram
vikasjayaram / authenticaton_authz_code_flow.webseq
Last active June 29, 2022 03:18
Authentication / Authorization Code Flow
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
@vikasjayaram
vikasjayaram / README.md
Last active November 30, 2018 22:15
To send a verification email during rule execution.

Settings (Values stored here will be available to all rules, via the global configuration object.)

  • SMTP_HOST
  • SMTP_PORT
  • SMTP_USERNAME
  • SMTP_PASSWORD
  • AUTH0_DOMAIN
  • AUTH0_CLIENT_ID
  • AUTH0_CLIENT_SECRET
@vikasjayaram
vikasjayaram / azure_storage_delegation_rule.js
Last active August 8, 2016 05:55
Rule to create a container for the logged in user if it does not exist and generate delegation token to access Azure Storage.
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);
}