Salesforce OAuth 2.0 API : get refresh_token with authorization URL launched in a normal browser

标签 salesforce oauth-2.0

在此页面中,提到仅针对不以 HTTPS 开头或指向 salesforce 的回调 URL 返回 refresh_token

https://na5.salesforce.com/help/doc/en/remoteaccess_oauth_user_agent_flow.htm

但是,在 SF->setup->develop->remote application Creation 页面中,它只需要以 HTTPS 开头的 URL 或像 abcd' 这样的任意字符串。

在浏览器中启动授权URL(即OAuth授权)时,是否有任何技巧可以获取refresh_token?

我们希望使用refresh_token来重新验证access_token(当它过期时),而不必提示登录窗口。

最佳答案

我们使用了错误的流程(用户代理流程)。如果我们使用WebServer flow,我们也会将refresh_token发送到https: urls

关于Salesforce OAuth 2.0 API : get refresh_token with authorization URL launched in a normal browser,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4997747/

相关文章:

java - 无法使用 JDBC 驱动程序连接到 Salesforce

salesforce - 获取变量不存在: String in an apex method

azure - 如何使用逻辑应用程序中的连接器连接到 Salesforce 的自定义对象

c# - 带有 OWIN 的 webapi 中的复杂 JSON Web token 数组

python - Django 1.7 google oauth2 token 验证失败

salesforce - 查找在 Salesforce.com 中使用对象的位置和方式

javascript - 访问 salesforce 外部的 ajax 工具包

javascript - Cordova/PhoneGap 中的 Dropbox.js 身份验证

java - 尝试重现 spring security OAuth2Login 示例时不断收到错误

asp.net-mvc-4 - 如何在asp.net mvc4中将OpenID迁移到OAuth