From 1fe7f5e02aff5e16cf04246839a086584747ea08 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Tue, 22 Jan 2019 15:04:10 -0800 Subject: [PATCH] Make auth schemes const #5884 #6020 (#6934) --- .../Authentication.AzureAD.UI/src/AzureADDefaults.cs | 12 ++++++------ .../src/AzureAdB2CDefaults.cs | 12 ++++++------ src/Servers/HttpSys/build.cmd | 3 +++ src/Servers/HttpSys/src/HttpSysDefaults.cs | 2 +- 4 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 src/Servers/HttpSys/build.cmd diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADDefaults.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADDefaults.cs index eb0d5f26fa..a344514155 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADDefaults.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADDefaults.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.using Microsoft.AspNetCore.Authorization; @@ -13,29 +13,29 @@ namespace Microsoft.AspNetCore.Authentication.AzureAD.UI /// The scheme name for Open ID Connect when using /// . /// - public static readonly string OpenIdScheme = "AzureADOpenID"; + public const string OpenIdScheme = "AzureADOpenID"; /// /// The scheme name for cookies when using /// . /// - public static readonly string CookieScheme = "AzureADCookie"; + public const string CookieScheme = "AzureADCookie"; /// /// The default scheme for Azure Active Directory Bearer. /// - public static readonly string BearerAuthenticationScheme = "AzureADBearer"; + public const string BearerAuthenticationScheme = "AzureADBearer"; /// /// The scheme name for JWT Bearer when using /// . /// - public static readonly string JwtBearerAuthenticationScheme = "AzureADJwtBearer"; + public const string JwtBearerAuthenticationScheme = "AzureADJwtBearer"; /// /// The default scheme for Azure Active Directory. /// - public static readonly string AuthenticationScheme = "AzureAD"; + public const string AuthenticationScheme = "AzureAD"; /// /// The display name for Azure Active Directory. diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CDefaults.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CDefaults.cs index 3bfe9bcbb0..769eea589b 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CDefaults.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CDefaults.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.using Microsoft.AspNetCore.Authorization; @@ -20,29 +20,29 @@ namespace Microsoft.AspNetCore.Authentication.AzureADB2C.UI /// The scheme name for Open ID Connect when using /// . /// - public static readonly string OpenIdScheme = "AzureADB2COpenID"; + public const string OpenIdScheme = "AzureADB2COpenID"; /// /// The scheme name for cookies when using /// . /// - public static readonly string CookieScheme = "AzureADB2CCookie"; + public const string CookieScheme = "AzureADB2CCookie"; /// /// The default scheme for Azure Active Directory B2C Bearer. /// - public static readonly string BearerAuthenticationScheme = "AzureADB2CBearer"; + public const string BearerAuthenticationScheme = "AzureADB2CBearer"; /// /// The scheme name for JWT Bearer when using /// . /// - public static readonly string JwtBearerAuthenticationScheme = "AzureADB2CJwtBearer"; + public const string JwtBearerAuthenticationScheme = "AzureADB2CJwtBearer"; /// /// The default scheme for Azure Active Directory B2C. /// - public static readonly string AuthenticationScheme = "AzureADB2C"; + public const string AuthenticationScheme = "AzureADB2C"; /// /// The display name for Azure Active Directory B2C. diff --git a/src/Servers/HttpSys/build.cmd b/src/Servers/HttpSys/build.cmd new file mode 100644 index 0000000000..bc82307787 --- /dev/null +++ b/src/Servers/HttpSys/build.cmd @@ -0,0 +1,3 @@ +@ECHO OFF +SET RepoRoot=%~dp0..\..\.. +%RepoRoot%\build.cmd -projects %~dp0\**\*.*proj %* diff --git a/src/Servers/HttpSys/src/HttpSysDefaults.cs b/src/Servers/HttpSys/src/HttpSysDefaults.cs index ea22e86d8e..fde04af7ba 100644 --- a/src/Servers/HttpSys/src/HttpSysDefaults.cs +++ b/src/Servers/HttpSys/src/HttpSysDefaults.cs @@ -8,6 +8,6 @@ namespace Microsoft.AspNetCore.Server.HttpSys /// /// The name of the authentication scheme used. /// - public static readonly string AuthenticationScheme = "Windows"; + public const string AuthenticationScheme = "Windows"; } }