Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring security oauth2 userdetails和clientdetails之间的权限差异_Spring Security Oauth2 - Fatal编程技术网

Spring security oauth2 userdetails和clientdetails之间的权限差异

Spring security oauth2 userdetails和clientdetails之间的权限差异,spring-security-oauth2,Spring Security Oauth2,我正在学习SpringOAuth2框架,希望通过使用数据库存储来定制用户和客户机,但有一点我很困惑,userdetails和clientdetails的界面都有一个字段“authorities”,它们是相同的吗?如果没有,我如何与用户和客户端分别指定有关受保护资源的权限?如果他们指向同一个东西,哪一个是无用的?顺便说一下,我使用注释来配置应用程序

我正在学习SpringOAuth2框架,希望通过使用数据库存储来定制用户和客户机,但有一点我很困惑,userdetails和clientdetails的界面都有一个字段“authorities”,它们是相同的吗?如果没有,我如何与用户和客户端分别指定有关受保护资源的权限?如果他们指向同一个东西,哪一个是无用的?顺便说一下,我使用注释来配置应用程序