0.1.11 • Published 3 months ago

rules-wrapper v0.1.11

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

Auth0 Rules Wrapper

const wrapper = require('@auth0/rules-wrapper');

function rule01(u, ctx, cb) { }
function rule02(u, ctx, cb) { }

exports.onExecutePostLogin = async (event, api) => {
    await wrapper.execute([rule01, rule02], {event, api});
}

exports.onContinuePostLogin = async (event, api) => {
    await wrapper.execute([rule01, rule02], {event, api, onContinue: true});
}

Actions based wrapper function to run Rules without any modifications to source code.

Mapping Table

see mapping.md

Compatibility

  • access_token claims
  • access_token scopes
  • id_token claims
  • setting primaryUserId
  • SAML response mapping
  • global object simple
  • pre & post redirect
  • MFA
  • auth0 object user and app metadata for current user
  • auth0 object accessToken
  • configuration object populated from secrets
  • global_client_id

Not supported

Out of scope

  • auth0 object user and app metadata for other users

Todo

  • log level param
0.1.10

3 months ago

0.1.11

3 months ago

0.1.9

3 months ago

0.1.8

3 months ago

0.1.7

3 months ago

0.1.6

4 months ago

0.1.5

4 months ago

0.1.2

4 months ago

0.1.4

4 months ago

0.1.3

4 months ago

0.1.1

4 months ago

0.1.0

4 months ago