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

Closed
Kaliumhexacyanoferrat opened this issue Nov 21, 2024 · 0 comments · Fixed by #575
Closed

Allow to use multiple authentication methods #563

Kaliumhexacyanoferrat opened this issue Nov 21, 2024 · 0 comments · Fixed by #575
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

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
Matasx added a commit that referenced this issue Dec 6, 2024
@Matasx Matasx linked a pull request Dec 6, 2024 that will close this issue
3 tasks
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added this to the Version 9.3 milestone Dec 8, 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

Successfully merging a pull request may close this issue.

2 participants