From 9668fb3acd4272e1a60bab79def56d2f04605961 Mon Sep 17 00:00:00 2001 From: OpenIddict Bot <32257313+openiddict-bot@users.noreply.github.com> Date: Wed, 13 Jan 2021 05:12:48 +0000 Subject: [PATCH] Update the documentation pages --- guide/getting-started.html | 8 +++----- manifest.json | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/guide/getting-started.html b/guide/getting-started.html index 76d7b73..21beec7 100644 --- a/guide/getting-started.html +++ b/guide/getting-started.html @@ -213,11 +213,9 @@ Here's an example for the client credentials grant:

// Note: the client credentials are automatically validated by OpenIddict: // if client_id or client_secret are invalid, this action won't be invoked. - var application = await _applicationManager.FindByClientIdAsync(request.ClientId); - if (application is null) - { - throw new InvalidOperationException("The application details cannot be found."); - } + var application = + await _applicationManager.FindByClientIdAsync(request.ClientId) ?? + throw new InvalidOperationException("The application cannot be found."); // Create a new ClaimsIdentity containing the claims that // will be used to create an id_token, a token or a code. diff --git a/manifest.json b/manifest.json index e166fd9..a605997 100644 --- a/manifest.json +++ b/manifest.json @@ -45,7 +45,7 @@ "output": { ".html": { "relative_path": "guide/getting-started.html", - "hash": "lkMk8zUcxDGnyHX220VRdQ==" + "hash": "+jOyF8NSMA1jX6YFLsLZ2g==" } }, "is_incremental": false,