> ## 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.Authorization.AuthorizationTicket

# \<a id="SuperOffice\_WebApi\_Authorization\_AuthorizationTicket">\</a> Class AuthorizationTicket

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

SOTicket for use in onsite scenarios. See also \<xref href="SuperOffice.WebApi.Authorization.IAuthorization" data-throw-if-not-resolved="false">\</xref>.

```csharp theme={null}
public class AuthorizationTicket : IAuthorization
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[AuthorizationTicket](SuperOffice.WebApi.Authorization.AuthorizationTicket.md)

#### Implements

[IAuthorization](SuperOffice.WebApi.Authorization.IAuthorization.md)

#### Inherited Members

[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)

## Constructors

### \<a id="SuperOffice\_WebApi\_Authorization\_AuthorizationTicket\_\_ctor\_System\_String\_">\</a> AuthorizationTicket(string)

Ticket Authorization constructor used in CRM onsite scenario's.

```csharp theme={null}
public AuthorizationTicket(string ticket)
```

#### Parameters

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

SOTicket string: "7T:abc123=="

## Properties

### \<a id="SuperOffice\_WebApi\_Authorization\_AuthorizationTicket\_RefreshAuthorizationAsync">\</a> RefreshAuthorizationAsync

Try to refresh this \<xref href="SuperOffice.WebApi.Authorization.IAuthorization" data-throw-if-not-resolved="false">\</xref> instance.

```csharp theme={null}
public Func<ReAuthorizationArgs, Task<IAuthorization>> RefreshAuthorizationAsync { get; set; }
```

#### Property Value

[Func](https://learn.microsoft.com/dotnet/api/system.func-2)\<[ReAuthorizationArgs](SuperOffice.WebApi.Authorization.ReAuthorizationArgs.md), [Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)\<[IAuthorization](SuperOffice.WebApi.Authorization.IAuthorization.md)\&gt;\&gt;

### \<a id="SuperOffice\_WebApi\_Authorization\_AuthorizationTicket\_Ticket">\</a> Ticket

The SOTicket value.

```csharp theme={null}
protected string Ticket { get; set; }
```

#### Property Value

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

## Methods

### \<a id="SuperOffice\_WebApi\_Authorization\_AuthorizationTicket\_GetAuthorization">\</a> GetAuthorization()

Gets a tuple that represents authorization scheme and parameter for an SOTicket.

```csharp theme={null}
public AuthenticationHeaderValue GetAuthorization()
```

#### Returns

[AuthenticationHeaderValue](https://learn.microsoft.com/dotnet/api/system.net.http.headers.authenticationheadervalue)

Gets a \<xref href="System.Tuple%602" data-throw-if-not-resolved="false">\</xref> (string,string) where scheme is SOTicket and parameter is SOTicket string.


## Related topics

- [SuperOffice.WebApi.Authorization.AuthorizationSystemUserTicket](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.AuthorizationSystemUserTicket.md)
- [SuperOffice.WebApi.Authorization.IAuthorization](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.IAuthorization.md)
- [SuperOffice.WebApi.Authorization](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.md)
- [SuperOffice.WebApi.Authorization.SystemUserTicket.Exceptions.SystemUserException](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.SystemUserTicket.Exceptions.SystemUserException.md)
- [SuperOffice.WebApi.Authorization.SystemUserTicket.Exceptions](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.SystemUserTicket.Exceptions.md)
- [SuperOffice.WebApi.Authorization.AuthorizationImplicit](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.AuthorizationImplicit.md)
