auth0-hooks-templates
v1.2.2
Published
Auth0 hook templates
Downloads
232
Readme
Auth0 Hooks Templates
This repository contains all the templates for the new version of hooks.
Template sample
friendlyName: Client credentials
description: |
This extensibility point allows custom code to modify the scopes
and add custom claims to the tokens issued from the POST /oauth/token Auth0 API.
wtCompiler: auth0-ext-compilers/client-credentials-exchange
auth0ExtensionName: credentials-exchange
auth0Extension: runtime
sample: |
module.exports = function(client, scope, audience, context, cb) {
var access_token = {};
access_token['https://foo.com/claim'] = 'bar';
access_token.scope = scope;
access_token.scope.push('extra');
cb(null, access_token);
};