iya-sts
    Preparing search index...

    Variable principalOfSession

    principalOfSession: (username: string, sub: string) => any = ...

    Type Declaration

      • (username: string, sub: string): any
      • Says what kind of principal a session's subject is when it is not a person: a SPIFFE workload or an application entry.

        Parameters

        • username: string

          the name the session was started for

        • sub: string

          the person subject the directory gave it, or ''

        Returns any

        { workload }, { application }, or null for a person (or a name nothing here recognises)