Hi, I am reviewing building on top of my application a Xamarin App. But one requirement is social login which I don't believe is implemented?
Would it be possible to use a WebView as the login page of the App, this would use my regular web app login page and then somehow get the token to be used in the App? I haven't worked with the App really yet but want to know if the above is possible in anyway before I even begin on the project.
Thanks, Matt
Just wanted to say a big thanks to all the ASPNET Zero team for all their work in V5! There is some really really good new things in there and excited to get stuck into it. I have just upgraded my Core\Angular project successfully without too much trouble and so far all working well :)
Just a general keep up the good work post!
Thanks, Matt
Hi, I am having trouble adding the Dropdown PrimeNG to my Angular project. In main.module.ts I added import { DropdownModule } from "primeng/primeng";
and
@NgModule({ imports: [ ..... DropdownModule .....
But when ever I reference in the html component the p-dropdown component I get errors about it now being able to find the ngModel component. Basically it isn't importing properly. Am I missing something I need for the import? eg. <p-dropdown [options]="starredSegments" [(ngModel)]="selectedSegmentChallengeRule" formControlName="segmentCombobox" [filter]="true"></p-dropdown>
Thanks, Matt
Hi, I am using Core + Angular and want to use the Profile 2 page of Metronic. This requires some specific .css files like "profile-2.css". As this needs to go into the Head, how am I best to add this file for a specific page?
Thanks, Matt
Hi, Since unit testing has switched to SQLite, it seems to be case sensitive VS non case sensitive with EntityFramework.
Eg. var adminUser = _context.Users.FirstOrDefault(u => u.TenantId == _tenantId && u.UserName == AbpUserBase.AdminUserName);
This returns the admin user when application runs normally but doesn't return when in test via SQLite. Changing it to lowercase "admin" works. var adminUser = _context.Users.FirstOrDefault(u => u.TenantId == _tenantId && u.UserName == "admin");
Is there a setting I can change to ensure consistency between SQLite and EF?
Thanks, Matt
Hi, Running 4.1.4 Angular + Core and tried using Facebook login. After logging in with the popup when it returns and Angular calls ExternalAuthenticate I get an exception thrown.
It happens when LoginAsync is called function is called within ExternalAuthenticate
var loginResult = await _logInManager.LoginAsync(new UserLoginInfo(model.AuthProvider, model.ProviderKey, model.AuthProvider), GetTenancyNameOrNull());
The line before it
var externalUser = await GetExternalUserInfo(model);
seems to get an externalUser correctly, all is populated except EmailAddress (not sure if that has any impact).
The logs show
INFO 2017-07-07 17:29:09,423 [22 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method LightboxLogic.StravaGO.Web.Controllers.TokenAuthController.ExternalAuthenticate (LightboxLogic.StravaGO.Web.Core) with arguments (LightboxLogic.StravaGO.Web.Models.TokenAuth.ExternalAuthenticateModel) - ModelState is Valid
ERROR 2017-07-07 17:29:19,079 [23 ] Mvc.ExceptionHandling.AbpExceptionFilter - Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Abp.Authorization.Users.AbpUser`1.SetNormalizedNames()
at LightboxLogic.StravaGO.Authorization.Users.UserRegistrationManager.<RegisterAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at LightboxLogic.StravaGO.Web.Controllers.TokenAuthController.<RegisterExternalUserAsync>d__25.MoveNext()
Thanks, Matt
Hi, I have just merged the latest 4.1 code into my project. It all runs correctly and displays the swagger API in the web browser when the project is run. But when I try execute the nswag refresh.bat I am getting the below error " Sequence contains more than one matching element". Any idea why this might be happening?
System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Sequence contains more than one matching element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source, Func
2 predicate)
at NSwag.CodeGeneration.TypeScript.Templates.RequestBodyTemplate.TransformText() in C:\Data\Projects\NSwag\src\NSwag.CodeGeneration.TypeScript\Templates\RequestBodyTemplate.tt:line 2
at NSwag.CodeGeneration.TypeScript.Templates.AngularClientTemplate.TransformText() in C:\Data\Projects\NSwag\src\NSwag.CodeGeneration.TypeScript\Templates\AngularClientTemplate.tt:line 50
at NSwag.CodeGeneration.TypeScript.Templates.AngularClientTemplate.Render() in C:\Data\Projects\NSwag\src\NSwag.CodeGeneration.TypeScript\Templates\AngularClientTemplate.Extensions.cs:line 18
at NSwag.CodeGeneration.ClientGeneratorBase`3.GenerateFile(SwaggerDocument document, ClientGeneratorOutputType type) in C:\Data\Projects\NSwag\src\NSwag.CodeGeneration\ClientGeneratorBase.cs:line 90
at NSwag.Commands.SwaggerToTypeScriptClientCommand.<
Thanks, Matt
Hi, When trying to run a unit test directly on the domain layer {Project}.Core manager class, if the class tries to access a repository I get an error "Message: System.ObjectDisposedException : Cannot access a disposed object. "
If I instead add a call to the same manager function from the Application Layer {Project}.Application and call the application layer from the unit test it all works. Ie. If the manager has been created via the Application layer instead of within the Unit test all is fine.
Is there a way I should setup my test differently if directly call with .Core manager classes? Think it might be to do with the Unit Of Work disposing of it somehow?
All sample tests I can find samples of are doing it to the {Project}.Application layer.
Thanks, Matt
Hi, Using Angular 2 what do you recommend is the best way to implement an OAuth 2 external login? The site is Strava, <a class="postlink" href="https://strava.github.io/api/v3/oauth/">https://strava.github.io/api/v3/oauth/</a>
My problem is your implementation of Facebook and Google login uses their JS library to do get the accessToken, however this site doesn't provide any kind of pre-built JS SDK like that.
I did have this working previously on aspnetboiler plate with AngularJS by using OWIN (there is a pre-build OWIN middleware for the above Strava site), but this used MVC based Account login. But I don't know how I would add the same methods with the new Angular 2 architecture or if that is the best way to try go.
Thanks, Matt