You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/client/Microsoft.Identity.Client/AuthenticationResult.cs
-4Lines changed: 0 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,6 @@ public partial class AuthenticationResult
43
43
/// <param name="claimsPrincipal">Claims from the ID token</param>
44
44
/// <param name="spaAuthCode">Auth Code returned by the Microsoft identity platform when you use AcquireTokenByAuthorizationCode.WithSpaAuthorizationCode(). This auth code is meant to be redeemed by the frontend code. See https://aka.ms/msal-net/spa-auth-code</param>
45
45
/// <param name="additionalResponseParameters">Other properties from the token response.</param>
46
-
[Obsolete("Direct constructor use is deprecated.",error:false)]
47
-
[EditorBrowsable(EditorBrowsableState.Never)]
48
46
publicAuthenticationResult(// for backwards compat with 4.16-
49
47
stringaccessToken,
50
48
boolisExtendedLifeTimeToken,
@@ -98,8 +96,6 @@ public partial class AuthenticationResult
98
96
/// <param name="authenticationResultMetadata">Contains metadata related to the Authentication Result.</param>
99
97
/// <param name="tokenType">The token type, defaults to Bearer. Note: this property is experimental and may change in future versions of the library.</param>
100
98
/// <remarks>For backwards compatibility with MSAL 4.17-4.20 </remarks>
101
-
[Obsolete("Direct constructor use is deprecated.",error:false)]
// +2 for the 2 obsolete ExtendedExpires* props that are deliberately
37
+
// not represented in the ctor.
38
+
Assert.AreEqual(
39
+
ctorParameters.Length,
40
+
classProperties.Count()+2,
41
+
"The <for-test> constructor should include all public-settable or read-only properties of AuthenticationResult (except BindingCertificate and the obsolete ExtendedExpires* pair).");
42
+
}
43
+
21
44
[TestMethod]
22
45
publicvoidGetAuthorizationHeader()
23
46
{
24
-
#pragma warning disable CS0618// exercising obsolete constructors until full deprecation
25
47
varar=newAuthenticationResult(
26
48
"at",
27
49
false,
@@ -64,7 +86,6 @@ public void GetHybridSpaAuthCode()
64
86
"one for backwards compat with 4.17+ and one for 4.16 and below")]
65
87
publicvoidAuthenticationResult_PublicApi()
66
88
{
67
-
#pragma warning disable CS0618// exercising obsolete constructors until full deprecation
0 commit comments