diff --git a/src/SolutionInfo.cs b/src/SolutionInfo.cs index 9fd1385311..6c766f8e97 100644 --- a/src/SolutionInfo.cs +++ b/src/SolutionInfo.cs @@ -11,5 +11,5 @@ using System.Resources; [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyFileVersion("7.2.5")] -[assembly: AssemblyInformationalVersion("7.2.5")] \ No newline at end of file +[assembly: AssemblyFileVersion("7.3.0")] +[assembly: AssemblyInformationalVersion("7.3.0")] \ No newline at end of file diff --git a/src/Umbraco.Web.UI/App_Code/OwinStartup.cs b/src/Umbraco.Web.UI/App_Code/OwinStartup.cs index 6d35ec5975..c54db8d53b 100644 --- a/src/Umbraco.Web.UI/App_Code/OwinStartup.cs +++ b/src/Umbraco.Web.UI/App_Code/OwinStartup.cs @@ -47,10 +47,10 @@ namespace Umbraco.Web.UI * methods to suit your needs. */ - //app.ConfigureGoogleAuth("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET"); - //app.ConfigureFacebookAuth("YOUR_APP_ID", "YOUR_APP_SECRET"); - //app.ConfigureMicrosoftAuth("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET"); - //app.ConfigureActiveDirectory("YOUR_TENANT", "YOUR_CLIENT_ID", "YOUR_POST_LOGIN_REDIRECT_URL", "YOUR_APP_KEY", "YOUR_AUTH_TYPE"); + //app.ConfigureBackOfficeGoogleAuth("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET"); + //app.ConfigureBackOfficeFacebookAuth("YOUR_APP_ID", "YOUR_APP_SECRET"); + //app.ConfigureBackOfficeMicrosoftAuth("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET"); + //app.ConfigureBackOfficeActiveDirectoryAuth("YOUR_TENANT", "YOUR_CLIENT_ID", "YOUR_POST_LOGIN_REDIRECT_URL", "YOUR_APP_KEY", "YOUR_AUTH_TYPE"); } } } \ No newline at end of file diff --git a/src/Umbraco.Web.UI/App_Code/IdentityAuthExtensions.cs b/src/Umbraco.Web.UI/App_Code/UmbracoBackOfficeAuthExtensions.cs similarity index 91% rename from src/Umbraco.Web.UI/App_Code/IdentityAuthExtensions.cs rename to src/Umbraco.Web.UI/App_Code/UmbracoBackOfficeAuthExtensions.cs index c3aaf9345d..0c3afa36ad 100644 --- a/src/Umbraco.Web.UI/App_Code/IdentityAuthExtensions.cs +++ b/src/Umbraco.Web.UI/App_Code/UmbracoBackOfficeAuthExtensions.cs @@ -16,7 +16,7 @@ using Umbraco.Core; namespace Umbraco.Web.UI { - public static class IdentityAuthExtensions + public static class UmbracoBackOfficeAuthExtensions { /* @@ -42,12 +42,13 @@ namespace Umbraco.Web.UI /// http://go.microsoft.com/fwlink/?LinkID=144070 /// /// - public static void ConfigureMicrosoftAuth(this IAppBuilder app, string clientId, string clientSecret) + public static void ConfigureBackOfficeMicrosoftAuth(this IAppBuilder app, string clientId, string clientSecret) { var msOptions = new MicrosoftAccountAuthenticationOptions { ClientId = clientId, - ClientSecret = clientSecret + ClientSecret = clientSecret, + SignInAsAuthenticationType = Constants.Security.BackOfficeExternalAuthenticationType }; //Defines styles for buttons msOptions.Description.Properties["SocialStyle"] = "btn-microsoft"; @@ -59,7 +60,7 @@ namespace Umbraco.Web.UI */ /* - + /// /// Configure google sign-in /// @@ -80,12 +81,13 @@ namespace Umbraco.Web.UI /// https://developers.google.com/accounts/docs/OpenIDConnect#getcredentials /// /// - public static void ConfigureGoogleAuth(this IAppBuilder app, string clientId, string clientSecret) + public static void ConfigureBackOfficeGoogleAuth(this IAppBuilder app, string clientId, string clientSecret) { var googleOptions = new GoogleOAuth2AuthenticationOptions { ClientId = clientId, - ClientSecret = clientSecret + ClientSecret = clientSecret, + SignInAsAuthenticationType = Constants.Security.BackOfficeExternalAuthenticationType }; //Defines styles for buttons googleOptions.Description.Properties["SocialStyle"] = "btn-google-plus"; @@ -96,6 +98,7 @@ namespace Umbraco.Web.UI */ + /* /// @@ -118,12 +121,13 @@ namespace Umbraco.Web.UI /// https://developers.facebook.com/ /// /// - public static void ConfigureFacebookAuth(this IAppBuilder app, string appId, string appSecret) + public static void ConfigureBackOfficeFacebookAuth(this IAppBuilder app, string appId, string appSecret) { var fbOptions = new FacebookAuthenticationOptions { AppId = appId, AppSecret = appSecret, + SignInAsAuthenticationType = Constants.Security.BackOfficeExternalAuthenticationType }; //Defines styles for buttons fbOptions.Description.Properties["SocialStyle"] = "btn-facebook"; @@ -167,7 +171,7 @@ namespace Umbraco.Web.UI /// This configuration requires the NaiveSessionCache class below which will need to be un-commented /// /// - public static void ConfigureActiveDirectory(this IAppBuilder app, + public static void ConfigureBackOfficeActiveDirectoryAuth(this IAppBuilder app, string tenant, string clientId, string postLoginRedirectUri, string appKey, string authType) { @@ -178,6 +182,7 @@ namespace Umbraco.Web.UI var adOptions = new OpenIdConnectAuthenticationOptions { AuthenticationType = authType, + SignInAsAuthenticationType = Constants.Security.BackOfficeExternalAuthenticationType, ClientId = clientId, Authority = authority, PostLogoutRedirectUri = postLoginRedirectUri, diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj index 3d58ed19bd..4d5120ff2b 100644 --- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj +++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj @@ -356,7 +356,7 @@ Properties\SolutionInfo.cs - + loadStarterKits.ascx ASPXCodeBehind @@ -2586,7 +2586,7 @@ xcopy "$(ProjectDir)"..\packages\SqlServerCE.4.0.0.0\x86\*.* "$(TargetDir)x86\" True 7300 / - http://localhost:7301 + http://localhost:7300 False False