ietf-wg-gnap / gnap-core-protocol

141 stars 26 forks source link

Interaction Timeout #416

Closed jricher closed 2 years ago

jricher commented 2 years ago

When an AS creates a set of of interaction artifacts, like a user code or interaction URI, these artifacts aren't likely to be available perpetually. The AS will likely want to purge these after some time.

It might be useful for the AS to indicate to the client a timeout for the "interact" return block so that the client has some idea of how much time it has to use the interaction methods.

{
    "interact": {
        "redirect": "https://server.example/interact/1234",
        "user_code": "123456",
        "expires_in": 600
    }
}