mylaff
mylaff
CC#
Created by mylaff on 5/4/2024 in #help
[SOLVED] IdentityServer scaffolded UI from quickstart does not seem to work
Okay, the reason behind was that Razor Pages didn't work on my system altogether. Which is interesting in it self, as every other ASP.Net thing would work. Issue was, as I had last .Net Core version (8.0.2), my Visual Studio was a vew minor versions behind. Updating VS solved everything. That is really weird, imo, since I had to have another machine (which I happily had) just to check whether pages would work on given .Net Core version. Seemse like VS is really important in .Net build process enough so it would just silently drop any version mismatch. Weird flex but welp.
3 replies
CC#
Created by mylaff on 5/4/2024 in #help
[SOLVED] IdentityServer scaffolded UI from quickstart does not seem to work
This indeed looks like problem with Map, for some reason, since app.MapGet("/") works perfectly fine and returns content as defined. However app.MapRazorPages() seems not to map anything at all. Trying to investigate that, altough not much to be found yet.
3 replies
CC#
Created by mylaff on 9/20/2023 in #help
❔ Web stack and connecting C# backend w/ Next.js frontend
I will dig both options anyway, just for selfawareness at least. And with JWT flow will be somewhat like that, as far as I can imagine (correct me if I'm wrong): 1. User requests the page from frontend 2. User tries to authorize, frontend requests REST API, providing it with user data 3. If success, JWT is returned, and then frontend (both server-side next and front-side react) can use methods they have to initialize a cookie, to handle state 4. Viola It seems correct for me, but I tend to question my understanding of new things, so yeah, might sound as a dumb questions. Thanks for your answers.
11 replies
CC#
Created by mylaff on 9/20/2023 in #help
❔ Web stack and connecting C# backend w/ Next.js frontend
Yeah, I also thought that Next has a dev server, and reverse proxy is the way. OAuth suggestion is interesting and honestly I haven't thought of it, becuase in my head OAuth is usually being used to provide the third side with access, whereas both of frontend and backend (and so their interaction) for me were like "our-party". But now that might seem as really interresting apporach. I will dig that, thanks!
11 replies
CC#
Created by mylaff on 9/20/2023 in #help
❔ Web stack and connecting C# backend w/ Next.js frontend
So to say, I really lack clarity on how organize interaction of things
11 replies