test: 增加腾讯与阿里 OAuth 认证登录单元测试
This commit is contained in:
parent
6e594b08a7
commit
97ebce39ac
|
@ -12,7 +12,7 @@ namespace Bootstrap.Admin.Controllers
|
|||
protected HttpClient client { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="factory"></param>
|
||||
/// <param name="baseAddress"></param>
|
||||
|
@ -111,6 +111,8 @@ namespace Bootstrap.Admin.Controllers
|
|||
[InlineData("Gitee")]
|
||||
[InlineData("GitHub")]
|
||||
[InlineData("WeChat")]
|
||||
[InlineData("Alipay")]
|
||||
[InlineData("Tencent")]
|
||||
public async void OAuth_Ok(string url)
|
||||
{
|
||||
var r = await client.GetAsync($"/Account/{url}");
|
||||
|
|
|
@ -67,6 +67,12 @@
|
|||
"WeChatOptions": {
|
||||
"Enabled": false
|
||||
},
|
||||
"TencentOptions": {
|
||||
"Enabled": false
|
||||
},
|
||||
"AlipayOptions": {
|
||||
"Enabled": false
|
||||
},
|
||||
"SMSOptions": {
|
||||
"CompanyCode": "<CompanyCode>",
|
||||
"MD5Key": "MD5Key",
|
||||
|
|
Loading…
Reference in New Issue