# ToolAuthenticationMode

Declares how a tool expects authentication to be supplied.

Enum 

`IntelligenceX.Tools`

**Namespace**

`IntelligenceX.Tools`

**Assembly**

`IntelligenceX`

**Source**

[ToolAuthenticationMode.cs:6](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolAuthenticationMode.cs#L6)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Declares how a tool expects authentication to be supplied.

## Inheritance

- Enum
- ToolAuthenticationMode

## Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 5

- Property [ToolAuthenticationContract.Mode](/api/intelligencex-tools-toolauthenticationcontract/#property-mode)
- Field [ToolAuthenticationMode.HostManaged](/api/intelligencex-tools-toolauthenticationmode/#field-hostmanaged)
- Field [ToolAuthenticationMode.None](/api/intelligencex-tools-toolauthenticationmode/#field-none)
- Field [ToolAuthenticationMode.ProfileReference](/api/intelligencex-tools-toolauthenticationmode/#field-profilereference)
- Field [ToolAuthenticationMode.RunAsReference](/api/intelligencex-tools-toolauthenticationmode/#field-runasreference)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const ToolAuthenticationMode None` [#](#field-none)

[ToolAuthenticationMode.cs:10](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolAuthenticationMode.cs#L10)

Tool does not declare authentication behavior.

Value: `0`

`public const ToolAuthenticationMode HostManaged` [#](#field-hostmanaged)

[ToolAuthenticationMode.cs:15](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolAuthenticationMode.cs#L15)

Authentication is resolved by host/service configuration, not tool arguments.

Value: `1`

`public const ToolAuthenticationMode ProfileReference` [#](#field-profilereference)

[ToolAuthenticationMode.cs:20](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolAuthenticationMode.cs#L20)

Authentication is selected via a profile reference argument.

Value: `2`

`public const ToolAuthenticationMode RunAsReference` [#](#field-runasreference)

[ToolAuthenticationMode.cs:25](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolAuthenticationMode.cs#L25)

Authentication can use a run-as profile reference argument.

Value: `3`

<!-- PowerForge markdown artifact sha256:36D933B7AF66B755F98CF33C59D2683AFC7072D6B76312955D126508271B5155 -->
