/// <summary> /// 获取oauth授权地址 /// </summary> /// <param name="plat"></param> /// <param name="redirectUrl"></param> /// <param name="state"></param> /// <param name="type"></param> /// <returns></returns> public Task <StrResp> GetOauthUrl(SocialPlatform plat, string redirectUrl, string state, OauthClientType type) { return(GetOauthAdapter(plat).GetOauthUrl(redirectUrl, state, type)); }
/// <inheritdoc /> public Task <StrResp> GetOauthUrl(string redirectUrl, string state, OauthClientType type) { return(GetAuthorizeUrl(redirectUrl, state, (AuthClientType)type)); }
/// <summary> /// 获取授权地址 /// </summary> /// <param name="redirectUrl"></param> /// <param name="state"></param> /// <param name="type"></param> /// <returns></returns> public virtual Task<StrResp> GetOauthUrl(string redirectUrl, string state, OauthClientType type) { return Task.FromResult(new StrResp().WithResp(_errResp)); }