{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityModel/oidc-token-manager/issues/51","repository_url":"https://api.github.com/repos/IdentityModel/oidc-token-manager","labels_url":"https://api.github.com/repos/IdentityModel/oidc-token-manager/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/IdentityModel/oidc-token-manager/issues/51/comments","events_url":"https://api.github.com/repos/IdentityModel/oidc-token-manager/issues/51/events","html_url":"https://github.com/IdentityModel/oidc-token-manager/issues/51","id":137969640,"number":51,"title":"Error:  RSA Keys Empty","user":{"login":"nathanhokanson","id":17147533,"avatar_url":"https://avatars.githubusercontent.com/u/17147533?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanhokanson","html_url":"https://github.com/nathanhokanson","followers_url":"https://api.github.com/users/nathanhokanson/followers","following_url":"https://api.github.com/users/nathanhokanson/following{/other_user}","gists_url":"https://api.github.com/users/nathanhokanson/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanhokanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanhokanson/subscriptions","organizations_url":"https://api.github.com/users/nathanhokanson/orgs","repos_url":"https://api.github.com/users/nathanhokanson/repos","events_url":"https://api.github.com/users/nathanhokanson/events{/privacy}","received_events_url":"https://api.github.com/users/nathanhokanson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IdentityModel/oidc-token-manager/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-02T19:34:17Z","updated_at":"2016-04-02T01:01:33Z","closed_at":null,"body":"I have a simple SPA based very loosely on the https://github.com/GeertHuls/SecuredApi app, although I have simplified the js a little for testing purposes.  I am able to authenticate to my OpenID Connect server , but when I call the processTokenCallbackAsync with the hash I get the error listed in the subject line.  I don't see anything in the documentation about needing RSA keys installed, but I might be missing something.\r\n\r\nHere is my javascript:\r\n\r\n;(function(angular){\r\n  \"use strict\";\r\n  angular.module(\"authTest\", [\"ngRoute\"])\r\n\t\t.factory(\"tokenManager\",  tokenManager)\r\n    .controller('loginController', loginController)\r\n    .controller(\"visualizationController\", visualizationController)\r\n    .run(['$location', 'tokenManager', function($location, tokenManager) {\r\n      var hash = $location.path();\r\n      if (hash){\r\n        // take off the first character, for some reason $location is adding a\r\n        // / in front of the hash.  $location.hash() doesn't return the hash\r\n\r\n        var results = tokenManager.processTokenCallbackAsync(hash.substring(1, hash.length -1)).then(\r\n          function(response){\r\n            console.log(\"Success processing token\");\r\n          },\r\n          function(error){\r\n            console.log(\"Error:  \" + error);\r\n          }\r\n        );\r\n      }\r\n    }])\r\n  ;\r\n  function tokenManager ($browser) {\r\n\r\n    var that = this;\r\n\r\n    var config = {\r\n      client_id: \"@!A327.AD27.2230.958B!0001!8CD6.E534!0008!3BFF.B2A2\",\r\n      authority: \"https://nathan-desktop.<domain>.net/\",\r\n      redirect_uri: window.location.protocol + \"//\" + window.location.host + $browser.baseHref() + \"/new-ui/index.html\",\r\n      post_logout_redirect_uri: window.location.protocol + \"//\" + window.location.host + $browser.baseHref() + \"/new-ui/index.html\",\r\n      response_type: \"id_token token\",\r\n      scope: \"openid profile email roles fox\",\r\n      silent_redirect_uri: window.location.protocol + \"//\" + window.location.host + $browser.baseHref() + \"frame.html\",\r\n      silent_renew: true\r\n    };\r\n\r\n    var manager = new OidcTokenManager(config);\r\n\r\n    var tokenExpired = function () {\r\n      manager.removeToken();\r\n    };\r\n\r\n    var tokenObtained = function() {\r\n      console.log(\"Obtained token:  \" + manager.id_token);\r\n    }\r\n\r\n    manager.addOnTokenExpired(tokenExpired);\r\n    manager.addOnTokenObtained(tokenObtained);\r\n    manager.addOnSilentTokenRenewFailed(tokenExpired);\r\n\r\n    return manager;\r\n  }\r\n  \r\n  function loginController(tokenManager) { \r\n    var vm = this;\r\n\r\n\t\tvm.login = function () {\r\n\t\t    tokenManager.redirectForToken();\r\n\t\t};\r\n\r\n\t\tvm.logout = function () {\r\n\t\t\ttokenManager.redirectForLogout();\r\n\t\t};\r\n  }\r\n\r\n  function visualizationController(tokenManager) {\r\n    var vm = this;\r\n    vm.id_token = tokenManager.id_token;\r\n    vm.access_token = tokenManager.access_token;\r\n  }\r\n\r\n})(window.angular);"},"comment":{"url":"https://api.github.com/repos/IdentityModel/oidc-token-manager/issues/comments/204620389","html_url":"https://github.com/IdentityModel/oidc-token-manager/issues/51#issuecomment-204620389","issue_url":"https://api.github.com/repos/IdentityModel/oidc-token-manager/issues/51","id":204620389,"user":{"login":"brockallen","id":649492,"avatar_url":"https://avatars.githubusercontent.com/u/649492?v=3","gravatar_id":"","url":"https://api.github.com/users/brockallen","html_url":"https://github.com/brockallen","followers_url":"https://api.github.com/users/brockallen/followers","following_url":"https://api.github.com/users/brockallen/following{/other_user}","gists_url":"https://api.github.com/users/brockallen/gists{/gist_id}","starred_url":"https://api.github.com/users/brockallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockallen/subscriptions","organizations_url":"https://api.github.com/users/brockallen/orgs","repos_url":"https://api.github.com/users/brockallen/repos","events_url":"https://api.github.com/users/brockallen/events{/privacy}","received_events_url":"https://api.github.com/users/brockallen/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T01:01:33Z","updated_at":"2016-04-02T01:01:33Z","body":"This has been addressed in the oidc-client-js rework here: https://github.com/IdentityModel/oidc-client-js/issues/2 and the issue (that I forgot about) that was tracking this fix: https://github.com/IdentityModel/oidc-client-js/issues/10"}}