Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

[RFC] Add feature to fake/replace authentication and authorization handlers  #3

@enif-lee

Description

@enif-lee

Origin issue from #2

Draft API

// Apply default authentication scheme if there is no scheme parameter. SUT.AllowAuthentication("Scheme", new ClaimsPrincipal(/* ... */) .AllowAuthentication(new ClaimsPrincipal()) .DenyAuthentication("Scheme") .DenyAutheitncation() .NoUserAuthentication() .NoUserAuthentication("Scheme") .ReplaceAuthenticationHandler<CustomFakeHandler>("Bearer", ServiceLifetime.Singleton) .FakeAuthentication(AuthenticationReulst.NoUser()) .AllowAuthorization<CustomeRequirement>() .DenyAuthorization<CustomeRequirement>() ;

Research note

Authentication

Authorization

Similar libarary

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions