Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

How to use UserManager in Startup.cs class #1065

@Vaylandt

Description

@Vaylandt

Help me please

In Startup.Auth.cs:
private void ConfigureAuth(IApplicationBuilder app)
{
username = "test";
_userManager = app.ApplicationServices.GetRequiredService();
_userManager = app.ApplicationServices.GetRequiredService();
var user = _userManager.FindByNameAsync(username).Result;
}

always responds with the cached data ((

related
I need to use in Token Provider:
nbarbettini/SimpleTokenProvider#11 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions