Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Integration into clean MVC 5 project #18

Open
TDK1964 opened this issue Jun 7, 2016 · 1 comment
Open

Integration into clean MVC 5 project #18

TDK1964 opened this issue Jun 7, 2016 · 1 comment
Labels

Comments

@TDK1964
Copy link

TDK1964 commented Jun 7, 2016

Hi,

I have a clean MVC project (no MS identity framework) with a working version of MembershipReboot. I've now want to integrate IdentityManager. My question is, do I need the files in the config folder (from the host example) as I'm only using MR straight out of the box as I can't seem to get IM working?

This is in my startup.cs

app.Map("/idm", idm =>
            {
                var factory = new IdentityManagerServiceFactory();
                factory.Configure("MembershipReboot");

                var options = new IdentityManagerOptions
                {
                    Factory = factory
                };

                app.Map("/idm", _ => { _.UseIdentityManager(options); });

            });

@brockallen
Copy link
Member

Sorry -- this issue fell thru the cracks. Since I'm so late to this issue, I imagine you already sorted it out.

You do need to configure the IdentityManagerService on the factory. The rest are just the dependencies in DI for the IdentityManagerService. So yes, you'll typically need to configure something like that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants