authentication-adal-pkg
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -14,17 +14,17 @@ window.AuthenticationContext = require('adal-angular'); | ||
}; | ||
let authority = null; | ||
let tenant = null; | ||
let redirectUriWeb = null; | ||
let redirectUriIOS = null; | ||
let redirectUriAndroid = null; | ||
let redirectUriWindows = null; | ||
let resourceUri = null; | ||
let clientId = null; | ||
let userId = null; | ||
let authenticationResult = null; | ||
let auth = null; | ||
let authContext = null; | ||
let platformRedirectUri = null; | ||
let localError = ''; | ||
let user = {}; | ||
var authority = null; | ||
var tenant = null; | ||
var redirectUriWeb = null; | ||
var redirectUriIOS = null; | ||
var redirectUriAndroid = null; | ||
var redirectUriWindows = null; | ||
var resourceUri = null; | ||
var clientId = null; | ||
var userId = null; | ||
var authenticationResult = null; | ||
var auth = null; | ||
var authContext = null; | ||
var platformRedirectUri = null; | ||
var localError = ''; | ||
var user = {}; | ||
@@ -266,3 +266,3 @@ const initialize = (config) => { | ||
return acquireToken(getUser).then((token) => { | ||
let {family_name, given_name, name, upn} = decodeTokenPayload(token); | ||
var {family_name, given_name, name, upn} = decodeTokenPayload(token); | ||
if (!upn) { | ||
@@ -285,3 +285,3 @@ upn = decodeTokenPayload(token).email; | ||
if(token){ | ||
let {family_name, given_name, name, upn} = decodeTokenPayload(token); | ||
var {family_name, given_name, name, upn} = decodeTokenPayload(token); | ||
if (!upn) { | ||
@@ -301,3 +301,3 @@ upn = decodeTokenPayload(token).email; | ||
function deserializeHash(query) { | ||
let match; | ||
var match; | ||
const pl = /\+/g; // Regex for replacing addition symbol with a space | ||
@@ -316,3 +316,3 @@ const search = /([^&=]+)=?([^&]*)/g; | ||
function getHash(hash) { | ||
let hashString = ''; | ||
var hashString = ''; | ||
if (hash.indexOf('#/') > -1) { | ||
@@ -346,5 +346,5 @@ hashString = hash.substring(hash.indexOf('#/') + 2); | ||
const state = getParameter('state'); | ||
let validToken = true; | ||
var validToken = true; | ||
if (token) { | ||
let { | ||
var { | ||
nonce, | ||
@@ -351,0 +351,0 @@ aud, |
42
index.js
@@ -14,17 +14,17 @@ window.AuthenticationContext = require('adal-angular'); | ||
}; | ||
let authority = null; | ||
let tenant = null; | ||
let redirectUriWeb = null; | ||
let redirectUriIOS = null; | ||
let redirectUriAndroid = null; | ||
let redirectUriWindows = null; | ||
let resourceUri = null; | ||
let clientId = null; | ||
let userId = null; | ||
let authenticationResult = null; | ||
let auth = null; | ||
let authContext = null; | ||
let platformRedirectUri = null; | ||
let localError = ''; | ||
let user = {}; | ||
var authority = null; | ||
var tenant = null; | ||
var redirectUriWeb = null; | ||
var redirectUriIOS = null; | ||
var redirectUriAndroid = null; | ||
var redirectUriWindows = null; | ||
var resourceUri = null; | ||
var clientId = null; | ||
var userId = null; | ||
var authenticationResult = null; | ||
var auth = null; | ||
var authContext = null; | ||
var platformRedirectUri = null; | ||
var localError = ''; | ||
var user = {}; | ||
@@ -266,3 +266,3 @@ const initialize = (config) => { | ||
return acquireToken(getUser).then((token) => { | ||
let {family_name, given_name, name, upn} = decodeTokenPayload(token); | ||
var {family_name, given_name, name, upn} = decodeTokenPayload(token); | ||
if (!upn) { | ||
@@ -285,3 +285,3 @@ upn = decodeTokenPayload(token).email; | ||
if(token){ | ||
let {family_name, given_name, name, upn} = decodeTokenPayload(token); | ||
var {family_name, given_name, name, upn} = decodeTokenPayload(token); | ||
if (!upn) { | ||
@@ -301,3 +301,3 @@ upn = decodeTokenPayload(token).email; | ||
function deserializeHash(query) { | ||
let match; | ||
var match; | ||
const pl = /\+/g; // Regex for replacing addition symbol with a space | ||
@@ -316,3 +316,3 @@ const search = /([^&=]+)=?([^&]*)/g; | ||
function getHash(hash) { | ||
let hashString = ''; | ||
var hashString = ''; | ||
if (hash.indexOf('#/') > -1) { | ||
@@ -346,5 +346,5 @@ hashString = hash.substring(hash.indexOf('#/') + 2); | ||
const state = getParameter('state'); | ||
let validToken = true; | ||
var validToken = true; | ||
if (token) { | ||
let { | ||
var { | ||
nonce, | ||
@@ -351,0 +351,0 @@ aud, |
@@ -14,18 +14,18 @@ window.AuthenticationContext = require('adal-angular'); | ||
}; | ||
let authority = null; | ||
let tenant = null; | ||
let redirectUriWeb = null; | ||
let redirectUriIOS = null; | ||
let redirectUriAndroid = null; | ||
let redirectUriWindows = null; | ||
let resourceUri = null; | ||
let loginResource = null; | ||
let clientId = null; | ||
let userId = null; | ||
let authenticationResult = null; | ||
let auth = null; | ||
let authContext = null; | ||
let platformRedirectUri = null; | ||
let localError = ''; | ||
let user = {}; | ||
var authority = null; | ||
var tenant = null; | ||
var redirectUriWeb = null; | ||
var redirectUriIOS = null; | ||
var redirectUriAndroid = null; | ||
var redirectUriWindows = null; | ||
var resourceUri = null; | ||
var loginResource = null; | ||
var clientId = null; | ||
var userId = null; | ||
var authenticationResult = null; | ||
var auth = null; | ||
var authContext = null; | ||
var platformRedirectUri = null; | ||
var localError = ''; | ||
var user = {}; | ||
@@ -269,3 +269,3 @@ const initialize = (config) => { | ||
return acquireToken(getUser).then((token) => { | ||
let {family_name, given_name, name, upn} = decodeTokenPayload(token); | ||
var {family_name, given_name, name, upn} = decodeTokenPayload(token); | ||
if (!upn) { | ||
@@ -288,3 +288,3 @@ upn = decodeTokenPayload(token).email; | ||
if(token){ | ||
let {family_name, given_name, name, upn} = decodeTokenPayload(token); | ||
var {family_name, given_name, name, upn} = decodeTokenPayload(token); | ||
if (!upn) { | ||
@@ -304,3 +304,3 @@ upn = decodeTokenPayload(token).email; | ||
function deserializeHash(query) { | ||
let match; | ||
var match; | ||
const pl = /\+/g; // Regex for replacing addition symbol with a space | ||
@@ -319,3 +319,3 @@ const search = /([^&=]+)=?([^&]*)/g; | ||
function getHash(hash) { | ||
let hashString = ''; | ||
var hashString = ''; | ||
if (hash.indexOf('#/') > -1) { | ||
@@ -349,5 +349,5 @@ hashString = hash.substring(hash.indexOf('#/') + 2); | ||
const state = getParameter('state'); | ||
let validToken = true; | ||
var validToken = true; | ||
if (token) { | ||
let { | ||
var { | ||
nonce, | ||
@@ -354,0 +354,0 @@ aud, |
{ | ||
"name": "authentication-adal-pkg", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An authentication SDK based on MS ADAL ", | ||
"main": "authentication.js", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "test": "echo \"Error: no test specified\" && exit 1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32631