View Source
Class OAuthOptionsHelper
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public class OAuthOptionsHelper
Constructors
View Source
OAuthOptionsHelper(IOptions<SecuritySettings>)
Declaration
public OAuthOptionsHelper(IOptions<SecuritySettings> securitySettings)
Parameters
Type |
Name |
Description |
Microsoft.Extensions.Options.IOptions<SecuritySettings> |
securitySettings |
|
Methods
View Source
SetDefaultErrorEventHandling<T>(T, String)
Applies SetUmbracoRedirectWithFilteredParams to both OnAccessDenied and OnRemoteFailure
on the OAuthOptions so Umbraco can do its best to nicely display the error messages
that are passed back from the external login provider on failure.
Declaration
public T SetDefaultErrorEventHandling<T>(T oAuthOptions, string providerFriendlyName)
where T : OAuthOptions
Parameters
Type |
Name |
Description |
T |
oAuthOptions |
|
System.String |
providerFriendlyName |
|
Returns
Type Parameters
View Source
SetUmbracoRedirectWithFilteredParams<T>(T, String, String)
Sets the context to redirect to the path with all parameters, except state, that are passed to the initial server callback configured for the configured external login provider
Declaration
public T SetUmbracoRedirectWithFilteredParams<T>(T context, string providerFriendlyName, string eventName)
where T : HandleRequestContext<RemoteAuthenticationOptions>
Parameters
Type |
Name |
Description |
T |
context |
|
System.String |
providerFriendlyName |
|
System.String |
eventName |
|
Returns
Type Parameters