Skip to content

Instantly share code, notes, and snippets.

@Sam7
Last active June 12, 2018 03:58
Show Gist options
  • Save Sam7/fce8db2d974941f91b921fd6a40cb459 to your computer and use it in GitHub Desktop.
Save Sam7/fce8db2d974941f91b921fd6a40cb459 to your computer and use it in GitHub Desktop.
Umbraco AD FS - #1
using Microsoft.Owin;
using Owin;
using Umbraco.Core;
using Umbraco.Core.Security;
using Umbraco.Web.Security.Identity;
using Umbraco.Web;
using Web;
using System.Configuration;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.WsFederation;
using Umbraco.Core.Models.Identity;
using Microsoft.AspNet.Identity.Owin;
using System.Collections.Generic;
using Umbraco.Core.Models.Membership;
using System.Linq;
using System;
using Umbraco.Core.Strings;
using System.Security.Claims;
//To use this startup class, change the appSetting value in the web.config called
// "owin:appStartup" to be "UmbracoCustomOwinStartup"
[assembly: OwinStartup("UmbracoCustomOwinStartup", typeof(UmbracoCustomOwinStartup))]
namespace UmbracoProject.Web
{
using System;
using System.Configuration;
using System.Linq;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.WsFederation;
using Umbraco.Core.Models.Identity;
using Umbraco.Core.Models.Membership;
using Umbraco.Core.Strings;
using Umbraco.Web;
/// <summary>
/// A custom way to configure OWIN for Umbraco
/// </summary>
/// <remarks>
/// The startup type is specified in appSettings under owin:appStartup - change it to "UmbracoCustomOwinStartup" to use this class
///
/// This startup class would allow you to customize the Identity IUserStore and/or IUserManager for the Umbraco Backoffice
/// </remarks>
public class UmbracoCustomOwinStartup : UmbracoDefaultOwinStartup
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment