2013-01-24 1 views
1

Je rencontre ce problème lorsque j'importe le code source de spring-security-OAuth2. Je ne suis pas très familier avec XML.oauth2: custom-grant

le mauvais code est

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

il a signalé

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. 

Répondre

0

Vous utilisez une ancienne version de OAuth Spring Security qui ne supporte pas les "-subvention personnalisée"