IdentityServer / IdentityServer2

[deprecated] Thinktecture IdentityServer is a light-weight security token service built with .NET 4.5, MVC 4, Web API and WCF.
Other
410 stars 291 forks source link

Integrate MembershipReboot with IdentiyServer.v2 OnPremise website #746

Closed BhagiLimbu closed 10 years ago

BhagiLimbu commented 10 years ago

Hi,

I found sample membershipreboot with IdentityServer.v2 is great, but i am looking solution to integrate with WebSite (OnPremise). What things need to change in websites

Question: 1) IdentiyServer and Membershipreboot user information keep track from separate database ? 2) When initialize application does it need to setup (create) two database ? 3) Where should we place securitySettings in Onpremise website, below code :

var settings = SecuritySettings.FromConfiguration(); settings.RequireAccountVerification = false; settings.PasswordHashingIterationCount = 50000; var config = new MembershipRebootConfiguration(settings); var uarepo = new BrockAllen.MembershipReboot.Ef.DefaultUserAccountRepository(); this.userSvc = new UserAccountService(config, uarepo); this.userQuery = uarepo; var grpRepo = new BrockAllen.MembershipReboot.Ef.DefaultGroupRepository(); this.groupSvc = new GroupService(config.DefaultTenant, grpRepo); this.groupQuery = grpRepo;

Thank you.

Regards and Metta, Bhagi Raj Limbu

brockallen commented 10 years ago

1) Identity Server's configuration has always been in a separate database from the identity management library.

2) See (1).

3) This is up to you and how you want to build your hosting architecture. The sample simply sets these settings in the ctor so as to not mandate a DI framework or approach.

BhagiLimbu commented 10 years ago

Thank you Brock!, It means i can able to manage user information from MembershipReboot database instead of Identity Server database . But Identity Server's configuration should keep in it's own database.

brockallen commented 10 years ago

Yes.

BhagiLimbu commented 10 years ago

Many Thanks Brock, Finally i set up Membershipreboot with Identityserver.V2.It work as my expectation. I am thinking to change database from Sql CE to MSSQL database.