The instance identifier from the first response, once the server has issued one.
The loaded key. The private half is on it; do not send that anywhere.
How this client proves itself.
Headers for one request that presents grant's access token: Authorization: GNAP, and the key
proof. Pass the exact body that will be sent. Mutual TLS adds no signature header; the certificate
is on the connection from GnapClient.tls.
Sends url with the access token and the key proof.
StaticcreateA client for an already-resolved configuration.
OPTIONS on the grant endpoint. Repeated calls reuse the first answer.
Completes a push finish. The authorization server posts { hash, interact_ref } to finishUri;
there is no browser cookie, and the hash is what authenticates the call.
Completes a redirect finish. allowedIds are the pending grants this browser started: a redirect
URL stolen from one browser does not finish in another. The hash is single use.
StaticfromStarts a grant. When the server needs the person, the result has redirectUrl and pending:
send the browser to the URL, and keep pending.id (not the continuation token) until
GnapClient.finishRedirect. When the server issues the token at once, the result has grant.
StaticresolveResolves a configuration object. Relative paths start at baseDir.
Revokes the whole grant (RFC 9635 section 5.4). A 204 is success.
TLS for every call to the authorization server and, for mutual TLS, the client certificate.
The GNAP client. GnapClient.fromFile loads the key and does not contact the authorization server; discovery happens on the first grant.