Mercurial > prosody-modules
annotate mod_email_pass/templates/token.html @ 5682:527c747711f3
mod_http_oauth2: Limit revocation to clients own tokens in strict mode
RFC 7009 section 2.1 states:
> The authorization server first validates the client credentials (in
> case of a confidential client) and then verifies whether the token was
> issued to the client making the revocation request. If this
> validation fails, the request is refused and the client is informed of
> the error by the authorization server as described below.
The first part was already covered (in strict mode). This adds the later
part using the hash of client_id recorded in 0860497152af
It still seems weird to me that revoking a leaked token should not be
allowed whoever might have discovered it, as that seems the responsible
thing to do.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 29 Oct 2023 11:30:49 +0100 |
parents | 7dbde05b48a9 |
children |
rev | line source |
---|---|
1342 | 1 <!DOCTYPE html> |
2 <html> | |
3 <head> | |
1343
7dbde05b48a9
all the things: Remove trailing whitespace
Florian Zeitz <florob@babelmonkeys.de>
parents:
1342
diff
changeset
|
4 <link rel="stylesheet" type="text/css" href="style.css" /> |
1342 | 5 <meta charset="utf-8"> |
6 <title>Reseto de la clave de tu cuenta Jabber</title> | |
7 </head> | |
8 <body> | |
9 <div id="estilo" class="formulario"> | |
10 <h1>Reseteo de la clave de tu cuenta Jabber</h1> | |
11 <form action="{path}?{token}" method="POST"> | |
1343
7dbde05b48a9
all the things: Remove trailing whitespace
Florian Zeitz <florob@babelmonkeys.de>
parents:
1342
diff
changeset
|
12 <p class="error">{notice}</p> |
1342 | 13 <label> |
14 Token: | |
15 </label> | |
16 <input name="token" value="{token}" required readonly> | |
17 <div class="spacer"></div> | |
1343
7dbde05b48a9
all the things: Remove trailing whitespace
Florian Zeitz <florob@babelmonkeys.de>
parents:
1342
diff
changeset
|
18 |
1342 | 19 <label> |
20 Contraseña: | |
21 </label> | |
22 <input name="newpassword" type="password" required size="35"> | |
23 <div class="spacer"></div> | |
1343
7dbde05b48a9
all the things: Remove trailing whitespace
Florian Zeitz <florob@babelmonkeys.de>
parents:
1342
diff
changeset
|
24 <input id="button" class="button" type="submit" value="Cambiar!"> |
1342 | 25 <div class="spacer"></div> |
26 </form> | |
27 </div> | |
28 </body> | |
29 </html> | |
30 |