Skip to content

Commit c54c29a

Browse files
committed
Making the OAuth pages inherit from UmbracoEnsuredPage
When letting the pages inherit from UmbracoEnsuredPage, authentication will work correctly in both 7.2.1 (and earlier) and 7.2.3. I added a fix earlier in 9cbec98 that also makes authentication work in 7.2.2.
1 parent 9cbec98 commit c54c29a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: Analytics/App_Plugins/Analytics/backOffice/OAuth.aspx.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
using System.Linq;
44
using System.Web;
55
using System.Web.Security;
6-
using System.Web.UI;
76
using Skybrud.Social;
7+
using Umbraco.Web.UI.Pages;
88
using umbraco;
99
using Umbraco.Core.Security;
1010
using Umbraco.Web;
1111

1212
namespace Analytics.App_Plugins.Analytics.BackOffice {
1313

14-
public partial class OAuth : Page {
14+
public partial class OAuth : UmbracoEnsuredPage {
1515

1616
protected override void OnPreInit(EventArgs e) {
1717

Diff for: Analytics/App_Plugins/Analytics/backOffice/OAuthCallback.aspx.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
using System.Linq;
33
using System.Web;
44
using System.Web.Security;
5-
using System.Web.UI;
65
using Skybrud.Social.Google;
6+
using Umbraco.Web.UI.Pages;
77
using umbraco.BusinessLogic;
88
using Umbraco.Core.Security;
99
using Umbraco.Web;
1010
using umbraco;
1111

1212
namespace Analytics.App_Plugins.Analytics.BackOffice {
1313

14-
public partial class OAuthCalllback : Page {
14+
public partial class OAuthCalllback : UmbracoEnsuredPage {
1515

1616
protected override void OnPreInit(EventArgs e) {
1717

0 commit comments

Comments
 (0)