一、OAuth2.0 的四種授權(quán)模式:
1. 授權(quán)碼(認(rèn)證碼)模式 (Authorization code) response_type=code
2. 簡化(隱形)模式 (Impilict) response_type=token
3. 用戶名密碼模式 (Resource Owner Password Credential) grant_type=password
4. 客戶端模式 (Client Credential) grant_type=client_credential
OAuth2.0的核心既是取得access_token,四種授權(quán)模式殊途同歸,最終都是要取得access_token,只是路徑不同,參數(shù)不同,具體可以參考RFC.
[RFC]https://tools.ietf.org/html/rfc6749
[.NET]https://github.com/cplate/oauth2
原文:https://www.2cto.com/kf/201602/489372.html
客戶端模式使用參考:http://www.itdecent.cn/p/91eaca49b451