Skip to content

Commit bedc8a2

Browse files
authored
Fix #1586 - add correct Preserve attribute (#1599)
* Fix #1586 - add correct Preseve attribute * remove dead * Removing switch to log page on mobile test failure
1 parent bb65754 commit bedc8a2

File tree

22 files changed

+65
-38
lines changed

22 files changed

+65
-38
lines changed

src/client/Microsoft.Identity.Client/Cache/AdalResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.Identity.Client.Cache
1212
/// with MSAL, only Refresh Tokens are.
1313
/// </summary>
1414
[JsonObject]
15-
[Preserve]
15+
[Preserve(AllMembers = true)]
1616
internal sealed class AdalResult
1717
{
1818
internal AdalResult()

src/client/Microsoft.Identity.Client/Cache/AdalResultWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace Microsoft.Identity.Client.Cache
1010
{
1111
[JsonObject]
12-
[Preserve]
12+
[Preserve(AllMembers = true)]
1313
internal class AdalResultWrapper
1414
{
1515
[JsonProperty]

src/client/Microsoft.Identity.Client/Cache/AdalUserInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.Identity.Client.Cache
1010
/// Contains information of a single user. This information is used for token cache lookup. Also if created with userId, userId is sent to the service when login_hint is accepted.
1111
/// </summary>
1212
[JsonObject]
13-
[Preserve]
13+
[Preserve(AllMembers = true)]
1414
internal sealed class AdalUserInfo
1515
{
1616
/// <summary>

src/client/Microsoft.Identity.Client/Core/ClientInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
namespace Microsoft.Identity.Client.Core
1010
{
1111
[JsonObject]
12-
[Preserve]
12+
[Preserve(AllMembers = true)]
1313
internal class ClientInfo
1414
{
15-
[JsonProperty(PropertyName = ClientInfoClaim.UniqueIdentifier )]
15+
[JsonProperty(PropertyName = ClientInfoClaim.UniqueIdentifier)]
1616
public string UniqueObjectIdentifier { get; set; }
1717

1818
[JsonProperty(PropertyName = ClientInfoClaim.UniqueTenantIdentifier)]

src/client/Microsoft.Identity.Client/Core/IdToken.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal class IdTokenClaim
2424
}
2525

2626
[JsonObject]
27-
[Preserve]
27+
[Preserve(AllMembers = true)]
2828
internal class IdToken
2929
{
3030
[JsonProperty(PropertyName = IdTokenClaim.Issuer)]

src/client/Microsoft.Identity.Client/Instance/AdfsWebFingerResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class AdfsWebFingerResponseClaim : OAuth2ResponseBaseClaim
1616
}
1717

1818
[JsonObject(Title = AdfsWebFingerResponseClaim.Links)]
19-
[Preserve]
19+
[Preserve(AllMembers = true)]
2020
internal class LinksList
2121
{
2222
[JsonProperty(PropertyName = AdfsWebFingerResponseClaim.Rel)]
@@ -27,7 +27,7 @@ internal class LinksList
2727
}
2828

2929
[JsonObject]
30-
[Preserve]
30+
[Preserve(AllMembers = true)]
3131
internal class AdfsWebFingerResponse : OAuth2ResponseBase
3232
{
3333
[JsonProperty(PropertyName = AdfsWebFingerResponseClaim.Subject)]

src/client/Microsoft.Identity.Client/Instance/Discovery/InstanceDiscoveryMetadataEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Microsoft.Identity.Client.Instance.Discovery
77
{
88
[JsonObject]
9-
[Preserve]
9+
[Preserve(AllMembers = true)]
1010
internal sealed class InstanceDiscoveryMetadataEntry
1111
{
1212
[JsonProperty(PropertyName = "preferred_network")]

src/client/Microsoft.Identity.Client/Instance/Discovery/InstanceDiscoveryResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Microsoft.Identity.Client.Instance.Discovery
88
{
99
[JsonObject]
10-
[Preserve]
10+
[Preserve(AllMembers = true)]
1111
internal sealed class InstanceDiscoveryResponse : OAuth2ResponseBase
1212
{
1313
[JsonProperty(PropertyName = "tenant_discovery_endpoint")]

src/client/Microsoft.Identity.Client/Instance/DrsMetadataResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ internal class DrsMetadataResponseClaim : OAuth2ResponseBaseClaim
1414
}
1515

1616
[JsonObject]
17-
[Preserve]
17+
[Preserve(AllMembers = true)]
1818
internal class IdentityProviderService
1919
{
2020
[JsonProperty(PropertyName = DrsMetadataResponseClaim.PassiveAuthEndpoint)]
2121
public Uri PassiveAuthEndpoint { get; set; }
2222
}
2323

2424
[JsonObject]
25-
[Preserve]
25+
[Preserve(AllMembers = true)]
2626
internal class DrsMetadataResponse : OAuth2ResponseBase
2727
{
2828
[JsonProperty(PropertyName = DrsMetadataResponseClaim.IdentityProviderService)]

src/client/Microsoft.Identity.Client/Instance/TenantDiscoveryResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal class TenantDiscoveryResponseClaim : OAuth2ResponseBaseClaim
1414
}
1515

1616
[JsonObject]
17-
[Preserve]
17+
[Preserve(AllMembers = true)]
1818
internal class TenantDiscoveryResponse : OAuth2ResponseBase
1919
{
2020
[JsonProperty(PropertyName = TenantDiscoveryResponseClaim.AuthorizationEndpoint)]

0 commit comments

Comments
 (0)