Skip to content

[Request] Push code using TwoFactorUserIdScheme to this remote #2

@phrohdoh

Description

@phrohdoh

The blog post mentions:

And then retrieve this in our LoginCallback using:

var result = await HttpContext.AuthenticateAsync(IdentityConstants.TwoFactorUserIdScheme);
var userId = result.Principal.FindFirstValue("sub");

But that code (and the related code) are not in this repo.


My call to AuthenticateAsync is failing (response property Succeeded = false) and I am not sure why so I am hoping to see I have missed something simple.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions