Base solution for your next web application

Activities of "tom.ohle"

I get this error when attempting to login to the application running as a Docker container with LDAP enabled.

System.PlatformNotSupportedException: System.DirectoryServices.AccountManagement is not supported on this platform.
   at System.DirectoryServices.AccountManagement.PrincipalContext..ctor(ContextType contextType, String name, String container, String userName, String password)
   at Abp.Zero.Ldap.Authentication.LdapAuthenticationSource`2.CreatePrincipalContext(TTenant tenant)
   at Abp.Zero.Ldap.Authentication.LdapAuthenticationSource`2.TryAuthenticateAsync(String userNameOrEmailAddress, String plainPassword, TTenant tenant)
   at Abp.Authorization.AbpLogInManager`3.TryLoginFromExternalAuthenticationSources(String userNameOrEmailAddress, String plainPassword, TTenant tenant)
   at Abp.Authorization.AbpLogInManager`3.LoginAsyncInternal(String userNameOrEmailAddress, String plainPassword, String tenancyName, Boolean shouldLockout)
   at Abp.Authorization.AbpLogInManager`3.LoginAsync(String userNameOrEmailAddress, String plainPassword, String tenancyName, Boolean shouldLockout)
   at Abp.Threading.InternalAsyncHelper.AwaitTaskWithPostActionAndFinallyAndGetResult[T](Task`1 actualReturnValue, Func`1 postAction, Action`1 finalAction)
   at Stantec.DocView.Web.Controllers.TokenAuthController.GetLoginResultAsync(String usernameOrEmailAddress, String password, String tenancyName)
   at Stantec.DocView.Web.Controllers.TokenAuthController.Authenticate(AuthenticateModel model)
   at lambda_method(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextExceptionFilterAsync()

Does LDAP login work with Docker?

I am running Docker for Windows 18.06.0-ce-win72 (19098) on Windows 10 and using Linux containers.

There are 3 providers in the ConfigureExternalAuthProviders method of the WebHostModule (Facebook, Google, and Microsoft). I am interested in testing the Microsoft social login, but there is a comment above it.

//not implemented yet. Will be implemented with https://github.com/aspnetzero/aspnet-zero-angular/issues/5
if (bool.Parse(_appConfiguration["Authentication:Microsoft:IsEnabled"]))
{
    ...

There does not seem to be a GitHub repository named 'aspnet-zero-angular'...

Is Microsoft social login working?

I want to achieve the following feature in my ASP.NET Zero app (.NET Core & Angular 6).

Assume this is the first time I have accessed the app (ie. no user has been created for me yet).

  1. Turn on my computer.
  2. Log into Windows.
  3. Browse to the app in Chrome.
  4. Start using the app (ie. no login or registration required).

After accessing the app for the first time, a user should be created for me with the default roles assigned (ie. just like what happens when logging in for the first time via the ASP.NET Zero LDAP feature).

To be clear, I have already successfully tested using my Windows credentials to log in as a first time user after enabling LDAP, but I want to skip the login process completely by using the fact that I have already authenticated myself when I logged into the Windows operating system.

How can I achieve this with ASP.NET Zero?

Showing 21 to 23 of 23 entries