Ah, that got me going in the right way. It now works.
It had also to add my Module to the WebCoreModule:
[DependsOn(
...
typeof(GHRIntegrationModule),
....
)]
public class GHRWebCoreModule
And lastly add this to WebCoreModule.PreInitialize():
Configuration.Modules.AbpAspNetCore()
.CreateControllersForAppServices(
typeof(GHRIntegrationModule).GetAssembly()
);
Thank you @ryancyq!
@ismcagdas
Thank you for all help. Might I just bother you to explain why it might be possible with MVC but not possible with Angular? It might help give me a clue.
Hi @ismcagdas
Unfortunately no. I think the AlwaysTrueExternalAuthSource method will not work on a site with both Windows Auth and Anonymous access. I think it will only work on a site with only Windows Auth. In the db the source is AlwaysTrueExternalAuthSource instead of LDAP which might cause the password error as well.
What I want to do seems to be a special case (thought it would be a common scenario for an entreprise solution to allow local user access and forms login for external users but I seem to be wrong).
I do not have a good lead going forward or any reserve backup plan though. Any tips would therefore be very appreciated!
I tried and added [Authorized] before the Authenticate method:
[Authorize] public async Task<AuthenticateResultModel> Authenticate([FromBody] AuthenticateModel model)
I now get a populated User.Identity, but it now however fails with "Authorization.Users.UserManager - Invalid password for user X." so I guess something else has gone wrong now.
Am I doing it the right way or should I completely change approach?
Thank you. I'll try that!