{"action":"created","issue":{"url":"https://api.github.com/repos/SCUT-StudentUnion/Market-backend/issues/12","repository_url":"https://api.github.com/repos/SCUT-StudentUnion/Market-backend","labels_url":"https://api.github.com/repos/SCUT-StudentUnion/Market-backend/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/SCUT-StudentUnion/Market-backend/issues/12/comments","events_url":"https://api.github.com/repos/SCUT-StudentUnion/Market-backend/issues/12/events","html_url":"https://github.com/SCUT-StudentUnion/Market-backend/pull/12","id":372525178,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NjgzOTQ1","number":12,"title":"提供URL级别的访问保护","user":{"login":"Kirhhoff","id":37506148,"node_id":"MDQ6VXNlcjM3NTA2MTQ4","avatar_url":"https://avatars3.githubusercontent.com/u/37506148?v=4","gravatar_id":"","url":"https://api.github.com/users/Kirhhoff","html_url":"https://github.com/Kirhhoff","followers_url":"https://api.github.com/users/Kirhhoff/followers","following_url":"https://api.github.com/users/Kirhhoff/following{/other_user}","gists_url":"https://api.github.com/users/Kirhhoff/gists{/gist_id}","starred_url":"https://api.github.com/users/Kirhhoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kirhhoff/subscriptions","organizations_url":"https://api.github.com/users/Kirhhoff/orgs","repos_url":"https://api.github.com/users/Kirhhoff/repos","events_url":"https://api.github.com/users/Kirhhoff/events{/privacy}","received_events_url":"https://api.github.com/users/Kirhhoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-22T13:38:30Z","updated_at":"2018-12-16T15:49:12Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/SCUT-StudentUnion/Market-backend/pulls/12","html_url":"https://github.com/SCUT-StudentUnion/Market-backend/pull/12","diff_url":"https://github.com/SCUT-StudentUnion/Market-backend/pull/12.diff","patch_url":"https://github.com/SCUT-StudentUnion/Market-backend/pull/12.patch"},"body":"因为只需要一个Admin\r\n所以我干了。。。\r\n我把那个WeChatProperties类单独摘出来放成了一个类，\r\n除了登陆账号、密码我还添加了。。\r\n--loginURL\r\n\tLogin界面的URL\r\n--loginSuccess\r\n\t登陆成功以后的默认跳转页面，可以被覆盖\r\n--loginError\r\n\t登陆失败的跳转页面\r\n--logoutURL\r\n\t登出的页面\r\n\r\n这些我全加到了WeChatProperties类的成员里面\r\n所以还需要在we-chat的属性里面再加上这几个URL\r\n我设成了NotNull\r\n总之，如果只需要一个admin，应该只改application配置文件就可以了"},"comment":{"url":"https://api.github.com/repos/SCUT-StudentUnion/Market-backend/issues/comments/447653449","html_url":"https://github.com/SCUT-StudentUnion/Market-backend/pull/12#issuecomment-447653449","issue_url":"https://api.github.com/repos/SCUT-StudentUnion/Market-backend/issues/12","id":447653449,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzY1MzQ0OQ==","user":{"login":"huww98","id":15710934,"node_id":"MDQ6VXNlcjE1NzEwOTM0","avatar_url":"https://avatars2.githubusercontent.com/u/15710934?v=4","gravatar_id":"","url":"https://api.github.com/users/huww98","html_url":"https://github.com/huww98","followers_url":"https://api.github.com/users/huww98/followers","following_url":"https://api.github.com/users/huww98/following{/other_user}","gists_url":"https://api.github.com/users/huww98/gists{/gist_id}","starred_url":"https://api.github.com/users/huww98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huww98/subscriptions","organizations_url":"https://api.github.com/users/huww98/orgs","repos_url":"https://api.github.com/users/huww98/repos","events_url":"https://api.github.com/users/huww98/events{/privacy}","received_events_url":"https://api.github.com/users/huww98/received_events","type":"User","site_admin":false},"created_at":"2018-12-16T15:49:12Z","updated_at":"2018-12-16T15:49:12Z","author_association":"MEMBER","body":"如果直接用它的这个登录机制的话，那登录信息应该是写在cookie里的吧？那可不能把csrf给禁用了呀。。要么想个办法让csrf和jwt共存，要么就管理员登录也用jwt？"}}
{"actor":{"display_login":"huww98"}}