{"action":"opened","number":72,"pull_request":{"url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/pulls/72","id":59985409,"html_url":"https://github.com/spring-guides/tut-spring-security-and-angular-js/pull/72","diff_url":"https://github.com/spring-guides/tut-spring-security-and-angular-js/pull/72.diff","patch_url":"https://github.com/spring-guides/tut-spring-security-and-angular-js/pull/72.patch","issue_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/issues/72","number":72,"state":"open","locked":false,"title":"Navigate to home page when authenticated user clicks login","user":{"login":"duongvu89","id":9512917,"avatar_url":"https://avatars.githubusercontent.com/u/9512917?v=3","gravatar_id":"","url":"https://api.github.com/users/duongvu89","html_url":"https://github.com/duongvu89","followers_url":"https://api.github.com/users/duongvu89/followers","following_url":"https://api.github.com/users/duongvu89/following{/other_user}","gists_url":"https://api.github.com/users/duongvu89/gists{/gist_id}","starred_url":"https://api.github.com/users/duongvu89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duongvu89/subscriptions","organizations_url":"https://api.github.com/users/duongvu89/orgs","repos_url":"https://api.github.com/users/duongvu89/repos","events_url":"https://api.github.com/users/duongvu89/events{/privacy}","received_events_url":"https://api.github.com/users/duongvu89/received_events","type":"User","site_admin":false},"body":"May I add a minor fix for enter() function(added code is in bold):\r\nenter = function() {\r\n\t\t\t\tif ($location.path() != auth.loginPath) {\r\n\t\t\t\t\tauth.path = $location.path();\r\n\t\t\t\t\tif (!auth.authenticated) {\r\n\t\t\t\t\t\t$location.path(auth.loginPath);\r\n\t\t\t\t\t_**} else {\r\n\t\t\t\t\tif (auth.authenticated) {\r\n\t\t\t\t\t\t$location.path(auth.homePath);\r\n\t\t\t\t\t}\r\n\t\t\t\t}**_\r\n\t\t\t}\r\n\r\n","created_at":"2016-02-19T18:07:59Z","updated_at":"2016-02-19T18:07:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/pulls/72/commits","review_comments_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/pulls/72/comments","review_comment_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/issues/72/comments","statuses_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/statuses/dcaa6a3a1a1bc1ade5d4d2492c8b85afc00af524","head":{"label":"duongvu89:master","ref":"master","sha":"dcaa6a3a1a1bc1ade5d4d2492c8b85afc00af524","user":{"login":"duongvu89","id":9512917,"avatar_url":"https://avatars.githubusercontent.com/u/9512917?v=3","gravatar_id":"","url":"https://api.github.com/users/duongvu89","html_url":"https://github.com/duongvu89","followers_url":"https://api.github.com/users/duongvu89/followers","following_url":"https://api.github.com/users/duongvu89/following{/other_user}","gists_url":"https://api.github.com/users/duongvu89/gists{/gist_id}","starred_url":"https://api.github.com/users/duongvu89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duongvu89/subscriptions","organizations_url":"https://api.github.com/users/duongvu89/orgs","repos_url":"https://api.github.com/users/duongvu89/repos","events_url":"https://api.github.com/users/duongvu89/events{/privacy}","received_events_url":"https://api.github.com/users/duongvu89/received_events","type":"User","site_admin":false},"repo":{"id":37365153,"name":"spring-security-angular","full_name":"duongvu89/spring-security-angular","owner":{"login":"duongvu89","id":9512917,"avatar_url":"https://avatars.githubusercontent.com/u/9512917?v=3","gravatar_id":"","url":"https://api.github.com/users/duongvu89","html_url":"https://github.com/duongvu89","followers_url":"https://api.github.com/users/duongvu89/followers","following_url":"https://api.github.com/users/duongvu89/following{/other_user}","gists_url":"https://api.github.com/users/duongvu89/gists{/gist_id}","starred_url":"https://api.github.com/users/duongvu89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duongvu89/subscriptions","organizations_url":"https://api.github.com/users/duongvu89/orgs","repos_url":"https://api.github.com/users/duongvu89/repos","events_url":"https://api.github.com/users/duongvu89/events{/privacy}","received_events_url":"https://api.github.com/users/duongvu89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duongvu89/spring-security-angular","description":"Sample apps covering various scenarios with a single page of HTML (using Angular) and Spring Security","fork":true,"url":"https://api.github.com/repos/duongvu89/spring-security-angular","forks_url":"https://api.github.com/repos/duongvu89/spring-security-angular/forks","keys_url":"https://api.github.com/repos/duongvu89/spring-security-angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duongvu89/spring-security-angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duongvu89/spring-security-angular/teams","hooks_url":"https://api.github.com/repos/duongvu89/spring-security-angular/hooks","issue_events_url":"https://api.github.com/repos/duongvu89/spring-security-angular/issues/events{/number}","events_url":"https://api.github.com/repos/duongvu89/spring-security-angular/events","assignees_url":"https://api.github.com/repos/duongvu89/spring-security-angular/assignees{/user}","branches_url":"https://api.github.com/repos/duongvu89/spring-security-angular/branches{/branch}","tags_url":"https://api.github.com/repos/duongvu89/spring-security-angular/tags","blobs_url":"https://api.github.com/repos/duongvu89/spring-security-angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duongvu89/spring-security-angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duongvu89/spring-security-angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/duongvu89/spring-security-angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duongvu89/spring-security-angular/statuses/{sha}","languages_url":"https://api.github.com/repos/duongvu89/spring-security-angular/languages","stargazers_url":"https://api.github.com/repos/duongvu89/spring-security-angular/stargazers","contributors_url":"https://api.github.com/repos/duongvu89/spring-security-angular/contributors","subscribers_url":"https://api.github.com/repos/duongvu89/spring-security-angular/subscribers","subscription_url":"https://api.github.com/repos/duongvu89/spring-security-angular/subscription","commits_url":"https://api.github.com/repos/duongvu89/spring-security-angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/duongvu89/spring-security-angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/duongvu89/spring-security-angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/duongvu89/spring-security-angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/duongvu89/spring-security-angular/contents/{+path}","compare_url":"https://api.github.com/repos/duongvu89/spring-security-angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duongvu89/spring-security-angular/merges","archive_url":"https://api.github.com/repos/duongvu89/spring-security-angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duongvu89/spring-security-angular/downloads","issues_url":"https://api.github.com/repos/duongvu89/spring-security-angular/issues{/number}","pulls_url":"https://api.github.com/repos/duongvu89/spring-security-angular/pulls{/number}","milestones_url":"https://api.github.com/repos/duongvu89/spring-security-angular/milestones{/number}","notifications_url":"https://api.github.com/repos/duongvu89/spring-security-angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duongvu89/spring-security-angular/labels{/name}","releases_url":"https://api.github.com/repos/duongvu89/spring-security-angular/releases{/id}","deployments_url":"https://api.github.com/repos/duongvu89/spring-security-angular/deployments","created_at":"2015-06-13T09:09:44Z","updated_at":"2016-02-19T17:56:17Z","pushed_at":"2016-02-19T17:56:14Z","git_url":"git://github.com/duongvu89/spring-security-angular.git","ssh_url":"git@github.com:duongvu89/spring-security-angular.git","clone_url":"https://github.com/duongvu89/spring-security-angular.git","svn_url":"https://github.com/duongvu89/spring-security-angular","homepage":null,"size":1240,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spring-guides:master","ref":"master","sha":"d2ff4a0d95430bce6cab96d51e69ec30f54363fc","user":{"login":"spring-guides","id":4161866,"avatar_url":"https://avatars.githubusercontent.com/u/4161866?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-guides","html_url":"https://github.com/spring-guides","followers_url":"https://api.github.com/users/spring-guides/followers","following_url":"https://api.github.com/users/spring-guides/following{/other_user}","gists_url":"https://api.github.com/users/spring-guides/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-guides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-guides/subscriptions","organizations_url":"https://api.github.com/users/spring-guides/orgs","repos_url":"https://api.github.com/users/spring-guides/repos","events_url":"https://api.github.com/users/spring-guides/events{/privacy}","received_events_url":"https://api.github.com/users/spring-guides/received_events","type":"Organization","site_admin":false},"repo":{"id":28712582,"name":"tut-spring-security-and-angular-js","full_name":"spring-guides/tut-spring-security-and-angular-js","owner":{"login":"spring-guides","id":4161866,"avatar_url":"https://avatars.githubusercontent.com/u/4161866?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-guides","html_url":"https://github.com/spring-guides","followers_url":"https://api.github.com/users/spring-guides/followers","following_url":"https://api.github.com/users/spring-guides/following{/other_user}","gists_url":"https://api.github.com/users/spring-guides/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-guides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-guides/subscriptions","organizations_url":"https://api.github.com/users/spring-guides/orgs","repos_url":"https://api.github.com/users/spring-guides/repos","events_url":"https://api.github.com/users/spring-guides/events{/privacy}","received_events_url":"https://api.github.com/users/spring-guides/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spring-guides/tut-spring-security-and-angular-js","description":"Spring Security and Angular JS:: A tutorial on how to use Spring Security with a single page application with various backend architectures, ranging from a simple single server to an API gateway with OAuth2 authentication.","fork":false,"url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js","forks_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/forks","keys_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/teams","hooks_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/hooks","issue_events_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/issues/events{/number}","events_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/events","assignees_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/assignees{/user}","branches_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/branches{/branch}","tags_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/tags","blobs_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/languages","stargazers_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/stargazers","contributors_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/contributors","subscribers_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/subscribers","subscription_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/subscription","commits_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/contents/{+path}","compare_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/merges","archive_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/downloads","issues_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/issues{/number}","pulls_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/labels{/name}","releases_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/releases{/id}","deployments_url":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/deployments","created_at":"2015-01-02T12:22:27Z","updated_at":"2016-02-19T12:40:01Z","pushed_at":"2016-02-15T10:44:43Z","git_url":"git://github.com/spring-guides/tut-spring-security-and-angular-js.git","ssh_url":"git@github.com:spring-guides/tut-spring-security-and-angular-js.git","clone_url":"https://github.com/spring-guides/tut-spring-security-and-angular-js.git","svn_url":"https://github.com/spring-guides/tut-spring-security-and-angular-js","homepage":"https://spring.io/guides/tutorials/spring-security-and-angular-js/","size":1396,"stargazers_count":533,"watchers_count":533,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":603,"mirror_url":null,"open_issues_count":16,"forks":603,"open_issues":16,"watchers":533,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/pulls/72"},"html":{"href":"https://github.com/spring-guides/tut-spring-security-and-angular-js/pull/72"},"issue":{"href":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/issues/72"},"comments":{"href":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/spring-guides/tut-spring-security-and-angular-js/statuses/dcaa6a3a1a1bc1ade5d4d2492c8b85afc00af524"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":31,"deletions":19,"changed_files":9}}