Created
April 26, 2016 16:39
-
-
Save dibble-james/685346ed132cf3b3011c7d4e0db99d08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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