public override void Configuration(IAppBuilder app) { //ensure the default options are configured base.Configuration(app); // facebook app.ConfigureBackOfficeFacebookAuth( "1073792385982685", "08c7b982b4a7b5e0915df2d4bd694605"); // google app.ConfigureBackOfficeGoogleAuth( "993945723931-4gss3ebpi52duai8ple7db6gm2s6344j.apps.googleusercontent.com", "82SamaeOXFCOB9bTCWK1UFdj"); // microsoft app.ConfigureBackOfficeMicrosoftAuth( "000000004C15527C", "UhwYDa2Aid6fr65Pk-AdEtV6mkh0dKez"); /* * Configure external logins for the back office: * * Depending on the authentication sources you would like to enable, you will need to install * certain Nuget packages. * * For Google auth: Install-Package UmbracoCms.IdentityExtensions.Google * For Facebook auth: Install-Package UmbracoCms.IdentityExtensions.Facebook * For Microsoft auth: Install-Package UmbracoCms.IdentityExtensions.Microsoft * For Azure ActiveDirectory auth: Install-Package UmbracoCms.IdentityExtensions.AzureActiveDirectory * * There are many more providers such as Twitter, Yahoo, ActiveDirectory, etc... most information can * be found here: http://www.asp.net/web-api/overview/security/external-authentication-services * * For sample code on using external providers with the Umbraco back office, install one of the * packages listed above to review it's code samples * */ /* * To configure a simple auth token server for the back office: * * By default the CORS policy is to allow all requests * * app.UseUmbracoBackOfficeTokenAuth(new BackOfficeAuthServerProviderOptions()); * * If you want to have a custom CORS policy for the token server you can provide * a custom CORS policy, example: * * app.UseUmbracoBackOfficeTokenAuth( * new BackOfficeAuthServerProviderOptions() * { * //Modify the CorsPolicy as required * CorsPolicy = new CorsPolicy() * { * AllowAnyHeader = true, * AllowAnyMethod = true, * Origins = { "http://mywebsite.com" } * } * }); */ }