首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OAuth2:自定义授权

OAuth2:自定义授权
EN

Stack Overflow用户
提问于 2013-01-24 17:48:19
回答 1查看 586关注 0票数 1

我在导入spring-security-OAuth2的源代码时遇到了这个问题。我对XML不是很熟悉。

错误的代码是

代码语言:javascript
复制
<oauth2:authorization-server client-details-service-ref="clientDetails">
    <oauth2:authorization-code />
    <oauth2:custom-grant token-granter-ref="tokenGranter" />
</oauth2:authorization-server>

它报告了

代码语言:javascript
复制
cvc-complex-type.2.4.a: Invalid content was found starting with element 'oauth2:custom-grant'. One of '{"http://www.springframework.org/schema/security/oauth2":implicit, "http:// www.springframework.org/schema/security/oauth2":refresh-token, "http://www.springframework.org/schema/security/oauth2":client-credentials, "http://www.springframework.org/schema/ security/oauth2":password}' is expected.
EN

回答 1

Stack Overflow用户

发布于 2013-03-15 23:54:06

您使用的是不支持“自定义授权”的旧版本Spring Security OAuth。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14498267

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档