angular-oauth2-oidc
Advanced tools
Comparing version 2.0.14 to 2.0.15
@@ -131,2 +131,12 @@ (function (global, factory) { | ||
/** | ||
* @param {?} str | ||
* @return {?} | ||
*/ | ||
function b64DecodeUnicode(str) { | ||
return decodeURIComponent(atob(str).split('').map(function (c) { | ||
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2); | ||
}).join('')); | ||
} | ||
/** | ||
* Service for logging in and logging out with | ||
@@ -999,6 +1009,6 @@ OIDC and OAuth2. Supports implicit flow and | ||
var /** @type {?} */ headerBase64 = this.padBase64(tokenParts[0]); | ||
var /** @type {?} */ headerJson = atob(headerBase64); | ||
var /** @type {?} */ headerJson = b64DecodeUnicode(headerBase64); | ||
var /** @type {?} */ header = JSON.parse(headerJson); | ||
var /** @type {?} */ claimsBase64 = this.padBase64(tokenParts[1]); | ||
var /** @type {?} */ claimsJson = atob(claimsBase64); | ||
var /** @type {?} */ claimsJson = b64DecodeUnicode(claimsBase64); | ||
var /** @type {?} */ claims = JSON.parse(claimsJson); | ||
@@ -1005,0 +1015,0 @@ var /** @type {?} */ savedNonce = this._storage.getItem("nonce"); |
14
index.js
@@ -140,2 +140,12 @@ import { Injectable, NgModule } from '@angular/core'; | ||
/** | ||
* @param {?} str | ||
* @return {?} | ||
*/ | ||
function b64DecodeUnicode(str) { | ||
return decodeURIComponent(atob(str).split('').map(function (c) { | ||
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2); | ||
}).join('')); | ||
} | ||
/** | ||
* Service for logging in and logging out with | ||
@@ -1008,6 +1018,6 @@ OIDC and OAuth2. Supports implicit flow and | ||
var /** @type {?} */ headerBase64 = this.padBase64(tokenParts[0]); | ||
var /** @type {?} */ headerJson = atob(headerBase64); | ||
var /** @type {?} */ headerJson = b64DecodeUnicode(headerBase64); | ||
var /** @type {?} */ header = JSON.parse(headerJson); | ||
var /** @type {?} */ claimsBase64 = this.padBase64(tokenParts[1]); | ||
var /** @type {?} */ claimsJson = atob(claimsBase64); | ||
var /** @type {?} */ claimsJson = b64DecodeUnicode(claimsBase64); | ||
var /** @type {?} */ claims = JSON.parse(claimsJson); | ||
@@ -1014,0 +1024,0 @@ var /** @type {?} */ savedNonce = this._storage.getItem("nonce"); |
{ | ||
"name": "angular-oauth2-oidc", | ||
"version": "2.0.14", | ||
"version": "2.0.15", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
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
163230
15
3579