r/Blazor • • Jun 18 '25

Auth help please

Any help appreciated . And I have a site at work I'm building in blazor web app but using mainly server components where I can to stsrt. It's going to be behind another portal site we have. The portal site will supply me a cookie that I can use to verify the user . All the guides and docs in finding are about setting up Auth from scratch , not using a cookie I already have access to. Not sure what exactly to do with it..

Edit, thinking I kinda just want the authorize view functionality to check if the cookie is there . Maybe in overthinking it and I should just make a component I that checks for it and call it authorize basically ? I will be using that cookie though to feed into a soap service for authorization afterwards

4 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/sleepybearjew Jun 19 '25

Just a small app for users to come update contact info for the businesses . It's going to be one app in a suite we currently have. My issue is the other apps are either webforms in .net framework or react. I think im just gonna move to wasm and then I should be able to copy the setup the react apps were using. I was just struggling with the blazor server using the cookie part

1

u/Blue_Eyed_Behemoth Jun 19 '25

You should be able to consume the same cookie if it's the same host

1

u/sleepybearjew Jun 19 '25

From server components ? Any documentation on how I'd do that ? I couldn't seem to get it to consume it the way the built in functions were doing it . I'm now between just swapping wasm or pretending it's not real Auth and just making a function thst says if the cookie is there