Mercurial > prosody-modules
annotate mod_bookmarks/README.markdown @ 5193:2bb29ece216b
mod_http_oauth2: Implement stateless dynamic client registration
Replaces previous explicit registration that required either the
additional module mod_adhoc_oauth2_client or manually editing the
database. That method was enough to have something to test with, but
would not probably not scale easily.
Dynamic client registration allows creating clients on the fly, which
may be even easier in theory.
In order to not allow basically unauthenticated writes to the database,
we implement a stateless model here.
per_host_key := HMAC(config -> oauth2_registration_key, hostname)
client_id := JWT { client metadata } signed with per_host_key
client_secret := HMAC(per_host_key, client_id)
This should ensure everything we need to know is part of the client_id,
allowing redirects etc to be validated, and the client_secret can be
validated with only the client_id and the per_host_key.
A nonce injected into the client_id JWT should ensure nobody can submit
the same client metadata and retrieve the same client_secret
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 03 Mar 2023 21:14:19 +0100 |
parents | 14ee1ec3bb93 |
children |
rev | line source |
---|---|
3229
e8963e328b26
mod_bookmarks: New module synchronising bookmarks to the new persistent mod_pep
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
1 --- |
e8963e328b26
mod_bookmarks: New module synchronising bookmarks to the new persistent mod_pep
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
2 labels: |
4847
a280878c4ef2
mod_bookmarks: So long, and thanks for all the fish!
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
4638
diff
changeset
|
3 - 'Stage-Obsolete' |
3229
e8963e328b26
mod_bookmarks: New module synchronising bookmarks to the new persistent mod_pep
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
4 summary: Synchronise bookmarks between Private XML and PEP |
e8963e328b26
mod_bookmarks: New module synchronising bookmarks to the new persistent mod_pep
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
5 ... |
e8963e328b26
mod_bookmarks: New module synchronising bookmarks to the new persistent mod_pep
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
diff
changeset
|
6 |
4638
3c4cef6be45b
mod_bookmarks: Deprecate this module
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3497
diff
changeset
|
7 ::: {.alert .alert-warning} |
4847
a280878c4ef2
mod_bookmarks: So long, and thanks for all the fish!
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
4638
diff
changeset
|
8 **WARNING:** This module is deprecated, please use |
4885
14ee1ec3bb93
mod_bookmarks: Use autolink to mod_bookmarks2
Kim Alvefur <zash@zash.se>
parents:
4884
diff
changeset
|
9 [mod\_bookmarks2] going forward or |
4884
960afcbc1ead
mod_bookmarks: Also link to mod_bookmarks included with Prosody (trunk)
Kim Alvefur <zash@zash.se>
parents:
4847
diff
changeset
|
10 [mod_bookmarks included with Prosody][doc:modules:mod_bookmarks] |
4638
3c4cef6be45b
mod_bookmarks: Deprecate this module
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
3497
diff
changeset
|
11 ::: |