Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit dc2f73e

Browse files
committed
Fixup
1 parent 0c89f45 commit dc2f73e

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticationOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void AddScheme(string name, Action<AuthenticationSchemeBuilder> configure
4141
var builder = new AuthenticationSchemeBuilder(name);
4242
configureBuilder(builder);
4343
_schemes.Add(builder);
44-
SchemeMap[name[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", error: true)] = builder;
44+
SchemeMap[name] = builder;
4545
}
4646

4747
public void ConfigureScheme(string name, Action<AuthenticationSchemeBuilder> configureBuilder)
@@ -59,7 +59,7 @@ public void ConfigureScheme(string name, Action<AuthenticationSchemeBuilder> con
5959
throw new InvalidOperationException("Scheme does not exists: " + name);
6060
}
6161

62-
configureBuilder(SchemeMap[name[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", error: true)]);
62+
configureBuilder(SchemeMap[name]);
6363
}
6464

6565
public string DefaultAuthenticationScheme { get; set; }

src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticationProperties.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public string RedirectUri
8080
{
8181
if (value != null)
8282
{
83-
Items[RedirectUriKey[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", error: true)] = value;
83+
Items[RedirectUriKey] = value;
8484
}
8585
else
8686
{
@@ -114,7 +114,7 @@ public DateTimeOffset? IssuedUtc
114114
{
115115
if (value.HasValue)
116116
{
117-
Items[IssuedUtcKey[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", error: true)] = value.Value.ToString(UtcDateTimeFormat, CultureInfo.InvariantCulture);
117+
Items[IssuedUtcKey] = value.Value.ToString(UtcDateTimeFormat, CultureInfo.InvariantCulture);
118118
}
119119
else
120120
{
@@ -148,7 +148,7 @@ public DateTimeOffset? ExpiresUtc
148148
{
149149
if (value.HasValue)
150150
{
151-
Items[ExpiresUtcKey[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", error: true)] = value.Value.ToString(UtcDateTimeFormat, CultureInfo.InvariantCulture);
151+
Items[ExpiresUtcKey] = value.Value.ToString(UtcDateTimeFormat, CultureInfo.InvariantCulture);
152152
}
153153
else
154154
{
@@ -182,7 +182,7 @@ public bool? AllowRefresh
182182
{
183183
if (value.HasValue)
184184
{
185-
Items[RefreshKey[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", error: true)] = value.Value.ToString();
185+
Items[RefreshKey] = value.Value.ToString();
186186
}
187187
else
188188
{

src/Microsoft.AspNetCore.Authentication.Abstractions/TokenExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ public static void StoreTokens(this AuthenticationProperties properties, IEnumer
3737
{
3838
// REVIEW: should probably check that there are no ; in the token name and throw or encode
3939
tokenNames.Add(token.Name);
40-
properties.Items[TokenKeyPrefix+token.Name[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", error: true)] = token.Value;
40+
properties.Items[TokenKeyPrefix+token.Name] = token.Value;
4141
}
4242
if (tokenNames.Count > 0)
4343
{
44-
properties.Items[TokenNamesKey[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", error: true)] = string.Join(";", tokenNames.ToArray());
44+
properties.Items[TokenNamesKey] = string.Join(";", tokenNames.ToArray());
4545
}
4646
}
4747

@@ -58,7 +58,7 @@ public static string GetTokenValue(this AuthenticationProperties properties, str
5858

5959
var tokenKey = TokenKeyPrefix + tokenName;
6060
return properties.Items.ContainsKey(tokenKey)
61-
? properties.Items[tokenKey[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", error: true)]
61+
? properties.Items[tokenKey]
6262
: null;
6363
}
6464

@@ -78,7 +78,7 @@ public static bool UpdateTokenValue(this AuthenticationProperties properties, st
7878
{
7979
return false;
8080
}
81-
properties.Items[tokenKey[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", error: true)] = tokenValue;
81+
properties.Items[tokenKey] = tokenValue;
8282
return true;
8383
}
8484

@@ -92,7 +92,7 @@ public static IEnumerable<AuthenticationToken> GetTokens(this AuthenticationProp
9292
var tokens = new List<AuthenticationToken>();
9393
if (properties.Items.ContainsKey(TokenNamesKey))
9494
{
95-
var tokenNames = properties.Items[TokenNamesKey[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", error: true)].Split(';');
95+
var tokenNames = properties.Items[TokenNamesKey].Split(';');
9696
foreach (var name in tokenNames)
9797
{
9898
var token = properties.GetTokenValue(name);

src/Microsoft.AspNetCore.Owin/OwinFeatureCollection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ ClaimsPrincipal IHttpAuthenticationFeature.User
279279
}
280280
}
281281

282+
[Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470")]
282283
IAuthenticationHandler IHttpAuthenticationFeature.Handler { get; set; }
283284

284285
/// <summary>

0 commit comments

Comments
 (0)