Comments (5)
This may be because you don't have a connection string named IdentityDbContext
Sent from my iPhone
On Oct 5, 2016, at 11:20 AM, lexon0011 [email protected] wrote:
IdentityDbContext
from identityserver3.admin.entityframework.
No, because the following code works:
public IdentityAdminManagerService()
: base("IdentityDbContext")
{
}
But my goal is to write the following code:
public IdentityAdminManagerService(IDatabaseConfiguration databaseConfiguration)
: base(databaseConfiguration.ConnectionString)
{
}
The IDatabaseConfiguration was registered in my Unity container. As the IdentityServer3 use Autofac for Dependency Injection, my registered dependencies could not resolved.
from identityserver3.admin.entityframework.
You could use the dependency resolver overload like this:
var dbConfiguration = new DatabaseConfiguration(); // either resolve it using DI or create an isntance of IDatabaseConfiguration
IdentityAdminServiceFactory factory;
factory.IdentityAdminService = new Registration<IIdentityAdminService>(resolver=> new IdentityAdminManagerService(dbConfiguration));
from identityserver3.admin.entityframework.
Thank you, That was the answer I was looking for 👍
from identityserver3.admin.entityframework.
Please close this issue
from identityserver3.admin.entityframework.
Related Issues (20)
- Duplicate type with name 'System.Web.Http.Properties.System.Web.Http.CommonWebApiResources' in assembly 'IdentityServer3.Admin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. HOT 2
- New client save Client name as Client ID and vice versa HOT 1
- RefreshTokenStore does not save updated JsonCode HOT 2
- UI shows up, but nothing seems to work. HOT 1
- Problem with admin log in from remote machine HOT 2
- Customizing Clients HOT 1
- Create DB objects in a specific schema HOT 3
- IdentityServer3.Admin.EntityFramework vs IdentityServer3.Admin HOT 1
- Securing Admin App HOT 1
- Bug in QueryScopesAsync()? HOT 3
- ConnectionString from Web.Config HOT 1
- Could not load type 'AutoMapper.IMapperConfiguration' from assembly AutoMapper, Version=5.1.1.0 HOT 1
- ClientConfigurationDbContext HOT 4
- Oracle support
- Host Project Visual Studio 2017 Project file cannot be loaded HOT 1
- Custom Default Values for new Clients and Scopes
- Ability to manage all scope claim properties HOT 2
- Delete client is not working HOT 2
- The type 'IIdentityAdminService' is defined in an assembly that is not referenced. You must add a reference to assembly 'IdentityAdmin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from identityserver3.admin.entityframework.