iya-sts
    Preparing search index...

    The subject names this service writes in the certificates it issues: one table of prefixes and the helpers every writer and reader uses.

    Index
    APPLICATION: string = FORMS.application.prefix
    CELL: string = FORMS.cell.prefix
    DEVICE: string = FORMS.device.prefix
    FEDERATION: string = FORMS.federation.prefix
    FORM_IDS: readonly Form[] = FORM_IDS
    FORMS: Readonly<Record<Form, Readonly<{ kind: string; prefix: string }>>> = FORMS
    PERSON: string = FORMS.person.prefix
    PERSON_FORMS: readonly Form[] = ...

    The forms that name a person entry: a person, and a service account.

    SERVICE_ACCOUNT: string = FORMS.sa.prefix
    • Builds the name for a holder of a kind: a person (spelt for a service account where serviceAccount says so), an application, or any other form by its id.

      Parameters

      • kind: string

        'person', 'application', or another form

      • name: unknown

        the holder's name or identifier

      • OptionalserviceAccount: boolean

        for a person, whether it is a service account

      Returns string

      the URI, or '' for a kind this table does not hold

    • Builds the name a PERSON entry's certificate carries: urn:sts:sa: for a service account, urn:sts:person: for anybody else. The caller says which, having asked the directory at issue.

      Parameters

      • name: unknown

        the username

      • serviceAccount: boolean

        whether the entry is a service account now

      Returns string

      the URI

    • Says whether a value is spelt as a service account's name, urn:sts:sa: — the one form a door must check against the directory.

      Parameters

      • value: unknown

        the URI, subjectAltName member, or a parse() answer

      Returns boolean

      true when it is

    • Says whether a value is one of this service's subject names.

      Parameters

      • value: unknown

        the URI or subjectAltName member

      Returns boolean

      true when it is

    • Builds a name in one form.

      Parameters

      • form: string

        the form

      • name: unknown

        the holder's name or identifier

      Returns string

      the URI, or '' for a form this table does not hold

    • Reads every subject name out of a list of URIs or a node-style subjectAltName string (DNS:a, URI:urn:sts:…).

      Parameters

      • names: unknown

        the string, or an array of URIs or members

      • Optionalforms: readonly string[]

        optional: only these forms are recognised

      Returns Parsed[]

      the parsed names, in order

    • Says whether a value names a person entry: urn:sts:person: or urn:sts:sa:.

      Parameters

      • value: unknown

        the URI or subjectAltName member

      Returns boolean

      true when it does

    • Reads one of this service's subject names, as a bare URI or as a subjectAltName member (URI:urn:sts:…).

      Parameters

      • value: unknown

        the URI or member

      • Optionalforms: readonly string[]

        optional: only these forms are recognised

      Returns Parsed

      { form, kind, name, uri }, or null when it is none of ours or names nobody

    • Returns a form's prefix.

      Parameters

      • form: string

        the form

      Returns string

      the prefix, or '' for a form this table does not hold

    • Says whether two names name the same entry, whatever their spelling: urn:sts:person:x and urn:sts:sa:x are the same person.

      Parameters

      • a: unknown

        a URI or member

      • b: unknown

        another

      Returns boolean

      true when both are ours and name one entry