summaryrefslogtreecommitdiffstats
path: root/samples/TestAzureAD/App_Start/AuthConfig.cs
blob: f8b3219760e59061e27a16da40813e66fe3319d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.Membership.OpenAuth;

namespace TestAzureAD
{
	internal static class AuthConfig
	{
		public static void RegisterOpenAuth()
		{
			// See http://go.microsoft.com/fwlink/?LinkId=252803 for details on setting up this ASP.NET
			// application to support logging in via external services.

			//OpenAuth.AuthenticationClients.AddTwitter(
			//    consumerKey: "your Twitter consumer key",
			//    consumerSecret: "your Twitter consumer secret");

			OpenAuth.AuthenticationClients.AddFacebook(
				appId: "XX",
				appSecret: "YY");

			//OpenAuth.AuthenticationClients.AddMicrosoft(
			//    clientId: "your Microsoft account client id",
			//    clientSecret: "your Microsoft account client secret");

			//OpenAuth.AuthenticationClients.AddGoogle();

			OpenAuth.AuthenticationClients.Add("Azure Active Directory", () => new DotNetOpenAuth.AspNet.Clients.AzureADClient("64e0b14b-43ae-497c-b1a8-e8a841a341fd", "MySecretPassword"));
					
			
			//AddFacebook(
			    //appId: "your Facebook app id",
			    //appSecret: "your Facebook app secret");
			

		}
	}
}