I see there are ABP modules for EntityFramework and NHibernate. Has anyone done others / custom ones? I am looking to see what it would take to implement Telerik Data Access ([http://www.telerik.com/download/data-access])).
I am not sure if I am heading down the wrong path, but I am trying to login automatically (no login page or login) based on the windows identity.
I tried following the instructions for the LDAP, but am a bit lost.
For now, I modified the TokenProviderMiddleware:
public Task Invoke(HttpContext context)
{
SetCurrentUser(context);
... (rest of code) ...
}
private void SetCurrentUser(HttpContext context)
{
if (NullAbpSession.Instance.UserId != null) return;
var currentUser = context.User.Identity.Name;
var user = _userManager.FindByNameAsync(currentUser);
if (user?.Result?.Id == null) return;
//TODO: set Session with this user
}
I haven't yet figured out the setting and authenticating, but I assume there is a different/better way?
Please advise...