Base solution for your next web application

Activities of "[email protected]"

Hi,

What is the reason for disallowing external logins to the host (no tenant)? Is it just because it didn't seem useful? Or is it because of certain technical restrictions?

I am using net core + angular.

Hi,

1) I'm having trouble setting up google authentication. I'm using Core/Angular.

Angular side shows google login and sends ExternalAuthenticate request to server but exception is thrown when requesting external user info from google API:

ore.Mvc.Internal.ControllerActionInvoker - Executing action method AkzoNobel.DigitalPlant.Web.Controllers.TokenAuthController.ExternalAuthenticate (AkzoNobel.DigitalPlant.Web.Core) with arguments (AkzoNobel.DigitalPlant.Web.Models.TokenAuth.ExternalAuthenticateModel) - Validation state: Valid
ERROR 2018-07-18 12:00:13,336 [35   ] Mvc.ExceptionHandling.AbpExceptionFilter - Response status code does not indicate success: 403 (Forbidden).
System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Abp.AspNetZeroCore.Web.Authentication.External.Google.GoogleAuthProviderApi.GetUserInfo(String accessCode)
   at AkzoNobel.DigitalPlant.Web.Controllers.TokenAuthController.GetExternalUserInfo(ExternalAuthenticateModel model) in D:\inimco\an\src\digitalplant\aspnet-core\src\AkzoNobel.DigitalPlant.Web.Core\Controllers\TokenAuthController.cs:line 371
   at AkzoNobel.DigitalPlant.Web.Controllers.TokenAuthController.ExternalAuthenticate(ExternalAuthenticateModel model) in D:\inimco\an\src\digitalplant\aspnet-core\src\AkzoNobel.DigitalPlant.Web.Core\Controllers\TokenAuthController.cs:line 253
   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()

Is there anything else I need to do at Google Identity service to make this work? I read in another forum thread (#2607@fe1369ac-5c83-4c1f-96db-b41610790cd3) google+ api needs to be enabled? Is this so, and why?

2) I 've set up sourcelink as described in <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Debugging">https://aspnetboilerplate.com/Pages/Documents/Debugging</a> yet I cannot step into Abp.AspNetZeroCore.Web.dll. I can inspect the source code using ILspy though...

Why?

3) How far along is OpenId Connect social login development (for angular project)?

Hi,

I am using the RAD tool to generate entities. The naming of the generated navigation property DTO classes and angular lookup table components, is causing a bit of trouble.

Whenever you have two or more entities that contain a navigation property to one and the same entity, the RAD tool wil generate duplicate classes and components.

E.g. if you have 2 entities EntityA and EntityB that both have a navigation property to EntityC:

  • the duplicate DTO classes will both be called "EntityCLookupTableDto"
  • the duplicate components will be called "EntityCLookupTableModalComponent"

...I know you can configure swagger with a custom schema ID that uses full class names but I don't really like this option.

Wouldn't it be a good idea to change the RAD tool and generate DTOs and components like this?

  • EntityAEntityCLookupTableDto

  • EntityBEntityCLookupTableDto ...

  • EntityAEntityCLookupTableModalComponent

  • EntityBEntityCLookupTableModalComponent ...

In my opinion this is much cleaner than the full type name and no duplicate classes or components are possible...

Thanks in advance, Kind regards,

Jan Asselman

Showing 1 to 3 of 3 entries