Initial version for brivolabs sam
Updated version with json body support
Fixed bug when reading the oauth2 data for domain id