diff --git a/samples/OpenIdConnectSample/Startup.cs b/samples/OpenIdConnectSample/Startup.cs
index 26c9129e07..4c8e2f684b 100644
--- a/samples/OpenIdConnectSample/Startup.cs
+++ b/samples/OpenIdConnectSample/Startup.cs
@@ -32,8 +32,8 @@ namespace OpenIdConnectSample
app.UseOpenIdConnectAuthentication(options =>
{
- options.ClientId = "fe78e0b4-6fe7-47e6-812c-fb75cee266a4";
- options.Authority = "https://login.windows.net/cyrano.onmicrosoft.com";
+ options.ClientId = "63a87a83-64b9-4ac1-b2c5-092126f8474f";
+ options.Authority = "https://login.windows.net/tratcheroutlook.onmicrosoft.com";
options.RedirectUri = "http://localhost:42023";
});
diff --git a/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectAuthenticationDefaults.cs b/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectAuthenticationDefaults.cs
index 2e1a808897..35a85e8437 100644
--- a/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectAuthenticationDefaults.cs
+++ b/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectAuthenticationDefaults.cs
@@ -24,15 +24,15 @@ namespace Microsoft.AspNet.Authentication.OpenIdConnect
public const string Caption = "OpenIdConnect";
///
- /// The prefix used to provide a default OpenIdConnectAuthenticationOptions.CookieName.
- ///
- public const string CookiePrefix = ".AspNet.OpenIdConnect.";
-
- ///
- /// The prefix used to for the a nonce in the cookie.
+ /// The prefix used to for the nonce in the cookie.
///
public const string CookieNoncePrefix = ".AspNet.OpenIdConnect.Nonce.";
+ ///
+ /// The prefix used for the state in the cookie.
+ ///
+ public const string CookieStatePrefix = ".AspNet.OpenIdConnect.State.";
+
///
/// The property for the RedirectUri that was used when asking for a 'authorizationCode'.
///
diff --git a/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectAuthenticationHandler.cs b/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectAuthenticationHandler.cs
index 954f6e74ed..a7257db09a 100644
--- a/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectAuthenticationHandler.cs
+++ b/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectAuthenticationHandler.cs
@@ -11,6 +11,7 @@ using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Security.Claims;
+using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
@@ -48,6 +49,8 @@ namespace Microsoft.AspNet.Authentication.OpenIdConnect