Table of Contents

Method IdentityOf

Namespace
MailFathom.Infrastructure.Security.OAuth
Assembly
MailFathom.Infrastructure.dll

IdentityOf(string, string)

Joins an issuer and a subject into the one identity everything else compares against.

public static string IdentityOf(string issuer, string subject)

Parameters

issuer string

The authorization server that authenticated the person.

subject string

That server's own stable identifier for them.

Returns

string

The identity carried by SubjectClaimType.

Remarks

Composed in one place so a configured identity and a token's identity cannot be spelled differently; a subject is unique only within its issuer, so neither half identifies anyone alone.

Exceptions

ArgumentNullException

Thrown when issuer or subject is null.