Skip to content

Commit 8e75932

Browse files
Rename property
Rename property to use Id naming consistent with elsewhere in the code.
1 parent 9334f5d commit 8e75932

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/qq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ _None._
1919

2020
| Property Name | Property Type | Description | Default Value |
2121
|:--|:--|:--|:--|
22-
| `ApplyForUnionID` | `bool` | Set if the UnionID should be retrieved and put into user claims. | `false` |
22+
| `ApplyForUnionId` | `bool` | Set if the UnionID should be retrieved and put into user claims. | `false` |
2323
| `UserIdentificationEndpoint` | `string` | The address of the endpoint to use for user identification. | `QQAuthenticationDefaults.UserIdentificationEndpoint` |

src/AspNet.Security.OAuth.QQ/QQAuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected override async Task<OAuthTokenResponse> ExchangeCodeAsync([NotNull] OA
130130
["fmt"] = "json" // Return JSON instead of JSONP which is default due to historical reasons
131131
};
132132

133-
if (Options.ApplyForUnionID)
133+
if (Options.ApplyForUnionId)
134134
{
135135
queryString.Add("unionid", "1");
136136
}

src/AspNet.Security.OAuth.QQ/QQAuthenticationOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public QQAuthenticationOptions()
4040
/// <summary>
4141
/// Gets or sets if the union Id (the primary key of an owner for different apps of the QQ platform) should be put into the user claims.
4242
/// </summary>
43-
public bool ApplyForUnionID { get; set; }
43+
public bool ApplyForUnionId { get; set; }
4444

4545
/// <summary>
4646
/// Gets or sets the URL of the user identification endpoint (a.k.a. the "OpenID endpoint").

test/AspNet.Security.OAuth.Providers.Tests/QQ/QQTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected internal override void RegisterAuthentication(AuthenticationBuilder bu
2626
{
2727
builder.AddQQ(options =>
2828
{
29-
options.ApplyForUnionID = true;
29+
options.ApplyForUnionId = true;
3030
ConfigureDefaults(builder, options);
3131
});
3232
}

0 commit comments

Comments
 (0)