Search Results for

    Show / Hide Table of Contents
    View Source

    Class OAuthOptionsHelper

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Web.Common.Helpers
    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 Description
    T
    Type Parameters
    Name Description
    T
    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 Description
    T
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • OAuthOptionsHelper(IOptions<SecuritySettings>)
    • Methods
      • SetDefaultErrorEventHandling<T>(T, String)
      • SetUmbracoRedirectWithFilteredParams<T>(T, String, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX