Skip to content

Commit c9b67a6

Browse files
Change constants to fields
Change constants to fields so application using libraries building on top of providers can pick up code fixes without recompilation of such libraries.
1 parent 29e308d commit c9b67a6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

generators/app/templates/AuthenticationDefaults.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,31 @@ public static class <%= name %>AuthenticationDefaults
2222
/// <summary>
2323
/// Default value for <see cref="AuthenticationScheme.DisplayName"/>.
2424
/// </summary>
25-
public const string DisplayName = "<%= name %>";
25+
public static readonly string DisplayName = "<%= name %>";
2626

2727
/// <summary>
2828
/// Default value for <see cref="AuthenticationSchemeOptions.ClaimsIssuer"/>.
2929
/// </summary>
30-
public const string Issuer = "<%= name %>";
30+
public static readonly string Issuer = "<%= name %>";
3131

3232
/// <summary>
3333
/// Default value for <see cref="RemoteAuthenticationOptions.CallbackPath"/>.
3434
/// </summary>
35-
public const string CallbackPath = "/signin-<%= name.toLowerCase() %>";
35+
public static readonly string CallbackPath = "/signin-<%= name.toLowerCase() %>";
3636

3737
/// <summary>
3838
/// Default value for <see cref="OAuthOptions.AuthorizationEndpoint"/>.
3939
/// </summary>
40-
public const string AuthorizationEndpoint = "<%= authorizationendpoint %>";
40+
public static readonly string AuthorizationEndpoint = "<%= authorizationendpoint %>";
4141

4242
/// <summary>
4343
/// Default value for <see cref="OAuthOptions.TokenEndpoint"/>.
4444
/// </summary>
45-
public const string TokenEndpoint = "<%= tokenendpoint %>";
45+
public static readonly string TokenEndpoint = "<%= tokenendpoint %>";
4646

4747
/// <summary>
4848
/// Default value for <see cref="OAuthOptions.UserInformationEndpoint"/>.
4949
/// </summary>
50-
public const string UserInformationEndpoint = "<%= userinformationendpoint %>";
50+
public static readonly string UserInformationEndpoint = "<%= userinformationendpoint %>";
5151
}
5252
}

0 commit comments

Comments
 (0)