[example] Add an example of how to use the authorization hook
Merge pull request #240 from lpinca/add/authorization-example

Add an example of how to use the authorization hook