auth0-hooks-templates

1.2.2 • Public • Published

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);
  };

Readme

Keywords

Package Sidebar

Install

npm i auth0-hooks-templates

Weekly Downloads

13

Version

1.2.2

License

MIT

Last publish

Collaborators

  • auth0npm
  • filearts
  • jcenturion
  • tjanczuk