org.tangled.repo.mintToken
Mint a service-auth JWT whose issuer is this repo's DID, signed by the knot that owns the repo's signing key. When calling this, you'll need the same perms as git push, ie. being repo owner/collaborator/knot-admin.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | repo.tangled.org |
| Indexed |
Showing version bafyreicnlsfce7h3qndo6ayvul2ft3rpozh56tdgvzf5ordcecj3phfrc4. Show the latest
Checks
Validunlimited-stringdefs.main.output.schema.properties.tokenNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Mint a service-auth JWT whose issuer is this repo's DID, signed by the knot that owns the repo's signing key. When calling this, you'll need the same perms as git push, ie. being repo owner/collaborator/knot-admin.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"aud": {
"description": "Audience of the minted token, a DID service ref for the service, that the token is addressed to.",
"format": "did",
"type": "string"
},
"exp": {
"description": "Unix seconds. Must be in the future, and at most 60s after mint time.",
"format": "int64",
"type": "integer"
},
"lxm": {
"description": "Lexicon method to which minted token binds.",
"format": "nsid",
"type": "string"
},
"repo": {
"description": "DID of the repo that becomes the token's issuer. Must be the audience of a given calling session.",
"format": "did",
"type": "string"
}
},
"required": [
"repo",
"aud",
"lxm",
"exp"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"token": {
"description": "The signed service-auth JWT.",
"type": "string"
}
},
"required": [
"token"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "org.tangled.repo.mintToken",
"lexicon": 1
}