#### [Abblix\.Oidc\.Server](https://www.abblix.com/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.MultiTenancy](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy 'Abblix\.Oidc\.Server\.Features\.MultiTenancy')

## TenantAddress Class

Where a tenant is served: the host and path of its issuer\.

```csharp
public sealed record TenantAddress : System.IEquatable<Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress>
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → TenantAddress

Implements [System\.IEquatable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')[TenantAddress](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantAddress')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')

### Remarks
Scheme and port are left out: behind a proxy the request carries its own, and two issuers differing in
nothing else could not be told apart by a request\.
### Constructors

## TenantAddress\(string, string\) Constructor {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.TenantAddress(string,string)}

Where a tenant is served: the host and path of its issuer\.

```csharp
public TenantAddress(string Host, string Path);
```
#### Parameters

###### `Host` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.TenantAddress(string,string).Host}

The issuer's host, as [Normalize\(string\)](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantHost#Abblix.Oidc.Server.Features.MultiTenancy.TenantHost.Normalize(string) 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantHost\.Normalize\(string\)') leaves it\.

###### `Path` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.TenantAddress(string,string).Path}

The issuer's path without a trailing slash; empty for an issuer at the root of its host\.

### Remarks
Scheme and port are left out: behind a proxy the request carries its own, and two issuers differing in
nothing else could not be told apart by a request\.
### Properties

## TenantAddress\.Host Property {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.Host}

The issuer's host, as [Normalize\(string\)](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantHost#Abblix.Oidc.Server.Features.MultiTenancy.TenantHost.Normalize(string) 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantHost\.Normalize\(string\)') leaves it\.

```csharp
public string Host { get; init; }
```

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')

## TenantAddress\.Path Property {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.Path}

The issuer's path without a trailing slash; empty for an issuer at the root of its host\.

```csharp
public string Path { get; init; }
```

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')
### Methods

## TenantAddress\.AllOf\(TenantDefinition\) Method {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.AllOf(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition)}

Every address [tenant](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.AllOf(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition).tenant 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantAddress\.AllOf\(Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition\)\.tenant') is served at: its issuer's, and its mutual\-TLS host under the
issuer's path when it declares one\.

```csharp
public static System.Collections.Generic.IEnumerable<Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress> AllOf(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition tenant);
```
#### Parameters

###### `tenant` [TenantDefinition](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition') {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.AllOf(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition).tenant}

#### Returns
[System\.Collections\.Generic\.IEnumerable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1 'System\.Collections\.Generic\.IEnumerable\`1')[TenantAddress](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantAddress')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1 'System\.Collections\.Generic\.IEnumerable\`1')

## TenantAddress\.Canonical\(\) Method {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.Canonical()}

This address with its path in the form it is compared in, so two addresses no request can tell apart are
equal\.

```csharp
public Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress Canonical();
```

#### Returns
[TenantAddress](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantAddress')

## TenantAddress\.CanonicalPath\(string\) Method {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.CanonicalPath(string)}

[path](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.CanonicalPath(string).path 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantAddress\.CanonicalPath\(string\)\.path') with every encoded slash in one case, the form both an issuer's path and a request
            path are compared in: RFC 3986 section 2\.1 makes the case of an escape insignificant, and the server keeps
            an encoded slash as the client wrote it\.

```csharp
public static string CanonicalPath(string path);
```
#### Parameters

###### `path` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.CanonicalPath(string).path}

#### Returns
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')

### Remarks
Used to compare, never to address: an encoded slash in the addresses built from a request stays as the
client wrote it, since a client assertion's audience is compared with them exactly\. The length never
changes, so a position found in this form is the same position in the original\.

## TenantAddress\.Covers\(string\) Method {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.Covers(string)}

Whether [path](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.Covers(string).path 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantAddress\.Covers\(string\)\.path') is this address's path or goes on below it, compared by whole segments:
`/tenants/acme` covers `/tenants/acme/connect/token` and not `/tenants/acme2`\.

```csharp
public bool Covers(string path);
```
#### Parameters

###### `path` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.Covers(string).path}

#### Returns
[System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')

## TenantAddress\.Of\(Uri\) Method {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.Of(System.Uri)}

The address [issuer](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.Of(System.Uri).issuer 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantAddress\.Of\(System\.Uri\)\.issuer') names\.

```csharp
public static Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress Of(System.Uri issuer);
```
#### Parameters

###### `issuer` [System\.Uri](https://learn.microsoft.com/en-us/dotnet/api/system.uri 'System\.Uri') {#Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress.Of(System.Uri).issuer}

#### Returns
[TenantAddress](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantAddress 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantAddress')

### Remarks
The host is taken with the brackets an IPv6 address keeps in a Host header, and the path decoded as the
server decodes a request path \- every escape except an encoded slash, which would otherwise split a
segment \- since that is the form each is compared with\.
