MarimerLLC / cslaforum

Discussion forum for CSLA .NET
https://cslanet.com
Other
31 stars 6 forks source link

Asp web and custom identification configuration with latest version of Asp.net #273

Open Brannos1970 opened 8 years ago

Brannos1970 commented 8 years ago

I am fumbling with the configuration of my custom authentication and the latest versions Asp.net and Owin. I thought I saw a post where Rocky had suggesting manually setting the providers, but I can't find the post now and I can't find any other reference. Can someone point me in the right direction to get this to work or tell me which MVC sample to look at?

Thanks in advance for any help.

rockfordlhotka commented 8 years ago

I'm afraid I never did figure out the full answer - and then got pulled into other things and so I've never gone back to sort out how Owin does its thing.

At the end of the day, CSLA only cares that HttpContext.Current.User is set to a valid principal (an IPrincipal). There's no special magic involved really - so whatever Owin would do to create that principal should work.

What I was trying to figure out for a while, was how to make Owin let me create the principal, so I could use the data portal to do the user authentication. That's what I have yet to figure out.

Brannos1970 commented 8 years ago

Sound like I should roll back to previous version of ASP.net that is known to work with CSLA till someone can figure this out. Do you agree?

On Nov 21, 2016 2:52 PM, "Rockford Lhotka" notifications@github.com wrote:

I'm afraid I never did figure out the full answer - and then got pulled into other things and so I've never gone back to sort out how Owin does its thing.

At the end of the day, CSLA only cares that HttpContext.Current.User is set to a valid principal (an IPrincipal). There's no special magic involved really - so whatever Owin would do to create that principal should work.

What I was trying to figure out for a while, was how to make Owin let me create the principal, so I could use the data portal to do the user authentication. That's what I have yet to figure out.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MarimerLLC/cslaforum/issues/273#issuecomment-262063604, or mute the thread https://github.com/notifications/unsubscribe-auth/AU8d2hte9DvYapnI6wHyjmeTnullKSTTks5rAgSagaJpZM4K4rg4 .