Skip to content

Instantly share code, notes, and snippets.

@ChrisRisner
Last active August 29, 2015 14:00
Show Gist options
  • Save ChrisRisner/11187565 to your computer and use it in GitHub Desktop.
Save ChrisRisner/11187565 to your computer and use it in GitHub Desktop.
AzureAuthUpdate
'urn:microsoft:credentials': {
accessToken: ‘mytoken’
}
var s1 = '{"alg":"HS256","typ":"JWT","kid":"0"}';
var j2 = {
"exp": new Date().setUTCDate(new Date().getUTCDate() + 4000),
"iss":"urn:microsoft:windows-azure:zumo",
"ver":2,
"aud":aud,
"uid":userId
};
var s1 = '{"alg":"HS256","typ":"JWT","kid":0}';
var j2 = {
"exp": new Date().setUTCDate(new Date().getUTCDate() + 4000),
"iss":"urn:microsoft:windows-azure:zumo",
"ver":1,
"aud":aud,
"uid":userId
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment