Skip to content

Latest commit

 

History

History
194 lines (162 loc) · 6.73 KB

deliveryservices_xmlid_urisignkeys.rst

File metadata and controls

194 lines (162 loc) · 6.73 KB

deliveryservices/{{xml_id}}/urisignkeys

DELETE

Deletes URISigning objects for a :term:`Delivery Service`.

Auth. Required:Yes
Roles Required:admin[1]
Response Type:undefined

Request Structure

Request Path Parameters
Name Required Description
xml_id yes xml_id of the desired delivery service

Response Structure

TBD

GET

Retrieves one or more URISigning objects for a delivery service.

Auth. Required:Yes
Roles Required:admin[1]
Response Type:undefined

Request Structure

Request Route Parameters
Name Required Description
xml_id yes xml_id of the desired delivery service

Response Structure

Issuer:a string describing the issuer of the URI signing object. Multiple URISigning objects may be returned in a response, see example
renewal_kid:a string naming the jwt key used for renewals
keys:json array of jwt symmetric keys
alg:this parameter repeats for each jwt key in the array and specifies the jwa encryption algorithm to use with this key, RFC 7518
kid:this parameter repeats for each jwt key in the array and specifies the unique id for the key as defined in RFC 7516
kty:this parameter repeats for each jwt key in the array and specifies the key type as defined in RFC 7516
k:this parameter repeats for each jwt key in the array and specifies the base64 encoded symmetric key see RFC 7516
{ "Kabletown URI Authority": {
        "renewal_kid": "Second Key",
        "keys": [
                {
                        "alg": "HS256",
                        "kid": "First Key",
                        "kty": "oct",
                        "k": "Kh_RkUMj-fzbD37qBnDf_3e_RvQ3RP9PaSmVEpE24AM"
                },
                {
                        "alg": "HS256",
                        "kid": "Second Key",
                        "kty": "oct",
                        "k": "fZBpDBNbk2GqhwoB_DGBAsBxqQZVix04rIoLJ7p_RlE"
                }
        ]
}}

POST

Assigns URISigning objects to a delivery service.

Auth. Required:Yes
Roles Required:admin[1]
Response Type:undefined

Request Structure

Request Path Parameters
Name Required Description
xml_id yes xml_id of the desired delivery service

Request Structure

Issuer:a string describing the issuer of the URI signing object. Multiple URISigning objects may be returned in a response, see example
renewal_kid:a string naming the jwt key used for renewals
keys:json array of jwt symmetric keys
alg:this parameter repeats for each jwt key in the array and specifies the jwa encryption algorithm to use with this key, RFC 7518
kid:this parameter repeats for each jwt key in the array and specifies the unique id for the key as defined in RFC 7516
kty:this parameter repeats for each jwt key in the array and specifies the key type as defined in RFC 7516
k:this parameter repeats for each jwt key in the array and specifies the base64 encoded symmetric key see RFC 7516
{ "Kabletown URI Authority": {
        "renewal_kid": "Second Key",
        "keys": [
                {
                        "alg": "HS256",
                        "kid": "First Key",
                        "kty": "oct",
                        "k": "Kh_RkUMj-fzbD37qBnDf_3e_RvQ3RP9PaSmVEpE24AM"
                },
                {
                        "alg": "HS256",
                        "kid": "Second Key",
                        "kty": "oct",
                        "k": "fZBpDBNbk2GqhwoB_DGBAsBxqQZVix04rIoLJ7p_RlE"
                }
        ]
}}

PUT

updates URISigning objects on a delivery service.

Auth. Required:Yes
Roles Required:admin[1]
Response Type:undefined

Request Structure

Request Path Parameters
Name Required Description
xml_id yes xml_id of the desired delivery service

Request Structure

Issuer:a string describing the issuer of the URI signing object. Multiple URISigning objects may be returned in a response, see example
renewal_kid:a string naming the jwt key used for renewals
keys:json array of jwt symmetric keys
alg:this parameter repeats for each jwt key in the array and specifies the jwa encryption algorithm to use with this key, RFC 7518
kid:this parameter repeats for each jwt key in the array and specifies the unique id for the key as defined in RFC 7516
kty:this parameter repeats for each jwt key in the array and specifies the key type as defined in RFC 7516
k:this parameter repeats for each jwt key in the array and specifies the base64 encoded symmetric key see RFC 7516
{ "Kabletown URI Authority": {
        "renewal_kid": "Second Key",
        "keys": [
                {
                        "alg": "HS256",
                        "kid": "First Key",
                        "kty": "oct",
                        "k": "Kh_RkUMj-fzbD37qBnDf_3e_RvQ3RP9PaSmVEpE24AM"
                },
                {
                        "alg": "HS256",
                        "kid": "Second Key",
                        "kty": "oct",
                        "k": "fZBpDBNbk2GqhwoB_DGBAsBxqQZVix04rIoLJ7p_RlE"
                }
        ]
}}
[1](1, 2, 3, 4) URI Signing Keys can only be created, viewed, deleted, or modified on :term:`Delivery Services` that either match the requesting user's :term:`Tenant` or are descendants thereof.