oauth2的密码模式需要带client_id和client_secret参数,app端的client_secret怎么办?

新手上路,请多包涵

oauth2的password模式需要带client_id和client_secret参数,是不是得把client_secret保存在app客户端?

阅读 4.3k
1 个回答

是的,client_idclient_secret 都只是证明“该客户端是可信的”一种手段。而且官方的推荐用法也是给予受信任的第二方应用使用 Password Grant 验证模式。

This is exactly the thing OAuth was created to prevent in the first place, so you should never allow third-party apps to use this grant.
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进