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

_Host in the Server project #72

Open
famda opened this issue Apr 5, 2023 · 5 comments
Open

_Host in the Server project #72

famda opened this issue Apr 5, 2023 · 5 comments

Comments

@famda
Copy link

famda commented Apr 5, 2023

Hey @davidfowl
This project is awesome and helped me to learn a lot from it.
I was walking through the code and I've noticed that, instead of the index.html you are using the _Host on the Server project.

Is there any reason for it?
I noticed that there's no "loading" in it for that reason. 😀

PS: I don't care about the loading. I'm interested on what's the reason behind it.

@davidfowl
Copy link
Owner

This is why. The social providers are statically rendered from the server into the page.

@famda
Copy link
Author

famda commented Apr 5, 2023

I see. I was looking into the blazor docs and this and thinking in a way to add authorization into the pages.

But I need to read more about this. Mainly because of that CurrentUser being rendered like that.

I need to think a little more.. 😆

Thanks man!

@famda
Copy link
Author

famda commented Apr 6, 2023

After reading some more, the only way the Authorization part in the client project would work is to create a custom AuthorizationStateProvider to handle this.
After some tries I'm was not yet able to make it to work.
@davidfowl am I thinking wrong?
Would you provide some guidance on this?

@davidfowl
Copy link
Owner

@famda What are you trying to do? Use auth on the WASM side?

@famda
Copy link
Author

famda commented May 15, 2023

Hey @david,

Yes. Basically, I've created a AuthorizationStateProvider to handle the authorization on the wasm side.
But my implementation looks a little crappy.. 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants