Search Results for

    Show / Hide Table of Contents

    Class AuthenticationCollectionExtensions

    Extension methods to assist with setting up the IAuthenticationProvider infrastructure

    Inheritance
    System.Object
    AuthenticationCollectionExtensions
    Namespace: Microsoft.Extensions.DependencyInjection
    Assembly: PnP.Core.Auth.dll
    Syntax
    public static class AuthenticationCollectionExtensions : object

    Methods

    AddPnPCoreAuthentication(IServiceCollection)

    Adds all the IAuthenticationProvider flavors to the collection of loaded services

    Declaration
    public static IServiceCollection AddPnPCoreAuthentication(this IServiceCollection collection)
    Parameters
    IServiceCollection collection

    Collection of loaded services

    Returns
    IServiceCollection

    Collection of loaded services

    AddPnPCoreAuthentication(IServiceCollection, Action<PnPCoreAuthenticationOptions>)

    Adds all the IAuthenticationProvider flavors to the collection of loaded services

    Declaration
    public static IServiceCollection AddPnPCoreAuthentication(this IServiceCollection collection, Action<PnPCoreAuthenticationOptions> options)
    Parameters
    IServiceCollection collection

    Collection of loaded services

    Action<PnPCoreAuthenticationOptions> options

    PnPCoreAuthenticationOptions options to use for configuration

    Returns
    IServiceCollection

    Collection of loaded services

    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer