abp icon indicating copy to clipboard operation
abp copied to clipboard

Missing admin user in AbpUsers

Open Sniipe opened this issue 6 years ago • 1 comments

Using the sample Angular project. I ran Update-Database from Acme.BookStore.EntityFrameworkCore.DbMigrator and it ran fine however the admin user wasn't seeded.

When I try and login as admin/1q2w3E* (no tenant selected) I get: 2019-12-07 21:53:15.918 +00:00 [INF] {"ClientId":"BookStore_App","Category":"Authentication","Name":"Client Authentication Failure","EventType":"Failure","Id":1011,"Message":"Unknown client","ActivityId":"8000000c-000b-ff00-b63f-84710c7967bb","TimeStamp":"2019-12-07T21:53:15.0000000Z","ProcessId":3624,"LocalIpAddress":"::1:44322","RemoteIpAddress":"::1","$type":"ClientAuthenticationFailureEvent"} 2019-12-07 21:53:15.918 +00:00 [ERR] No client with id 'BookStore_App' found. aborting

Any suggestions?

Sniipe avatar Dec 07 '19 21:12 Sniipe

Try to run the console-application DbMigrator. (Set it as Startup-project and run)

https://docs.abp.io/en/abp/latest/Getting-Started-Angular-Template#using-the-dbmigrator-application

pointlevel avatar Dec 07 '19 22:12 pointlevel