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

The content inside <NotAuthorized> tag in Routes component won't be displayed #31402

Closed
FengRuikai opened this issue Jan 10, 2024 · 4 comments · Fixed by #32048
Closed

The content inside <NotAuthorized> tag in Routes component won't be displayed #31402

FengRuikai opened this issue Jan 10, 2024 · 4 comments · Fixed by #32048
Assignees
Labels
8.0 .NET 8 Blazor doc-enhancement Pri1 Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

@FengRuikai
Copy link

Description

The content inside tag won't be displayed if we don't configure Interactiveserver render mode for entire app,but its was not mentioned in the document

A related issue:https://stackoverflow.com/questions/77748801/how-to-do-windows-authentication-i-cant-get-notauthorized-to-show/77750838?noredirect=1#comment137134432_77750838

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/security/server/?view=aspnetcore-8.0&tabs=visual-studio

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/security/server/index.md

Document ID

8da62490-e36f-8f38-8f06-d5d6bceaafde

Article author

@guardrex

Copy link
Contributor

🎉🥳 Happy New Year! 💃🕺

A green dinosaur 🦖 will be along shortly to assist. Stand-by ........

@guardrex
Copy link
Collaborator

guardrex commented Jan 10, 2024

Hello @FengRuikai ... I see what you mean and from looking at the PU issues related to your report here. I'm looking at Javier's explanations at ...

dotnet/aspnetcore#52176 (comment)

... in particular his remark ...

During SSR we won't show NotAuthorized, because your component doesn't even get to render.

... which seems like the critical bit pertaining to this issue. However, I might need to provide more coverage on the behaviors based on his full set of remarks.

@guardrex
Copy link
Collaborator

guardrex commented Jan 10, 2024

I've studied several PU issues. I'm not sure what to do yet in the docs. Are we merely going to state the reason, or are we also going to prescribe approaches to take to address the behaviors? If we're stating approaches, what approaches? I'll need to work on this further tomorrow.

I think what I'll need to do is play with some local scenarios to study BWA behaviors so I can see what devs are reporting firsthand ... and ... try a few things that are discussed to see their effect on the app. I can probably address the approaches aspect better if I work directly with use cases. Trying to understand it from dev descriptions and PU responses is only partially working for me right now. I'll pick back up tomorrow soon (probably early next week) with this. I just hit a 🦖🧠🔥 for the day on this subject 😆.

@guardrex
Copy link
Collaborator

UPDATE ... It's taken forever 😩 to get back to this. I've been 🏃‍♂️ on higher priority 8.0 issues over the last several weeks. This is one of the last issues to address. I'm going to work on it right now.

@guardrex guardrex moved this from 8.0 to In progress in Blazor.Docs Mar 13, 2024
@github-project-automation github-project-automation bot moved this from In progress to Done in Blazor.Docs Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.0 .NET 8 Blazor doc-enhancement Pri1 Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants