Issue #48 fixed problem with grant_type passed in the query parameters.