Skip to content

Commit 9007524

Browse files
committed
Remove jsonObject
1 parent 4084879 commit 9007524

21 files changed

+7
-49
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ namespace Microsoft.Identity.Client.Cache
1010
/// Contains the results of an ADAL token acquisition. Access Tokens from ADAL are not compatible
1111
/// with MSAL, only Refresh Tokens are.
1212
/// </summary>
13-
[JsonObject]
1413
[Preserve(AllMembers = true)]
1514
internal sealed class AdalResult
1615
{

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Microsoft.Identity.Client.Cache
88
{
9-
[JsonObject]
109
[Preserve(AllMembers = true)]
1110
internal class AdalResultWrapper
1211
{

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ namespace Microsoft.Identity.Client.Cache
1010
/// <summary>
1111
/// 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.
1212
/// </summary>
13-
[JsonObject]
1413
[Preserve(AllMembers = true)]
1514
internal sealed class AdalUserInfo
1615
{

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Microsoft.Identity.Client.Instance.Discovery
88
{
9-
[JsonObject]
109
[Preserve(AllMembers = true)]
1110
internal sealed class InstanceDiscoveryMetadataEntry
1211
{

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
namespace Microsoft.Identity.Client.Instance.Discovery
99
{
10-
[JsonObject]
1110
[Preserve(AllMembers = true)]
1211
internal sealed class InstanceDiscoveryResponse : OAuth2ResponseBase
1312
{

src/client/Microsoft.Identity.Client/Instance/Oidc/OidcMetadata.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
using System;
5-
using System.Collections.Generic;
6-
using System.Linq;
7-
using System.Text;
8-
using System.Threading.Tasks;
9-
using Microsoft.Identity.Client.Platforms.net;
104
using JsonProperty = System.Text.Json.Serialization.JsonPropertyNameAttribute;
115

126
namespace Microsoft.Identity.Client.Instance.Oidc
137
{
14-
[JsonObject]
158
[Preserve(AllMembers = true)]
169
internal class OidcMetadata
1710
{

src/client/Microsoft.Identity.Client/Instance/Region/LocalImdsErrorResponse.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
namespace Microsoft.Identity.Client.Region
99
{
10-
[JsonObject]
1110
[Preserve(AllMembers = true)]
1211
internal sealed class LocalImdsErrorResponse
1312
{

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ internal class AdfsWebFingerResponseClaim : OAuth2ResponseBaseClaim
1616
public const string Rel = "rel";
1717
public const string Href = "href";
1818
}
19-
20-
[JsonObject(Title = AdfsWebFingerResponseClaim.Links)]
19+
2120
[Preserve(AllMembers = true)]
2221
internal class LinksList
2322
{
@@ -27,8 +26,7 @@ internal class LinksList
2726
[JsonProperty(AdfsWebFingerResponseClaim.Href)]
2827
public string Href { get; set; }
2928
}
30-
31-
[JsonObject]
29+
3230
[Preserve(AllMembers = true)]
3331
internal class AdfsWebFingerResponse : OAuth2ResponseBase
3432
{

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
namespace Microsoft.Identity.Client.Internal
1111
{
12-
13-
[JsonObject]
12+
1413
[Preserve(AllMembers = true)]
1514
internal class ClientInfo
1615
{

src/client/Microsoft.Identity.Client/Internal/DeviceCodeResponse.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
namespace Microsoft.Identity.Client.Internal
1212
{
13-
[JsonObject]
1413
[Preserve(AllMembers = true)]
1514
internal class DeviceCodeResponse : OAuth2ResponseBase
1615
{

0 commit comments

Comments
 (0)