feat(auth): add Redis authorization caching
This commit is contained in:
@@ -266,6 +266,11 @@ public static class DevelopmentPlatformAdminSeeder
|
||||
Metadata = JsonSerializer.SerializeToElement(new { demo = true })
|
||||
};
|
||||
dbContext.Tenants.Add(tenant);
|
||||
dbContext.AuthorizationScopeVersions.Add(new AuthorizationScopeVersion
|
||||
{
|
||||
Realm = AuthRealm.Tenant,
|
||||
TenantId = tenant.Id
|
||||
});
|
||||
return tenant;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user