OAuth2 updated 

added custom param to retrieveAccessToken (e.g. for type) and a flag to send the token request with GET or POST