Leverage the sweet power of orleans to persist user credentials using grain storage.
Once you've installed the nuget package, do the following:
SiloBuilder:
siloBuilder.UseOrleanIdentityStore() // Add identity store
The grain storage provider used is OrleansIdentityStore
Asp Core Startup:
// Add identity
services
.AddDefaultIdentity<IdentityUser<Guid>>()
// User orleans as the store
.AddOrleansStore<IdentityUser<Guid>, IdentityRole<Guid>>();
Your User class must subclass IdentityUser<Guid>
Your Role class must subclass IdentityRole<Guid>