# AuthMethod

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.AuthMethod/

How to authenticate, as reported by
[GetAuthenticationConfiguration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/GetAuthenticationConfiguration/index.md).

- **Full name:** `MFiles.AuthMethod`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-AUTH_METHOD_UNSPECIFIED"></a>`AUTH_METHOD_UNSPECIFIED` | 0 | No plug-in configuration applies; use user name and password or Windows authentication. |
| <a id="v-AUTH_METHOD_PLUGIN"></a>`AUTH_METHOD_PLUGIN` | 3 | Log in with `AUTH_DATA_TYPE_PLUGIN` using one of the returned `plugin_infos`. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCLogin.GetAuthenticationConfiguration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/GetAuthenticationConfiguration/index.md): Tells a client, before login, whether to authenticate with an authentication plug-in (single sign-on) and returns the plug-in's client-side configuration.

<a id="used-in-fields"></a>

## Used in fields

- [`GetAuthenticationConfigurationResponse.auth_method`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/GetAuthenticationConfiguration/index.md#response): `AUTH_METHOD_PLUGIN` when `plugin_infos` contains a usable configuration, `AUTH_METHOD_UNSPECIFIED` otherwise.
