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