Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to use multiple authentication methods #563

Open
Kaliumhexacyanoferrat opened this issue Nov 21, 2024 · 0 comments
Open

Allow to use multiple authentication methods #563

Kaliumhexacyanoferrat opened this issue Nov 21, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

As a developer of a web service, I would like to use multiple authentication methods so my clients can decide which one to use.

Example

var multiAuth = MultiAuthentication.Create()
                                   .Add(ApiKeyAuthentication.Create())
                                   .Add(BasicAuthentication.Create());

Acceptance criteria

  • The functionality is implemented in the Authentication module
  • The authentication methods are tried in the order they are added to the concern
  • If the status code generated by one of the concerns in order is anything else than 401, the response is returned to the client
  • There is a meaningful 401 response when none of the authentication methods worked
  • The feature is documented on the GenHTTP website
  • The feature is covered by acceptance tests
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added enhancement New feature or request good first issue Good for newcomers labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant