Skip to content

Commit d43a53e

Browse files
dyzymartincostello
authored andcommitted
Odnoklassniki provider: rename picX to imageX
1 parent 2698bbe commit d43a53e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/AspNet.Security.OAuth.Odnoklassniki/OdnoklassnikiAuthenticationConstants.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ public static class OdnoklassnikiAuthenticationConstants
1313
{
1414
public static class Claims
1515
{
16-
public const string Pic1 = "urn:ok:pic1";
17-
public const string Pic2 = "urn:ok:pic2";
18-
public const string Pic3 = "urn:ok:pic3";
16+
public const string Image1 = "urn:ok:image1";
17+
public const string Image2 = "urn:ok:image2";
18+
public const string Image3 = "urn:ok:image3";
1919
}
2020
}
2121
}

src/AspNet.Security.OAuth.Odnoklassniki/OdnoklassnikiAuthenticationOptions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ public OdnoklassnikiAuthenticationOptions()
4242
ClaimActions.MapJsonKey(ClaimTypes.GivenName, "first_name");
4343
ClaimActions.MapJsonKey(ClaimTypes.DateOfBirth, "birthday");
4444
ClaimActions.MapJsonKey(ClaimTypes.Locality, "locale");
45-
ClaimActions.MapJsonKey(Claims.Pic1, "pic_1");
46-
ClaimActions.MapJsonKey(Claims.Pic2, "pic_2");
47-
ClaimActions.MapJsonKey(Claims.Pic3, "pic_3");
45+
ClaimActions.MapJsonKey(Claims.Image1, "pic_1");
46+
ClaimActions.MapJsonKey(Claims.Image2, "pic_2");
47+
ClaimActions.MapJsonKey(Claims.Image3, "pic_3");
4848
}
4949

5050
/// <summary>

test/AspNet.Security.OAuth.Providers.Tests/Odnoklassniki/OdnoklassnikiTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ protected internal override void RegisterAuthentication(AuthenticationBuilder bu
4040
[InlineData(ClaimTypes.GivenName, "Vasya")]
4141
[InlineData(ClaimTypes.DateOfBirth, "1998-12-08")]
4242
[InlineData(ClaimTypes.Locality, "ru")]
43-
[InlineData("urn:ok:pic1", "https://i.mycdn.me/res/stub_50x50.gif")]
44-
[InlineData("urn:ok:pic2", "https://i.mycdn.me/res/stub_128x96.gif")]
45-
[InlineData("urn:ok:pic3", "https://i.mycdn.me/res/stub_128x96.gif")]
43+
[InlineData("urn:ok:image1", "https://i.mycdn.me/res/stub_50x50.gif")]
44+
[InlineData("urn:ok:image2", "https://i.mycdn.me/res/stub_128x96.gif")]
45+
[InlineData("urn:ok:image3", "https://i.mycdn.me/res/stub_128x96.gif")]
4646
public async Task Can_Sign_In_Using_Odnoklassniki(string claimType, string claimValue)
4747
{
4848
// Arrange

0 commit comments

Comments
 (0)