Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to customize the layout used by Identity pages? #18358

Closed
bitbound opened this issue May 17, 2020 — with docs.microsoft.com · 1 comment
Closed

How to customize the layout used by Identity pages? #18358

bitbound opened this issue May 17, 2020 — with docs.microsoft.com · 1 comment
Labels
Blazor Source - Docs.ms Docs Customer feedback via GitHub Issue
Milestone

Comments

Copy link

I'd like to customize the navbar and footer used in Identity pages (e.g. https://localhost:5001/Identity/Account/Register).

Where is the markup located? In Razor Pages projects, it was located in /Pages/Shared/_Layout.cshtml. I cant find it now.

I tried to import scaffolded item Account/Manage/Layout, but then I get an error: InvalidOperationException: The following sections have been defined but have not been rendered by the page at '/Pages/Shared/_Layout.cshtml': 'Scripts'.

Thanks!


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added ⌚ Not Triaged Blazor Source - Docs.ms Docs Customer feedback via GitHub Issue labels May 17, 2020
@guardrex
Copy link
Collaborator

guardrex commented May 17, 2020

Hello @lucent-sea ... this is a duplicate of #15651.

I'm proposing some information on customizing the default Identity UI to match Blazor's theme on the PR at ... #17940. You can take a look at the diff to see what I'm pitching. Open the aspnetcore/security/authentication/scaffold-identity.md file and scroll down to Line 279 to see a section titled Style authentication endpoints.

It's not going to be a complete styling reference tho ... you'll still likely need to do additional styling work beyond what the PR shows. That's just to get devs going with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blazor Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
Archived in project
Development

No branches or pull requests

3 participants