dueros / dcs-sdk-js

Apache License 2.0
79 stars 26 forks source link

REDIRECT_URI 是什么 #3

Closed jacquesqiao closed 7 years ago

jacquesqiao commented 7 years ago

请问申请 access_token 用到的REDIRECT_URI 是什么?

rench commented 7 years ago

I think REDIRECT_URI is the config in your baidu system App control panel, After Baidu Auth success ,it will redirect to you REDIRECT_URI when is provided,and the token value and token session id will append to the REDIRECT_URI.

wwwppp0801 commented 7 years ago

可以在 http://developer.dueros.baidu.com/ 申请开发者账号,之后就可以创建应用。

对于每个应用,有一个oauth账号,有对应的client_id、client_secret,也可以配置oauth账号的redirect_uri(用户授权后跳转到的地址)

百度支持的oauth协议,文档在 http://developer.baidu.com/wiki/index.php?title=docs/oauth (一般的开发者应用不能用来访问dueros,必须是在developer.dueros.baidu.com里申请的)