> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Data.ServiceAuth

# <a id="SuperOffice_WebApi_Data_ServiceAuth" /> Class ServiceAuth

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for ServiceAuth.
Properties for service authentication

```csharp theme={null}
public class ServiceAuth : Carrier
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[ServiceAuth](SuperOffice.WebApi.Data.ServiceAuth.md)

#### Inherited Members

[Carrier.TableRight](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_TableRight),
[Carrier.FieldProperties](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_FieldProperties),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Examples

Get ServiceAuth 123 using the WebApi client:
<pre><code class="lang-csharp">var configuration = new WebApiConfiguration(url);
var agent = new UserAgent(configuration);
var serviceAuth = agent.GetServiceAuth( 123 );</code></pre>

## Constructors

### <a id="SuperOffice_WebApi_Data_ServiceAuth__ctor" /> ServiceAuth()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public ServiceAuth()
```

## Properties

### <a id="SuperOffice_WebApi_Data_ServiceAuth_AuthType" /> AuthType

The type of authentication, plain-text, OAuth...

```csharp theme={null}
public virtual string AuthType { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_ServiceAuth_Password" /> Password

The (decrypted) password or token

```csharp theme={null}
public virtual string Password { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_ServiceAuth_Port" /> Port

The server port

```csharp theme={null}
public virtual int Port { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_ServiceAuth_Server" /> Server

The mail server

```csharp theme={null}
public virtual string Server { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_ServiceAuth_ServiceAuthId" /> ServiceAuthId

The primary key

```csharp theme={null}
public virtual int ServiceAuthId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_ServiceAuth_Username" /> Username

The username

```csharp theme={null}
public virtual string Username { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

## See Also

[UserAgent](SuperOffice.WebApi.Agents.UserAgent.md)


## Related topics

- [SuperOffice.WebApi.Agents.IUserAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IUserAgent.md)
- [SuperOffice.WebApi.Agents.UserAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.UserAgent.md)
- [SuperOffice.WebApi.Data.EMailAccount](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMailAccount.md)
- [SuperOffice.WebApi.Data.Configuration GetCSAuthUrlRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Configuration_GetCSAuthUrlRequest.md)
- [SuperOffice.WebApi.Authorization.IAuthorization](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.IAuthorization.md)
- [SuperOffice.WebApi.Authorization.AuthorizationTicket](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.AuthorizationTicket.md)
