Skip to content

Instantly share code, notes, and snippets.

@rinormaloku
Last active January 13, 2019 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rinormaloku/a95a252b8c6851dd42ce258a57f7d0c6 to your computer and use it in GitHub Desktop.
Save rinormaloku/a95a252b8c6851dd42ce258a57f7d0c6 to your computer and use it in GitHub Desktop.
[Rule for adding group to access token] for the article series Intro to Istio https://rinormaloku.com/istio-an-introduction/
function (user, context, callback) {
context.accessToken['https://sa.io/group'] = user.groups[0];
return callback(null, user, context);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment