Show / Hide Table of Contents

    Class DanglIdentityUserInfoUpdater<TIdentityUser, TIdentityRole>

    Handles user updating from Jwt tokens

    Inheritance
    System.Object
    DanglIdentityUserInfoUpdater<TIdentityUser, TIdentityRole>
    Implements
    IUserInfoUpdater
    Namespace: Dangl.Identity.Client.Mvc.Services
    Assembly: Dangl.Identity.Client.Mvc.dll
    Syntax
    public class DanglIdentityUserInfoUpdater<TIdentityUser, TIdentityRole> : object, 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, DanglIdentityServerConfiguration, ILoggerFactory)

    Handles user updating from Jwt tokens

    Declaration
    public DanglIdentityUserInfoUpdater(UserManager<TIdentityUser> userManager, RoleManager<TIdentityRole> roleManager, IUserInfoUpdaterCache userInfoUpdaterCache, DanglIdentityServerConfiguration danglIdentityServerConfiguration, ILoggerFactory loggerFactory = null)
    Parameters
    Type Name Description
    UserManager<TIdentityUser> userManager
    RoleManager<TIdentityRole> roleManager
    IUserInfoUpdaterCache userInfoUpdaterCache
    DanglIdentityServerConfiguration danglIdentityServerConfiguration
    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
    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
    Task

    Implements

    IUserInfoUpdater

    Extension Methods

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