0.1.11 • Published 2 years ago
rules-wrapper
Licence
ISC
Version
0.1.11
Deps
2
Size
22 kB
Vulns
0
Weekly
0
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
-
globalobject simple - pre & post redirect
- MFA
-
auth0object user and app metadata for current user -
auth0object accessToken - configuration object populated from secrets
- global_client_id
Not supported
- SAML mapping for issuer, logout and binding
- context fields
sessionID,auth0SessionId,ssoandjwtConfiguration - upstream IdP access_token
Out of scope
-
auth0object user and app metadata for other users
Todo
- log level param