Skip to content

Instantly share code, notes, and snippets.

@nialdarbey
Last active December 18, 2015 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nialdarbey/5745002 to your computer and use it in GitHub Desktop.
Save nialdarbey/5745002 to your computer and use it in GitHub Desktop.
Example of OAuth protected flow
<flow name="createProduct" doc:name="createProduct">
<oauth2-provider:validate scopes="WRITE" config-ref="oauth2-provider" doc:name="Validate WRITE scope" />
<logger level="INFO" doc:name="Logger"/>
<jdbc-ee:outbound-endpoint exchange-pattern="request-response" queryTimeout="-1" connector-ref="Database" doc:name="Select Manufacturers">
<jdbc-ee:query key="insert" value="insert into products (name, description) values (#[payload.name], #[payload.description])"/>
</jdbc-ee:outbound-endpoint>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment