0
私は認可されるたびにrefresh_tokenを取得できないようです。ヘッダーを設定しようとしましたが、google oauthでどのように行われるかのようです。ここに私のプロセスです:oauth2
宝石SalesforceのRuby OAuthがrefresh_tokenを取得していない
インスタンス化クライアント
client = OAuth2::Client.new(
salesforce_app_key,
salesforce_secret_key,
site: 'https://login.salesforce.com/services/oauth2/',
authorize_url: 'https://login.salesforce.com/services/oauth2/authorize',
token_url: 'https://login.salesforce.com/services/oauth2/token',
raise_errors: false
)
を使用して
は、接続
auth = client.auth_code.authorize_url(
redirect_uri: 'https://my_app_callback.com/oauth/authorize'
)
がトークン
を取得認可token = client.auth_code.get_token(
code,
redirect_uri: 'https://my_app_callback.com/oauth/authorize'
)
接続の設定はありますが、私がtoken.refresh_token
を実行すると、値はゼロになります。使用することにより