iya-sts
    Preparing search index...

    The AT Protocol's OAuth profile as a client. A static utility class.

    Index
    SCOPE: "atproto" = SCOPE
    • The public document whose address is this relationship's client id.

      Parameters

      • clientId: string

        its address

      • redirectUri: string

        the assertion consumer service

      • name: string

        what a person is shown

      Returns any

      the document

    • Parses a dial's body as JSON.

      Parameters

      • answer: any

        what fetchPublished() answered

      Returns any

      the JSON, or null

    • Makes the key one sign-in's proofs are signed with.

      Returns any

      { pem, jwk }, jwk the public half alone

    • Posts a form with a DPoP proof, answering the server's nonce once. The profile's servers refuse a first proof by design, saying use_dpop_nonce.

      Parameters

      • dial: Fetch

        the dialler

      • url: string

        the address

      • form: any

        the form's fields

      • key: any

        what newKey() made

      Returns Promise<any>

      { ok, status, json }

    • Signs a DPoP proof (RFC 9449 section 4.2).

      Parameters

      • key: any

        what newKey() made

      • url: string

        the address the proof is for

      • nonce: string

        the server's nonce, if it has given one

      Returns string

      the proof

    • Reads the authorization server's metadata (RFC 8414), held to naming the issuer the relationship names.

      Parameters

      • dial: Fetch

        the dialler

      • issuer: string

        fedPeer

      Returns Promise<any>

      the endpoints, or null

    • Says why the answer's sub is not to be believed, or '' when it may be: the DID's document names a data server, and that server must name this issuer. See the header.

      Parameters

      • dial: Fetch

        the dialler

      • did: string

        the answer's sub

      • issuer: string

        fedPeer

      • directory: string

        federation.atprotoPlcDirectory

      Returns Promise<string>

      the problem, or ''