> ## 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

<h1 id="SuperOffice_WebApi_Authorization_AuthorizationTicket">
  Class AuthorizationTicket
</h1>

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

<h3 id="SuperOffice_WebApi_Authorization_AuthorizationTicket__ctor_System_String_">
  AuthorizationTicket(string)
</h3>

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

<h3 id="SuperOffice_WebApi_Authorization_AuthorizationTicket_RefreshAuthorizationAsync">
  RefreshAuthorizationAsync
</h3>

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;

<h3 id="SuperOffice_WebApi_Authorization_AuthorizationTicket_Ticket">
  Ticket
</h3>

The SOTicket value.

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

#### Property Value

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

## Methods

<h3 id="SuperOffice_WebApi_Authorization_AuthorizationTicket_GetAuthorization">
  GetAuthorization()
</h3>

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.WebApiOptions](/en/api/reference/webapi/SuperOffice.WebApi.WebApiOptions.md)
