# ToolAuthenticationConventions

Shared factories for common authentication contract patterns.

Class 

`IntelligenceX.Tools`

**Namespace**

`IntelligenceX.Tools`

**Assembly**

`IntelligenceX`

**Source**

[ToolAuthenticationConventions.cs:16](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolAuthenticationConventions.cs#L16)

**Modifiers**

static

Shared factories for common authentication contract patterns.

## Inheritance

- object
- ToolAuthenticationConventions

Filter members 

Show inherited

## Methods

`public static ToolAuthenticationContract HostManaged(bool requiresAuthentication = true, bool supportsConnectivityProbe = false, string? probeToolName = null)` [#](#method-hostmanaged-boolean-boolean-string)

[ToolAuthenticationConventions.cs:16](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolAuthenticationConventions.cs#L16)

Creates a host-managed authentication contract (credentials resolved outside tool arguments).

Parameters

**requiresAuthentication bool = true optional**

**supportsConnectivityProbe bool = false optional**

**probeToolName string? = null optional**

Returns

`ToolAuthenticationContract`

`public static ToolAuthenticationContract ProfileReference(string profileIdArgumentName = "auth_profile_id", bool requiresAuthentication = true, bool supportsConnectivityProbe = false, string? probeToolName = null)` [#](#method-profilereference-string-boolean-boolean-string)

[ToolAuthenticationConventions.cs:35](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolAuthenticationConventions.cs#L35)

Creates a profile-reference authentication contract.

Parameters

**profileIdArgumentName string = "auth_profile_id" optional**

**requiresAuthentication bool = true optional**

**supportsConnectivityProbe bool = false optional**

**probeToolName string? = null optional**

Returns

`ToolAuthenticationContract`

`public static ToolAuthenticationContract RunAsReference(string runAsProfileIdArgumentName = "run_as_profile_id", bool requiresAuthentication = true, bool supportsConnectivityProbe = false, string? probeToolName = null)` [#](#method-runasreference-string-boolean-boolean-string)

[ToolAuthenticationConventions.cs:59](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Tools/ToolAuthenticationConventions.cs#L59)

Creates a run-as profile-reference authentication contract.

Parameters

**runAsProfileIdArgumentName string = "run_as_profile_id" optional**

**requiresAuthentication bool = true optional**

**supportsConnectivityProbe bool = false optional**

**probeToolName string? = null optional**

Returns

`ToolAuthenticationContract`

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:C928020E0C65D582285199F13F5A35E4793AF7D3C3ECE51E4DB69F290CDB4C74 -->
