Show / Hide Table of Contents

    Class DanglIdentityUserInfoUpdater<TIdentityUser, TIdentityRole>

    Handles user updating from Jwt tokens

    Inheritance
    System.Object
    DanglIdentityUserInfoUpdater<TIdentityUser, TIdentityRole>
    Implements
    IUserInfoUpdater
    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.Services
    Assembly: Dangl.Identity.Client.Mvc.dll
    Syntax
    public class DanglIdentityUserInfoUpdater<TIdentityUser, TIdentityRole> : IUserInfoUpdater where TIdentityUser : IdentityUser<Guid>, IDanglIdentityUser, new()
        where TIdentityRole : IdentityRole<Guid>, new()
    Type Parameters
    Name Description
    TIdentityUser
    TIdentityRole

    Constructors

    | Improve this Doc View Source

    DanglIdentityUserInfoUpdater(UserManager<TIdentityUser>, RoleManager<TIdentityRole>, IUserInfoUpdaterCache, ILoggerFactory)

    Handles user updating from Jwt tokens

    Declaration
    public DanglIdentityUserInfoUpdater(UserManager<TIdentityUser> userManager, RoleManager<TIdentityRole> roleManager, IUserInfoUpdaterCache userInfoUpdaterCache, ILoggerFactory loggerFactory = null)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Identity.UserManager<TIdentityUser> userManager
    Microsoft.AspNetCore.Identity.RoleManager<TIdentityRole> roleManager
    IUserInfoUpdaterCache userInfoUpdaterCache
    Microsoft.Extensions.Logging.ILoggerFactory loggerFactory

    Methods

    | Improve this Doc View Source

    UpdateUserInfoAsync(String)

    Deserializes a jwt token and updates user information in the Asp.Net Identity user store

    Declaration
    public Task UpdateUserInfoAsync(string jwtToken)
    Parameters
    Type Name Description
    System.String jwtToken
    Returns
    Type Description
    System.Threading.Tasks.Task
    | Improve this Doc View Source

    UpdateUserInfoFromClientHeadersAsync(UserInfoUpdaterDto)

    This ensures that user data that is transmitted via OAuth2 clients in service-to-service scenarios is updates locally. UserData will be cached for one hour until it is re-evaluated. No roles will be created in this way.

    Declaration
    public Task UpdateUserInfoFromClientHeadersAsync(UserInfoUpdaterDto userDto)
    Parameters
    Type Name Description
    UserInfoUpdaterDto userDto
    Returns
    Type Description
    System.Threading.Tasks.Task

    Implements

    IUserInfoUpdater

    Extension Methods

    ObjectExtensions.Clone<T>(T)
    • Improve this Doc
    • View Source
    Back to top © Dangl IT - Georg Dangl