@FeignClient(name="account")
@RequestMapping(value="/account")
public interface OauthManagerClient
@PostMapping(value="/oauth/token") OAuth2AccessTokenDto getAccessToken(@RequestParam(name="grant_type") String grant_type, @RequestParam(name="client_id") String client_id, @RequestParam(name="client_secret") String client_secret, @RequestParam(name="username",required=false) String username, @RequestParam(name="password",required=false) String password, @RequestParam(name="validitySeconds",required=false) String validitySeconds, @RequestParam(name="customToken",required=false) String customToken)
username - 用户名@GetMapping(value="/auth/check/module-authority")
boolean checkUsernameAuthority(@RequestParam(name="username")
String username,
@RequestParam(name="authority")
String authority,
@RequestParam(name="clientId",required=false)
String clientId)
username - 用户名authority - 权限码clientId - 应用编码@GetMapping(value="/auth/check/url-authority")
boolean checkUrlAuthority(@RequestParam(name="username")
String username,
@RequestParam(name="authority")
String authority,
@RequestParam(name="path")
String path,
@RequestParam(name="clientId")
String clientId,
@RequestParam(name="method")
String method)
username - 用户名authority - 权限码clientId - 应用编码@GetMapping(value="/auth/module/authority-code") String findModuleAuthority(@RequestParam(name="username") String username, @RequestParam(name="moduleCode") String moduleCode, @RequestParam(name="clientId",required=false) String clientId)
username - 用户名moduleCode - 模块编码clientId - 应用编码@GetMapping(value="/auth/url/authority-code") String findUrlAuthority(@RequestParam(name="username") String username, @RequestParam(name="path") String path, @RequestParam(name="clientId") String clientId, @RequestParam(name="method",required=false) String method)
username - 用户名path - 请求路径method - GET POST DELETE....clientId - 应用编码@GetMapping(value="/auth/menu/url-authority") Map<String,String> findMenuUrlAuthority(@RequestParam(name="username") String username, @RequestParam(name="path") String path, @RequestParam(name="clientId") String clientId, @RequestParam(name="method",required=false) String method)
username - 用户名path - 请求路径method - GET POST DELETE....clientId - 应用编码@GetMapping(value="/auth/menu/module-authority") Map<String,String> findMenuModuleAuthority(@RequestParam(name="username") String username, @RequestParam(name="moduleCode") String moduleCode, @RequestParam(name="clientId",required=false) String clientId)
username - 用户名moduleCode - 模块编码clientId - 应用编码@DeleteMapping(value="/auth/session")
void cleanSession(@RequestParam(name="username")
String username)
username - 用户名@Deprecated @PostMapping(value="/auth/url/access") BaseResultDto urlAccess(@RequestBody UrlAuthAccessDto dto)
dto - 用户及url信息实体@GetMapping(value="/auth/client/access/config") List<SecurityMetaUrlSource> listClientUrlAccessConfig(@RequestParam(name="clientId") String clientId)
clientId - 应用ID@GetMapping(value="/auth/data/authority") String userDataAuthority(@RequestParam(name="username",required=false) String username, @RequestParam(name="clientIp",required=false) String clientIp, @RequestParam(name="dataType") String dataType, @RequestParam(name="code") String code)
username - 用户名dataType - 数据类型code - 数据编码@GetMapping(value="/auth/data/{id}/authority")
DataAccessDto dataAuthorityById(@PathVariable(name="id")
String id,
@RequestParam(name="code",required=false)
String code,
@RequestParam(name="clientIp",required=false)
String clientIp)
id - 资源权限IDclientIp - 客户端IpCopyright © 2025 GTMAP. All rights reserved.