MongoDB.GetAuthMechanism
------------------------

Queries authentication mechanism.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MongoDB](component_MongoDB.md) | [12.3](newinversion123.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "MongoDB.GetAuthMechanism"; MongoDBRef ) 

**MBS**( **"MongoDB.GetAuthMechanism";** /\* Queries authentication mechanism. \*/  
**$MongoDBRef**) /\* The reference number for the mongo connection.e.g. $MongoDB \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MongoDBRef | The reference number for the mongo connection. | $MongoDB |

### Result

Returns text or error.

### Description

Queries authentication mechanism.  
Fetches the authMechanism parameter to an URI if provided.  
### See also

- [MongoDB.SetAuthMechanism](MongoDBSetAuthMechanism.md)

This function checks for a license.

Created 2nd June 2022 , last changed 2nd June 2022

  
[MongoDB.GetAppName](MongoDBGetAppName.md) - [MongoDB.GetAuthSource](MongoDBGetAuthSource.md)

[HTML Version](MongoDBGetAuthMechanism.shtml)