開發(fā)AndroidApp,使用新浪微博的OAuth2.0API進(jìn)行登陸,如何獲得授權(quán)access_token呢?還是只能通過用戶名/密碼進(jìn)行登陸?我知道網(wǎng)頁應(yīng)用可以請求https://api.weibo.com/oauth2/authorize;然后跳轉(zhuǎn)到redirect_uri頁面來獲取code和state;然后再請求https://api.weibo.com/oauth2/access_token獲取access_token。但在AndroidApp中如何設(shè)置redierct_uri?另外:如果自己實現(xiàn)一個OAuth2.0Server服務(wù),讓第三方知道用戶名和密碼是否有安全隱患?
Android App如何使用OAuth 2.0進(jìn)行登陸的
梵蒂岡之花
2019-04-23 15:18:32