Create SSE ticket
POST/v2/config/sse-ticket
Exchanges the Authorization header of the caller for a one-time ticket for one Server-Sent Events (SSE) operation. The browser EventSource API cannot set request headers, so the client puts only the ticket in the SSE URL, in the ticket query parameter. The access token or API key then does not appear in a URL or in an access log.
SSE operations that accept a ticket
Give one of these paths in path:
/v2/config/digital-wallet/openid/notifications/sse- stream notifications -/v3/config/digital-wallet/openid/notifications/presentation-status/sse- stream verification status
Rules
- The caller must be allowed to open the SSE operation of
path. A ticket never gives more access than a request to that operation with the sameAuthorizationheader. - The ticket is valid for
expiresInseconds (30) and for one request topathonly. An unknown, used or expired ticket, or a ticket for another path, gives 401 on the SSE operation. - The SSE request with the ticket runs as the caller of this operation: the
Authorizationheader of this request applies, not the headers of the SSE request. - Get a new ticket for each connection, also when the client reconnects.
Request
- application/json
Body
required
Possible values: [/v2/config/digital-wallet/openid/notifications/sse, /v3/config/digital-wallet/openid/notifications/presentation-status/sse]
Path (with the version prefix) of the SSE operation that the ticket is for.
Responses
- 201
- 400
- 401
- 403
Created. The ticket is valid for one request to the SSE operation of path.
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
One-time ticket. Put it in the ticket query parameter of the SSE operation of path.
Lifetime of the ticket in seconds.
{
"ticket": "q3Jx0b7T8c2vY1nK5mW9pL4sR6uE0aZ2hD8fG3jC1tQ",
"expiresIn": 30
}
The body is not JSON, or path is not one of the SSE operations above.
Response Headers
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}
{
"errorCode": 400,
"errorDescription": "path is not an SSE route"
}
The Authorization header is missing or not valid.
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}
The caller is not allowed to open the SSE operation of path.
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"Code": 403,
"Message": "Unauthorized access;User doesn't have enough permissions;"
}