Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save quangthe/bdf978b8f89314b7b1e9619dd8030b10 to your computer and use it in GitHub Desktop.
Save quangthe/bdf978b8f89314b7b1e9619dd8030b10 to your computer and use it in GitHub Desktop.
function (user, context, callback) {
var namespace = "http://cibot.vn/";
context.accessToken[namespace + "authorization"] = {
groups: user.groups,
roles: user.roles,
permissions: user.permissions
};
return callback(null, user, context);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment