Skip to content

Demo code of how to do custom auth with firebase. Using mudblazor.

License

Notifications You must be signed in to change notification settings

PSCourtney/FirebaseBlazorAuth

Repository files navigation

FirebaseBlazorAuth - example

Blazor C# C# C# Visual Studio

Demonstration code of basic Firebase authenticaion in Blazor WASM using MudBlazor

Functions

With this example, you can:

  • Register
  • Login
  • See how to lock components off via AuthorizeView

There is also some example validation to handle callbacks from Firebase when a error is thrown. Image1

Install

To run this project, you will need to add the following environment variables in wwwroot/appsettings.json

FirebaseApiKey

FirebaseAuthDomain

Image2

Packages

  • firebaseauthentication.net 4.0.1
  • microsoft.aspnetcore.components.webassembly 7.0.1
  • microsoft.aspnetcore.components.webassembly.authentication 7.0.1
  • microsoft.aspnetcore.components.webassembly.devserver 7.0.1
  • mudblazor 6.4.1

Mudblazor

This can easily be removed and turned back to stock blazor with boostrap 4. Just follow the mudblazor installation guide backwards.

Acknowledgements

Build state

Build

About

Demo code of how to do custom auth with firebase. Using mudblazor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published