diff --git a/configuration/token-storage.html b/configuration/token-storage.html index 3d085d1..e90bd99 100644 --- a/configuration/token-storage.html +++ b/configuration/token-storage.html @@ -77,10 +77,9 @@ except for authorization codes (that are short-lived), device and user codes (ex

Such tokens – called reference tokens – are not returned as-is to the caller: instead, their payload is stored in the database entry and a crypto-secure random 256-bit identifier – called reference identifier – is returned as a base64url-encoded string and serves as the "final" token used by the client application when communicating with OpenIddict's endpoints or with resource servers (if reference access tokens are enabled in the server options).

-

[!INFO] -In OpenIddict 3.0, being able to revoke a token is not tied to the token format and doesn't require enabling reference tokens: +

Note

In OpenIddict 3.0, being able to revoke a token is not tied to the token format and doesn't require enabling reference tokens: regular JWT or ASP.NET Core Data Protection tokens can be revoked as long as token storage is not explicitly disabled by the developer.

-
+

Enabling reference access and/or refresh tokens

Reference access and refresh tokens can be manually enabled in the server options for developers who prefer returning shorter access and/or refresh tokens or need to deal with limits that would prevent sending large tokens over the wire.

@@ -100,11 +99,10 @@ they were stolen from the database. For more information on how to enable ASP.NE

Enabling token entry validation at the API level

For performance reasons, OpenIddict 3.0 doesn't check, by default, the status of a token entry when receiving an API request: access tokens are considered valid until they expire. For scenarios that require immediate access token revocation, the OpenIddict validation handler can be configured to enforce token entry validation for each API request:

-

[!INFO] -Enabling token entry validation requires that the OpenIddict validation handler have a direct access to the server database where tokens are stored, which makes it +

Note

Enabling token entry validation requires that the OpenIddict validation handler have a direct access to the server database where tokens are stored, which makes it better suited for APIs located in the same application as the authorization server. For external applications, consider using introspection instead of local validation.

In both cases, additional latency – caused by the additional DB request and the HTTP call for introspection – is expected.

-
+
services.AddOpenIddict()
     .AddValidation(options =>
     {
diff --git a/manifest.json b/manifest.json
index eaac9e4..0f62548 100644
--- a/manifest.json
+++ b/manifest.json
@@ -9909,7 +9909,7 @@
       "output": {
         ".html": {
           "relative_path": "configuration/token-storage.html",
-          "hash": "Ld32xASqmME3EFn+1T/RrQ=="
+          "hash": "bnM7xYQHxt0okDeTyU7Vcw=="
         }
       },
       "is_incremental": false,