# TlsOptions.OnAuthenticateAsClient

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.connections.security/orleans.connections.security.tlsoptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.connections.security/orleans.connections.security.tlsoptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Connections.Security/Security/TlsOptions.cs)

```csharp
public Action<ConnectionContext, TlsClientAuthenticationOptions> OnAuthenticateAsClient
```

Provides direct configuration of the [TlsClientAuthenticationOptions](/orleans/docs/api/csharp/microsoft.orleans.connections.security/orleans.connections.security.tlsclientauthenticationoptions/) on a per-connection basis. This is called after all of the other settings have already been applied. Use this to set the target host name for SNI (Server Name Indication) via [TlsClientAuthenticationOptions](/orleans/docs/api/csharp/microsoft.orleans.connections.security/orleans.connections.security.tlsclientauthenticationoptions/).
