Last active
December 18, 2015 07:09
-
-
Save nialdarbey/5745002 to your computer and use it in GitHub Desktop.
Example of OAuth protected flow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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