adds authorize helper
Merge branch 'chudix' of github.com:farfanoide/agalma into chudix