Show / Hide Table of Contents

    Class DanglIdentityAuthenticationExtensions

    Extensions for using Dangl.Identity in Asp.Net Core apps

    Inheritance
    System.Object
    DanglIdentityAuthenticationExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Dangl.Identity.Client.Mvc
    Assembly: Dangl.Identity.Client.Mvc.dll
    Syntax
    public static class DanglIdentityAuthenticationExtensions

    Methods

    | Improve this Doc View Source

    AddMvcWithDanglIdentity<TIdentityDbContext, TIdentityUser, TIdentityRole>(IServiceCollection, DanglIdentityServerConfiguration)

    This registers and configures all Dangl.Identity client services

    Declaration
    public static IServiceCollection AddMvcWithDanglIdentity<TIdentityDbContext, TIdentityUser, TIdentityRole>(this IServiceCollection services, DanglIdentityServerConfiguration danglIdentityServerConfig)
        where TIdentityDbContext : IdentityDbContext<TIdentityUser, TIdentityRole, Guid> where TIdentityUser : IdentityUser<Guid>, IDanglIdentityUser, new()
        where TIdentityRole : IdentityRole<Guid>, new()
    Parameters
    Type Name Description
    Microsoft.Extensions.DependencyInjection.IServiceCollection services
    DanglIdentityServerConfiguration danglIdentityServerConfig
    Returns
    Type Description
    Microsoft.Extensions.DependencyInjection.IServiceCollection
    Type Parameters
    Name Description
    TIdentityDbContext
    TIdentityUser
    TIdentityRole
    | Improve this Doc View Source

    UseDanglIdentityJwtTokenUserInfoUpdater(IApplicationBuilder)

    This registers a middleware that takes care of updating user information from Dangl.Identity Jwt tokens in the local Asp.Net Identity user store

    Declaration
    public static IApplicationBuilder UseDanglIdentityJwtTokenUserInfoUpdater(this IApplicationBuilder app)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Builder.IApplicationBuilder app
    Returns
    Type Description
    Microsoft.AspNetCore.Builder.IApplicationBuilder
    • Improve this Doc
    • View Source
    Back to top © Dangl IT - Georg Dangl