You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
445 B
22 lines
445 B
package com.ruoyi.auth.controller;
|
|
|
|
import java.security.Principal;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
/**
|
|
* 身份信息获取
|
|
*
|
|
* @author ruoyi
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/oauth")
|
|
public class UserController
|
|
{
|
|
@RequestMapping("/user")
|
|
public Principal user(Principal user)
|
|
{
|
|
return user;
|
|
}
|
|
}
|