@bedrock/authn-token
Advanced tools
Changelog
11.1.0 - 2023-11-09
nonce.testerAccounts
config array is populated
with one or more objects with id
and / or email
set to tester account
values, then if either of these value is used to create a nonce token,
the challenge will always be a static 000000
.Changelog
11.0.0 - 2023-01-24
@bedrock/account@9
. This update changes the database
record and layout for accounts in ways that incompatible with any previous
releases.Changelog
10.4.0 - 2022-12-30
update
API for modifying accounts to
use replacement vs. patch
API. This change should have no
impact on the API and should ease the transition to a new
@bedrock/account
version that no longer supports the patch
API.Changelog
10.3.1 - 2022-12-11
Changelog
10.3.0 - 2022-12-11
@bedrock/account@8.2
to get latest update API features.@bedrock/account
APIs internally to reduce possibility for
breakage if the internals of @bedrock/account
change.explain
flags from APIs that
were directly accessing @bedrock/account
database collections.@bedrock/mongodb
because
the database is no longer directly accessed.Changelog
10.2.0 - 2022-05-28
requiredAuthenticationMethods
to be configured via a new
bedrock configuration option defaultRequiredAuthenticationMethods
. If
a non-empty array of strings is set as the config option value, then new
accounts that do not have any requiredAuthenticationMethods
set will
receive the value. This feature is backwards compatible and makes no
changes by default. It enables applications to avoid having to make an
extra call during account registration to setup default required
authentication methods.Changelog
10.0.1 - 2022-05-21
Changelog
10.0.0 - 2022-05-21
hashParameters
in password and nonce tokens. This
change should be a mostly backwards compatible change but is marked breaking
because it is a data structure change. However, if a password token does not
have a hashParameters
property, it is assumed to be bcrypt
and is
internally modified to add matching hashParameters
before being returned.
If a nonce token does not have a hashParameters
property, it is
auto-expired. Password / nonce hashing must be performed on the client, so
the hash parameters are new information to be sent to the client so it can
produce a matching hash.challenge
to be verified,
not hash
.hashPrefix
) will be removed in a future version. It is an unnecessary
complexity that does not add security (given the other design choices).explain
option from most public APIs.challenge
type
. This type was never implemented and
can be confused with the option challenge
which specifies an unhashed
value to be provided when verifying a totp
token.bcrypt
from configuration and as an
internally-used slow hash function. Use pbkdf2
instead because it is
widely available in clients, especially web browsers -- which is where
most slow hashing occurs given the current design.