Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Umbraco.Core/Configuration/Models/SecuritySettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class SecuritySettings

internal const int StaticMemberDefaultLockoutTimeInMinutes = 30 * 24 * 60;
internal const int StaticUserDefaultLockoutTimeInMinutes = 30 * 24 * 60;
internal const string StaticAuthorizeCallbackPathName = "/umbraco";
internal const string StaticAuthorizeCallbackPathName = "/umbraco/oauth_complete";
internal const string StaticAuthorizeCallbackLogoutPathName = "/umbraco/logout";
internal const string StaticAuthorizeCallbackErrorPathName = "/umbraco/error";

Expand Down
15 changes: 0 additions & 15 deletions src/Umbraco.Web.Common/Helpers/OAuthOptionsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,4 @@ public T SetUmbracoRedirectWithFilteredParams<T>(T context, string providerFrien
context.Response.Redirect(callbackPath);
return context;
}

/// <summary>
/// Sets the callbackPath for the RemoteAuthenticationOptions based on the configured Umbraco path and the path supplied.
/// By default this will result in "/umbraco/your-supplied-path".
/// </summary>
/// <param name="options">The options object to set the path on.</param>
/// <param name="path">The path that should go after the umbraco path, will add a leading slash if it's missing.</param>
/// <returns></returns>
public RemoteAuthenticationOptions SetUmbracoBasedCallbackPath(RemoteAuthenticationOptions options, string path)
{
var umbracoCallbackPath = _securitySettings.Value.AuthorizeCallbackPathName;

options.CallbackPath = umbracoCallbackPath + path.EnsureStartsWith("/");
return options;
}
}