// 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. namespace Microsoft.AspNet.Authentication.OpenIdConnect { /// /// Default values related to OpenIdConnect authentication middleware /// public static class OpenIdConnectDefaults { /// /// Constant used to identify state in openIdConnect protocol message. /// public static readonly string AuthenticationPropertiesKey = "OpenIdConnect.AuthenticationProperties"; /// /// The default value used for OpenIdConnectOptions.AuthenticationScheme. /// public const string AuthenticationScheme = "OpenIdConnect"; /// /// The default value for OpenIdConnectOptions.Caption. /// public static readonly string Caption = "OpenIdConnect"; /// /// The prefix used to for the nonce in the cookie. /// public static readonly string CookieNoncePrefix = ".AspNet.OpenIdConnect.Nonce."; /// /// The prefix used for the state in the cookie. /// public static readonly string CookieStatePrefix = ".AspNet.OpenIdConnect.State."; /// /// The property for the RedirectUri that was used when asking for a 'authorizationCode'. /// public static readonly string RedirectUriForCodePropertiesKey = "OpenIdConnect.Code.RedirectUri"; /// /// Constant used to identify userstate inside AuthenticationProperties that have been serialized in the 'state' parameter. /// public static readonly string UserstatePropertiesKey = "OpenIdConnect.Userstate"; } }