if params.get("oauth2GrantType"):
            params.put("oauth2GrantType", str(params.get("oauth2GrantType").name()).lower())