Skip to content

Instantly share code, notes, and snippets.

@dibble-james
Created April 26, 2016 16:39
Show Gist options
  • Save dibble-james/685346ed132cf3b3011c7d4e0db99d08 to your computer and use it in GitHub Desktop.
Save dibble-james/685346ed132cf3b3011c7d4e0db99d08 to your computer and use it in GitHub Desktop.
public class UmbracoStandardOwinStartup : UmbracoDefaultOwinStartup
{
private readonly static string clientId = ConfigurationManager.AppSettings["ida:ClientId"];
private readonly static string aadInstance = ConfigurationManager.AppSettings["ida:AADInstance"];
private readonly static string tenantId = ConfigurationManager.AppSettings["ida:TenantId"];
private readonly static string authority = aadInstance + tenantId;
private readonly static string loginUrl = ConfigurationManager.AppSettings["ida:PostLoginUrl"];
public override void Configuration(IAppBuilder app)
{
//ensure the default options are configured
base.Configuration(app);
app.ConfigureBackOfficeAzureActiveDirectoryAuth(tenantId, clientId, loginUrl, new Guid(tenantId));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment