1

spring-security-OAuth2 のソースコードをインポートすると、この問題が発生します。私は XML にあまり詳しくありません。

間違ったコードは

<oauth2:authorization-server client-details-service-ref="clientDetails">
    <oauth2:authorization-code />
    <oauth2:custom-grant token-granter-ref="tokenGranter" />
</oauth2:authorization-server>

報告した

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.
4

1 に答える 1

0

「custom-grant」をサポートしていない古いバージョンの Spring Security OAuth を使用しています

于 2013-03-15T15:54:05.957 に答える