JByfordRew/BlazorTransitionableRoute

AuthorizeRouteData does not work

Closed this issue · 9 comments

Any idea of how to make it work with authorized/unauthorized routes?
I saw that on roadmap, any chance of being implemented any time soon?

Cheers!

Hi please see this closed is first, it may help #5

Hi, thanks, I tried the proposed solution replacing TransitionableRouteView but unfortunatelly didn't work.

Okay, I will try to resolve this as soon as I can. I did wait until more than a couple of people mentioned it. Hopefully sort this out soon.

Very much appreciated, thanks in advance!

It seems the Microsoft.AspNetCore.Components.Authorization is not compatible with the .net standard 2.1 which the component is currently targeting. Therefore I will need to create the .NET 6 update first before I can build in the AuthorizeRouteView . I will also the roadmap and hopefully perform these two steps soon.

For now I suggest you implement your own TransitionableAuthorizeRouteView component in your solution as this #5 (comment)

Okay, thank you very much for your effort, please let me know when the package is upgraded.

See this commit 84505f6

I will not be building this into the component due to the configurability of your AuthorizeRouteView's. This will have to remain a custom implementation per use case. There is not much code required as shown in the commit above. Closing this issue now.