at.happyproto.server.getManagementTicket

A 60-second management ticket for one of the caller's instances, bound to the ticket key `keyProof` proves: a key the caller's browser generated and can't export. Send it to the instance as `Authorization: HV-Ticket <ticket>` with an `HV-Ticket-Proof` signed by that key for each request. Customers only.

Repository @happyproto.at did:plc:mo7vq4jbioxwafy5zkcc3eux namespace authority
Details · procedure
Kindprocedure
Authorityserver.happyproto.at
Commit rev3n2oarteio622
Indexed

Procedure

procedure · POST

Input

application/json

instance

requiredstring

The instance's UUID.

keyProof

requiredstring

A compact JWS signed by the ticket key, with `typ: hv-key-proof+jwt` and its public JWK in the header. Claims: `aud`, HappyProto's instance's issuer URL; `lxm`, `at.happyproto.server.getManagementTicket`; `dpop_jkt`, the thumbprint of the DPoP key signing this request; `iat`; `jti`.

Output

application/json

audience

requiredstring

The instance the ticket names, as hpy:instance:<uuid>.

expiresAt

requiredinteger

When the ticket expires, in Unix seconds.

ticket

requiredstring

The ticket, a compact JWS.

url

requiredstring

The instance's public URL, which the request proofs name.

Errors

AuthRequired

This endpoint requires an authenticated caller.

Forbidden

The caller is not a HappyProto customer, or the provisioner refused them.

InvalidRequest

instance is missing or not a UUID, keyProof is missing, or HappyView refused keyProof.

Unavailable

HappyView made no caller assertion for this sign-in, for example because it isn't a DPoP session. Signing in again may fix it. A sign-in from another app is refused by the provisioner and comes back as Upstream.

NotFound

No such instance, or it is not the caller's. The two are indistinguishable.

UnsupportedRelease

Passed through from the provisioner: the instance's HappyView release predates tickets.

TicketsDisabled

Passed through from the provisioner: tickets are not turned on.

Upstream

The provisioner is unreachable, not configured, or answered with an error it does not explain to callers.