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

Provide Web Push to Webhooks service #83

Open
elf-pavlik opened this issue Apr 18, 2024 · 0 comments
Open

Provide Web Push to Webhooks service #83

elf-pavlik opened this issue Apr 18, 2024 · 0 comments

Comments

@elf-pavlik
Copy link
Collaborator

Since Web Push requires the sender's public key to create a subscription, it is very limited if the sender is one of many resource servers. Authorization Agent is a great place to offer Web Push subscription service that creates Webhook channels with all the resource servers and forwards notifications from Webhooks to Web Push.

sequenceDiagram
  participant App
  participant AA
  participant RS1
  participant RS2
  participant RS3

  App ->> AA: Create Web Push channel
  AA ->> RS1: Create Webhook channel
  loop Every notification
    RS1-->>AA: Deliver notification
    AA -->>App: Forward notification
  end
  App ->> AA: Create Web Push channel
  AA ->> RS2: Create Webhook channel
  loop Every notification
    RS2-->>AA: Deliver notification
    AA -->>App: Forward notification
  end
  App ->> AA: Create Web Push channel
  AA ->> RS3: Create Webhook channel
  loop Every notification
    RS3->>AA: Deliver notification
    AA -->>App: Forward notification
  end
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant