diff --git a/avRegistration/login-directive/login-directive.js b/avRegistration/login-directive/login-directive.js index e06ae9f9..518bd9c7 100644 --- a/avRegistration/login-directive/login-directive.js +++ b/avRegistration/login-directive/login-directive.js @@ -690,6 +690,9 @@ angular.module('avRegistration') $cookies.put("user" + postfix, scope.email || response.data.username || response.data.email, options); $cookies.put("auth" + postfix, authToken, options); $cookies.put("isAdmin" + postfix, scope.isAdmin, options); + if (scope.isOpenId && response.data['id-token']) { + $cookies.put("id_token_" + postfix, response.data['id-token'], options); + } Authmethod.setAuth(authToken, scope.isAdmin, autheventid); var votingScreenPath = (scope.isQuery || (scope.base_authevent && scope.base_authevent.force_census_query)) ? '/eligibility' : '/vote'; if (scope.isAdmin) diff --git a/dist/appCommon-v10.5.3.js b/dist/appCommon-v10.5.3.js index e66b14f4..7725bba1 100644 --- a/dist/appCommon-v10.5.3.js +++ b/dist/appCommon-v10.5.3.js @@ -1824,6 +1824,9 @@ angular.module('avRegistration') $cookies.put("user" + postfix, scope.email || response.data.username || response.data.email, options); $cookies.put("auth" + postfix, authToken, options); $cookies.put("isAdmin" + postfix, scope.isAdmin, options); + if (scope.isOpenId && response.data['id-token']) { + $cookies.put("id_token_" + postfix, response.data['id-token'], options); + } Authmethod.setAuth(authToken, scope.isAdmin, autheventid); var votingScreenPath = (scope.isQuery || (scope.base_authevent && scope.base_authevent.force_census_query)) ? '/eligibility' : '/vote'; if (scope.isAdmin)