Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
HaikAsatryan committed Jul 26, 2024
1 parent bfdd340 commit dba38c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ public static RouteHandlerBuilder Authorize(this RouteHandlerBuilder builder,
endpointBuilder.RequestDelegate = async context =>
{
var anonymous = context.GetEndpoint()
?.Metadata
.GetMetadata<AnonymousMetadata>() != null;
var forceToChangePassword =
context.GetEndpoint()
?.Metadata
Expand All @@ -33,7 +30,7 @@ public static RouteHandlerBuilder Authorize(this RouteHandlerBuilder builder,
await sender.Send(new AuthQuery(context,
minimalUserRole,
anonymous,
false,
forceToChangePassword,
ignoreClientType),
context.RequestAborted);
Expand All @@ -47,12 +44,6 @@ await sender.Send(new AuthQuery(context,
return builder;
}

public static RouteHandlerBuilder Anonymous(this RouteHandlerBuilder builder)
{
builder.WithMetadata(new AnonymousMetadata());
return builder;
}

public static RouteHandlerBuilder ForcedPasswordChange(this RouteHandlerBuilder builder)
{
builder.WithMetadata(new ForcedPasswordChangeMetadata());
Expand Down

0 comments on commit dba38c5

Please sign in to comment.