C# Class DevZH.AspNetCore.Authentication.Baidu.BaiduHelper

Contains static methods that allow to extract user's information from a JObject instance retrieved from Baidu after a successful authentication process.
Show file Open project: noliar/MoreAuthentication Class Usage Examples

Public Methods

Method Description
GetId ( Newtonsoft.Json.Linq.JObject user ) : string

获取百度账号 ID

GetName ( Newtonsoft.Json.Linq.JObject user ) : string

获取百度账号昵称

GetPortrait ( Newtonsoft.Json.Linq.JObject user ) : string

获取百度账号标识,一般用来获取头像

Method Details

GetId() public static method

获取百度账号 ID
public static GetId ( Newtonsoft.Json.Linq.JObject user ) : string
user Newtonsoft.Json.Linq.JObject
return string

GetName() public static method

获取百度账号昵称
public static GetName ( Newtonsoft.Json.Linq.JObject user ) : string
user Newtonsoft.Json.Linq.JObject
return string

GetPortrait() public static method

获取百度账号标识,一般用来获取头像
public static GetPortrait ( Newtonsoft.Json.Linq.JObject user ) : string
user Newtonsoft.Json.Linq.JObject
return string