diff --git a/Owin.Security.Providers/Owin.Security.Providers.csproj b/Owin.Security.Providers/Owin.Security.Providers.csproj
index 3147eab..f5eb564 100644
--- a/Owin.Security.Providers/Owin.Security.Providers.csproj
+++ b/Owin.Security.Providers/Owin.Security.Providers.csproj
@@ -206,6 +206,15 @@
+
+
+
+
+
+
+
+
+
diff --git a/Owin.Security.Providers/Twitch/Constants.cs b/Owin.Security.Providers/Twitch/Constants.cs
new file mode 100644
index 0000000..cf2ebec
--- /dev/null
+++ b/Owin.Security.Providers/Twitch/Constants.cs
@@ -0,0 +1,7 @@
+namespace Owin.Security.Providers.Twitch
+{
+ internal static class Constants
+ {
+ public const string DefaultAuthenticationType = "Twitch";
+ }
+}
\ No newline at end of file
diff --git a/Owin.Security.Providers/Twitch/Provider/ITwitchAuthenticationProvider.cs b/Owin.Security.Providers/Twitch/Provider/ITwitchAuthenticationProvider.cs
new file mode 100644
index 0000000..e1d1d37
--- /dev/null
+++ b/Owin.Security.Providers/Twitch/Provider/ITwitchAuthenticationProvider.cs
@@ -0,0 +1,24 @@
+using System.Threading.Tasks;
+
+namespace Owin.Security.Providers.Twitch
+{
+ ///
+ /// Specifies callback methods which the invokes to enable developer control over the authentication process. />
+ ///
+ public interface ITwitchAuthenticationProvider
+ {
+ ///
+ /// Invoked whenever Twitch succesfully authenticates a user
+ ///
+ /// Contains information about the login session as well as the user .
+ /// A representing the completed operation.
+ Task Authenticated(TwitchAuthenticatedContext context);
+
+ ///
+ /// Invoked prior to the being saved in a local cookie and the browser being redirected to the originally requested URL.
+ ///
+ ///
+ /// A representing the completed operation.
+ Task ReturnEndpoint(TwitchReturnEndpointContext context);
+ }
+}
\ No newline at end of file
diff --git a/Owin.Security.Providers/Twitch/Provider/TwitchAuthenticatedContext.cs b/Owin.Security.Providers/Twitch/Provider/TwitchAuthenticatedContext.cs
new file mode 100644
index 0000000..8246343
--- /dev/null
+++ b/Owin.Security.Providers/Twitch/Provider/TwitchAuthenticatedContext.cs
@@ -0,0 +1,89 @@
+// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
+
+using System;
+using System.Globalization;
+using System.Security.Claims;
+using Microsoft.Owin;
+using Microsoft.Owin.Security;
+using Microsoft.Owin.Security.Provider;
+using Newtonsoft.Json.Linq;
+
+namespace Owin.Security.Providers.Twitch
+{
+ ///
+ /// Contains information about the login session as well as the user .
+ ///
+ public class TwitchAuthenticatedContext : BaseContext
+ {
+ ///
+ /// Initializes a
+ ///
+ /// The OWIN environment
+ /// The JSON-serialized user
+ /// Twitch Access token
+ public TwitchAuthenticatedContext(IOwinContext context, JObject user, string accessToken)
+ : base(context)
+ {
+ User = user;
+ AccessToken = accessToken;
+
+ Id = TryGetValue(user, "_id");
+ Name = TryGetValue(user, "name");
+ Link = TryGetValue(user, "url");
+ UserName = TryGetValue(user, "name");
+ Email = TryGetValue(user, "email");
+ }
+
+ ///
+ /// Gets the JSON-serialized user
+ ///
+ ///
+ /// Contains the Twitch user obtained from the User Info endpoint. By default this is https://api.Twitch.com/user but it can be
+ /// overridden in the options
+ ///
+ public JObject User { get; private set; }
+
+ ///
+ /// Gets the Twitch access token
+ ///
+ public string AccessToken { get; private set; }
+
+ ///
+ /// Gets the Twitch user ID
+ ///
+ public string Id { get; private set; }
+
+ ///
+ /// Gets the user's name
+ ///
+ public string Name { get; private set; }
+
+ public string Link { get; private set; }
+
+ ///
+ /// Gets the Twitch username
+ ///
+ public string UserName { get; private set; }
+
+ ///
+ /// Gets the Twitch email
+ ///
+ public string Email { get; private set; }
+
+ ///
+ /// Gets the representing the user
+ ///
+ public ClaimsIdentity Identity { get; set; }
+
+ ///
+ /// Gets or sets a property bag for common authentication properties
+ ///
+ public AuthenticationProperties Properties { get; set; }
+
+ private static string TryGetValue(JObject user, string propertyName)
+ {
+ JToken value;
+ return user.TryGetValue(propertyName, out value) ? value.ToString() : null;
+ }
+ }
+}
diff --git a/Owin.Security.Providers/Twitch/Provider/TwitchAuthenticationProvider.cs b/Owin.Security.Providers/Twitch/Provider/TwitchAuthenticationProvider.cs
new file mode 100644
index 0000000..2c47fdb
--- /dev/null
+++ b/Owin.Security.Providers/Twitch/Provider/TwitchAuthenticationProvider.cs
@@ -0,0 +1,50 @@
+using System;
+using System.Threading.Tasks;
+
+namespace Owin.Security.Providers.Twitch
+{
+ ///
+ /// Default implementation.
+ ///
+ public class TwitchAuthenticationProvider : ITwitchAuthenticationProvider
+ {
+ ///
+ /// Initializes a
+ ///
+ public TwitchAuthenticationProvider()
+ {
+ OnAuthenticated = context => Task.FromResult