oauth 2.0 - Mule HTTP Request Config with OAuth2 -


i experimenting oauth2 on http request connector. throwing below exception always:

saxparseexception: cvc-complex-type.2.4.a: invalid content found starting element 'oauth2:authorization-code-grant-type'. 1 of '{"http://www.mulesoft.org/schema/mule/core":annotations, "http://www.mulesoft.org/schema/mule/http":abstract-http-request-authentication-provider, "http://www.mulesoft.org/schema/mule/tcp":client-socket-properties, "http://www.mulesoft.org/schema/mule/tls":context, "http://www.mulesoft.org/schema/mule/http":raml-api-configuration, "http://www.mulesoft.org/schema/mule/http":proxy, "http://www.mulesoft.org/schema/mule/http":ntlm-proxy}' expected 

here configuration:

<http:request-config name="sf_authorize_configuration" protocol="https" host="${login.host}" basepath="${oauth2.url}" port="80" doc:name="authorize configuration" >     <oauth2:authorization-code-grant-type clientid="my_client_id" clientsecret="my_client_secret" redirectionurl="http://localhost:8081/oauth2callback">         <oauth2:authorization-request authorizationurl="https://my.api.com/services/oauth2/authorize" localauthorizationurl="http://localhost:8082/authorization" scopes="access_user_details, read_user_files">         </oauth2:authorization-request>         <oauth2:token-request tokenurl="https://my.api.com/services/oauth2/token"/>     </oauth2:authorization-code-grant-type> </http:request-config> 

this means have not provided xml namespace xml tag.

if have not used ui create please create using design , can copy , paste specific tag later replacing it.

edited answer,

it similar me api kit. re installed studio(unzipped again). might work .


Comments