Based on silvester reverse-oauth2 module for ZF2, modification done to connection options - they are now configurable