我正在尝试在REST API上注册新用户,请求应该如下:
POST /api/oauth/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Authorization: Basic YW75cm9pZC12tb28Jp8bGU6c2Vj
grant_type=client_credentials&scope=write
问题1:授权码是静态的,每次请求新用户时必须相同,还是每次都应该生成一个新的base46代码?
问题2:grant_type是一个参数请求还是一个请求体(我应该将其作为请求体发送还是作为参数发送)
非常感谢您提前的帮助!