浏览代码

优化test

zhou-hao 7 年之前
父节点
当前提交
090f48b305

+ 2 - 4
hsweb-examples/hsweb-examples-oauth2/hsweb-examples-oauth2-client/src/main/java/org/hswebframework/web/example/oauth2/IndexController.java

@@ -26,8 +26,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
 /**
- * TODO 完成注释
- *
  * @author zhouhao
  */
 @RestController
@@ -41,8 +39,8 @@ public class IndexController {
 
     @GetMapping("/test")
     @Authorize(role = "admin")
-    public ResponseMessage auth() {
-        return ResponseMessage.ok("admin角色");
+    public ResponseMessage auth(Authentication authentication) {
+        return ResponseMessage.ok(authentication);
     }
 
     @GetMapping("/test2")