Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -650,13 +650,12 @@ public virtual async Task<IList<UserPasskeyInfo>> GetPasskeysAsync(TUser user, C
ArgumentNullException.ThrowIfNull(user);

var userId = user.Id;
var passkeys = await UserPasskeys
var rawPasskeys = await UserPasskeys
.Where(p => p.UserId.Equals(userId))
.Select(p => p.ToUserPasskeyInfo())
.ToListAsync(cancellationToken)
.ConfigureAwait(false);

return passkeys;
return rawPasskeys.Select(p => p.ToUserPasskeyInfo()).ToList();
}

/// <summary>
Expand Down
5 changes: 2 additions & 3 deletions src/Identity/EntityFrameworkCore/src/UserStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -795,13 +795,12 @@ public virtual async Task<IList<UserPasskeyInfo>> GetPasskeysAsync(TUser user, C
ArgumentNullException.ThrowIfNull(user);

var userId = user.Id;
var passkeys = await UserPasskeys
var rawPasskeys = await UserPasskeys
.Where(p => p.UserId.Equals(userId))
.Select(p => p.ToUserPasskeyInfo())
.ToListAsync(cancellationToken)
.ConfigureAwait(false);

return passkeys;
return rawPasskeys.Select(p => p.ToUserPasskeyInfo()).ToList();
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="col-md-12">
@for (var row = 0; row < (Model.RecoveryCodes?.Length ?? 0); row += 2)
{
<code class="recovery-code">@Model.RecoveryCodes![row]</code><text>&nbsp;</text><code class="recovery-code">@Model.RecoveryCodes[row + 1]</code><br />
<code class="recovery-code">@Model.RecoveryCodes![row]</code>@Html.Raw("&nbsp;")<code class="recovery-code">@Model.RecoveryCodes[row + 1]</code><br />
}
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="col-md-12">
@for (var row = 0; row < (Model.RecoveryCodes?.Length ?? 0); row += 2)
{
<code class="recovery-code">@Model.RecoveryCodes![row]</code><text>&nbsp;</text><code class="recovery-code">@Model.RecoveryCodes[row + 1]</code><br />
<code class="recovery-code">@Model.RecoveryCodes![row]</code>@Html.Raw("&nbsp;")<code class="recovery-code">@Model.RecoveryCodes[row + 1]</code><br />
}
</div>
</div>
16 changes: 16 additions & 0 deletions src/Tools/Extensions.ApiDescription.Server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,19 @@ MSBuild glue for OpenAPI document generation.

See partner packages such as [NSwag.AspNetCore](https://www.nuget.org/packages/NSwag.AspNetCore/) or
[Swashbuckle.AspNetCore](https://www.nuget.org/packages/Swashbuckle.AspNetCore/) for intended use.

## Viewing Document Generation Logs

When building, the OpenAPI document generation tool (`dotnet-getdocument`) logs output such as `Generating document named 'v1'`.

With the default [Terminal Logger](https://learn.microsoft.com/dotnet/core/tools/dotnet-build#options) introduced in .NET 8, this output is visible at the default verbosity. To see more detailed output, use the `detailed` Terminal Logger verbosity:

```shell
dotnet build -tlp:v=d
```

To disable the Terminal Logger entirely and see all build output:

```shell
dotnet build --tl:off
```
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

<Message Importance="high" Text="%0AGenerateOpenApiDocuments:" />
<Message Importance="high" Text=" $(_DotNetGetDocumentCommand)" />
<Exec Command="$(_DotNetGetDocumentCommand)" LogStandardErrorAsError="true" />
<Exec Command="$(_DotNetGetDocumentCommand)" LogStandardErrorAsError="true" StandardOutputImportance="high" />
</Target>

<!-- Unless this is an inner build or default timing is disabled, tie document retrieval into the build. -->
Expand Down
Loading