Skip to content

notifications #7

@dickhardt

Description

@dickhardt

There are a number of scenarios where the RP wants to notify the OP:

  • the RP would like the OP to perform a command

    • metadata has changed and the RP is requesting the OP perform a metadata Command
    • the RP is not sure it has the correct account information, and wants the OP to perform an audit_tenant Command
  • the RP has completed an asynchronous command and is notifying the OP that the Command has completed and its result

Other scenarios may come up.

For the RP to send a Notification, the OP provides a tenant specific notification_endpoint in its metadata. If the client is unable to authenticate to the OP, the notification_endpoint MUST have enough entropy to prevent it from being guessed, and should update the notification_endpoint on a regular basis. The notificaiton_endpoint is opaque to the RP. The notification_endpoint MUST represent context for the OP to know which RP is calling, and which tenant it is about.

The RP does a POST to the notification_endpoint and SHOULD authenticate if it can. The JSON payload

{
   "client_id": "asdas",
   "notification": "command_requested",
   "command": "metadata"
}
{
   "client_id": "asdas",
   "notification": "command_completed",
   "command": "delete",
   "jti": "sadh873hsjad",
   "response": {
       "sub": "12434",
       "tenant": "12323123",
       "account_state": "unknown",
   },
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions