Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cloud-events.md #208

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/general/cloud-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,29 @@ The application then may get the latest terms of use through the [Get Terms Of U
}
```

## Consent update events

Fired whenever a user grants or revokes a consent. A whole deletion of a consent triggers a revoked event.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to remove the word "whole".

Applications that are part of any of the users subscriptions receive a notification. The application can then retrieve the latest consense status of the user.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Application is part of users subscription" ? Unclear what you mean.
A subscription can have a license of an application.
"users subscription" means I guess "user's subscription"

Further: get the consent information, such as consented scope, from the Consent API.
Where we need to add the "Consent API" to https://developer.tapio.one/general/available-apis when APIM story is implemented.


`tapio.consentinator.consent.revoked`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cloud event type should not expose any reference to internal services. The event type should start with one.tapio.selfservice.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to our discussions in the integration meeting, start should be tapio.selfservice
See internal docs.


```json
{
"subjectId": "c2650bda-d88e-471b-b4b0-5da770ad03ba",
"userEmail": "consenter@tapio.one"
}
```

`tapio.consentinator.consent.granted`

```json
{
"subjectId": "c2650bda-d88e-471b-b4b0-5da770ad03ba",
"userEmail": "consenter@tapio.one"
}
```

## Service Partner Relation Changed Event

Fired when something about the service partner relation of a subscription has been changed.
Expand Down
Loading