Mercurial > prosody-modules
view mod_http_oauth2/html/style.css @ 5285:8e1f1eb00b58
mod_sasl2_fast: Fix harmless off-by-one error (invalidates existing tokens!)
Problem:
This was causing the key to become "<token>--cur" instead of the expected
"<token>-cur". As the same key was used by the code to both set and get, it
still worked.
Rationale for change:
Although it worked, it's unintended, inconsistent and messy. It increases the
chances of future bugs due to the unexpected format.
Side-effects of change:
Existing '--cur' entries will not be checked after this change, and therefore
existing FAST clients will fail to authenticate until they attempt password
auth and obtain a new FAST token.
Existing '--cur' entries in storage will not be cleaned up by this commit, but
this is considered a minor issue, and okay for the relatively few FAST
deployments.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 29 Mar 2023 16:12:15 +0100 |
parents | 7acf73d2ebb5 |
children | 7998b49d6512 |
line wrap: on
line source
body { margin-top:14%; text-align:center; background-color:#f8f8f8; font-family:sans-serif } h1 { font-size:xx-large; } legend { font-size:x-large; } p { font-size:large; } .error { margin: 0.75em; background-color: #f8d7da; color: #842029; border: solid 1px #f5c2c7; } input { margin: 0.3rem; padding: 0.2rem; line-height: 1.5rem; font-size: 110%; } h1, h2 { text-align: left; } main { max-width: 600px; padding: 0 1.5em 1.5em 1.5em; } dt { font-weight: bold; margin: 0.5em 0 0 0; } dd { margin: 0; } button, input[type=submit] { padding: 0.5rem; margin: 0.75rem; } @media(prefers-color-scheme:dark) { body { background-color:#161616; color:#eee; } .error { color: #f8d7da; background-color: #842029; } :link { color: #6197df; } :visited { color: #9a61df; } } @media(min-width: 768px) { main { margin-left: auto; margin-right: auto; } }