我可以在沒有明確用戶批准的情況下獲得 Linkedin oauth 訪問令牌嗎? (Could I get Linkedin oauth access token without explicitly user approve?)


問題描述

我可以在沒有明確用戶批准的情況下獲得 Linkedin oauth 訪問令牌嗎? (Could I get Linkedin oauth access token without explicitly user approve?)

I'm working on a web app in Java that wants to read the app's user's Linkedin profile. Linkedin API uses oAuth and requires a process of getting the verification code via a request URL, also with a pop window to confirm user's approve. 

However, my webapp is to be browsed in a restricted environment (ARM cpu + Linux), thus I want to do these verified stuff in the background, that is, stores the user's Linkedin account and passwd ahead, and get the access token by program, not done manually by user. Does oauth support such feature?

Thanks!


參考解法

方法 1:

The LinkedIn API Terms of Service strictly prohibit using the APIs in this manner, specifically 1.5(i) & 1.5(f).

In short, the user must be shown the API login screen, which as you mention is hosted on LinkedIn.com, and allows them to specify the lifespan of the approval.

(by churiverUnpossible)

參考文件

  1. Could I get Linkedin oauth access token without explicitly user approve? (CC BY-SA 3.0/4.0)

#linkedin #java #token #OAuth






相關問題

php中需要LinkedIn類型的朋友連接 (LinkedIn type friends connection required in php)

我可以在沒有明確用戶批准的情況下獲得 Linkedin oauth 訪問令牌嗎? (Could I get Linkedin oauth access token without explicitly user approve?)

Rails 3 Linkedin API 寶石 (Rails 3 Linkedin API gem)

如何在 iOS SDK 中獲取 LinkedIn 連接/朋友/聯繫人? (How to fetch LinkedIn connections/Friends/Contacts in iOS SDK?)

Linkedin 應用程序具有 OAuth 用戶令牌和 OAuth 用戶密鑰,它們會過期嗎? (Linkedin Application has OAuth User Token and OAuth User Secret, Do they Expire?)

LinkedIn 獲取個人資料提要或新聞提要 2015 (LinkedIn get profile feed or news feed 2015)

OAuth2::LinkedIn 錯誤 (OAuth2::Error with LinkedIn)

如果 Android 中未安裝 LinkedIn 本機應用程序,如何使用 LinkedIn 登錄和發布? (How to login and post with LinkedIn if LinkedIn native app is not installed in android?)

使用 JS API 集成 LinkedIn 登錄 (Integrate LinkedIn login using JS API)

Linkedin oauth2 r_liteprofile 沒有從 api 返回 (Linkedin oauth2 r_liteprofile not being returned from api)

LinkedIn OAuth2.0 使會話無效/強制重新授權 (LinkedIn OAuth2.0 Invalidate Session / Force re-authorization)

LinkedIn API v2 獲取用戶信息 (LinkedIn API v2 get user info)







留言討論