@maschinenlesbar.org/smard-cli
    Preparing search index...

    Function echoedCredentialForms

    • The forms in which a server may echo the credentials of a userinfo (user:password, as credentialsIn returns it) back in an error body: the Authorization: Basic value (base64 of the decoded user:password, UTF-8 as Node sends it), the decoded user:password itself, and the secret alone when it is at least 4 characters long. The secret is the password; for a userinfo without one (https://TOKEN@host, https://TOKEN:@host) it is the user name, a token, and Node sends TOKEN: as the Basic value. The order is always [basic, pair, secret]. [] only for an empty userinfo. None of them has an @ to anchor on, so they are replaced as exact strings (redactSecrets).

      Parameters

      • userinfo: string

      Returns string[]