0

如果在“授权”步骤中为“状态”参数传递了 json 对象,Uber oauth api 会抛出“无效请求参数”错误。优步 oauth2 文档

我的授权网址如下所示:-

https://login.uber.com/oauth/authorize?scope=profile+history_lite+request&state=%7B%27callback%27%3A+%27amazing_token_callback%27%2C+%27lib_id%27%3A+%27uber%27%2C+%27host%27%3A+%27http%3A%2F%2F192.168.1.5%3A8080%2F%27%7D&redirect_uri=https%3A%2F%2Fdev.myamazinguber.com%2Ftoken&response_type=code&client_id=xxxxxxxxxxxxxxxxxx

如果我将“状态”值更改为“{}”,它仍然会引发错误。它不会为非 json 字符串对象抛出错误。

我的问题是在授权步骤中可以作为“状态”参数传递的内容有任何限制。

4

0 回答 0