kayx23 commented on code in PR #13238: URL: https://github.com/apache/apisix/pull/13238#discussion_r3099292645
########## docs/en/latest/plugins/multi-auth.md: ########## @@ -28,27 +28,27 @@ description: This document contains information about the Apache APISIX multi-au # --> -## Description - -The `multi-auth` Plugin is used to add multiple authentication methods to a Route or a Service. It supports plugins of type 'auth'. You can combine different authentication methods using `multi-auth` plugin. +<head> + <link rel="canonical" href="https://docs.api7.ai/hub/multi-auth" /> +</head> -This plugin provides a flexible authentication mechanism by iterating through the list of authentication plugins specified in the `auth_plugins` attribute. It allows multiple consumers to share the same route while using different authentication methods. For example, one consumer can authenticate using basic authentication, while another consumer can authenticate using JWT. - -## Attributes +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; -For Route: +## Description -| Name | Type | Required | Default | Description | -|--------------|-------|----------|---------|-----------------------------------------------------------------------| -| auth_plugins | array | True | - | Add supporting auth plugins configuration. expects at least 2 plugins | +The `multi-auth` Plugin allows Consumers using different authentication methods to share the same Route or Service. It supports the configuration of multiple authentication Plugins, so that a request would be allowed through if it authenticates successfully against any configured authentication method. -## Enable Plugin +## Attributes -To enable the Plugin, you have to create two or more Consumer objects with different authentication configurations: +| Name | Type | Required | Default | Valid values | Description | +|------|------|----------|---------|--------------|-------------| +| auth_plugins | array | True | - | | An array of at least two authentication Plugins. | Review Comment: Default value in this doc uses a dash (for empty values?), which is inconsistent with other docs. Please check against other docs and update accordingly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
