Skip to content

No place to implement Claims Enrichment between Authentication and Authorization #79

Description

@acnicholls-kroll

When trying to implement a Claims Enrichment middleware, I can see no place to do so, especially when using the new FunctionsApplication from v4

Start by setting up the AspNetCore Integration on the Function Builder

var host = FunctionsApplication.CreateBuilder(args);
host.ConfigureFunctionsWebApplication();

next configure your middleware (which does BOTH AuthN and AuthZ)

host.UseFunctionsAuthorization();

if I add a ClaimsEnrichment middleware BEFORE this, the user is not yet authenticated and I don't have a user identifier.
if I add a ClaimsEnrichment middleware AFTER this, authorization has already taken place and no new claims are added to the user before authorization.

How can I implement my middleware between authN and authZ using DarkLoop v4.2.0? I'm trying to find an extension method or something that lets me register my middleware between AuthN and AuthZ.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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