Register auth data protection services
This commit is contained in:
@@ -20,6 +20,9 @@ public static class ServiceRegistration
|
|||||||
// gRPC server infrastructure — required before MapGrpcService<AuthGrpcHandler>.
|
// gRPC server infrastructure — required before MapGrpcService<AuthGrpcHandler>.
|
||||||
services.AddGrpc();
|
services.AddGrpc();
|
||||||
|
|
||||||
|
// ASP.NET Identity token providers depend on Data Protection services.
|
||||||
|
services.AddDataProtection();
|
||||||
|
|
||||||
// Identity DbContext (identity schema: accounts, sessions, properties, roles…)
|
// Identity DbContext (identity schema: accounts, sessions, properties, roles…)
|
||||||
services.AddIdentityDatabase(configuration);
|
services.AddIdentityDatabase(configuration);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user