ASP.NET Core 3 - IdentityServer4 - Ep.17 EF Core Setup

preview_player
Показать описание
In this episode we take a look at how to connect our identity server to an sql database using ef core.

#csharp #auth
Рекомендации по теме
Комментарии
Автор

Thank you very much as always for sharing your knowledge.
Before doing this series I have never felt so confident working with IdentityServer4.
Trust me, I appreciate this and I know a whole host of other devs do too.
Bigup yuhself Anton : )
#devprofessor
#rawcoding

ricardothomas
Автор

Wow, this was a PERFECT serie for ID4 and tnis made the final part.
Now we need to make a CRUD for the data so you easy can add new resources, api, clients and stuff. I know about the AdminUI but too expensive for smaller companies that wants domain and not ports for the different sites.
Also a good way to handle url for dev, test and production.
But I think I will manage that, then I let you get the info.

Once again, thanks for this series!

PelleWidell
Автор

Thanks for every things, You are the BEST

AliAhmadi-dxgg
Автор

wow Cool, is very interesting this class.

mj
Автор

Dear RawCoding,
I have a weird issue. In the startup of the Shop.App, When I put all the "InMemory" functions relative to the Identity server and insert the "AddConfigurationStore..." and "AddOperationalStore...", the client give me an callback error ( ).
As soon as I put back the "InMemory" functions and comment "AddConfigurationStore..." and "AddOperationalStore..." it works again.
I think that it is because of the appDbContext residing in Shop.Database but not totally sure.
Any idea?

flauberttagu
Автор

Thank you !! It can be complicated to understand so for you to explain it so simply, great job !
I've only one question, when I start for the first time the project, I have an exception on addClaim "The INSERT statement conflicted with the FOREIGN KEY constraint The conflict occurred in database "Authentification", table "dbo.AspNetUsers", column 'Id'.
The statement has been terminated."

How did it work for you ?

remi
Автор

Absolutely amazing, thank you for sharing your knowledge with us — this is top quality stuff. Your guide is perfect for people like me.
Is there any Admin UI for managing these data?

jasmalmk
Автор

Thank you very much again, just wondering about the equivalent to resources attachment when we use InMemoryDb in EF Core terms:




Appreciate your support.

Shineee
Автор

Thank you for publishing your complete knowledge. Is it possible to do without any frame like IdentitySERVER and etc build SSO? and why identity is very black box ? in .net framework it was very very more flexible

aligeovany
Автор

Thanks for the videos, watched almost every video of this module.

When i tried to implement in our project its redirecting to home/error page instead of login.

thansiqable
Автор

Hello Anton. Thank you for your knowledge. Could you help me? I configured everything, migrated and see tables created. But when walking through authorization process and receiving access and refresh tokens, I don`t see any in table PersistedGrants. What is my mistake? Maybe I need some additional configuration?

antonkoposov
Автор

At 9:30 "haha, noobs, we put it in the appconfig" xD lol Great job tho! )

GabenYT
Автор

took your latest code trying to add migrations after removing it. but getting the below error, please help me in solving this.
dotnet ef migrations add -c PersistedGrantDbContext -o
Build started...
Build succeeded.
No DbContext named 'PersistedGrantDbContext' was found.

deepudeepu-rwhe
Автор

Dear Raw Coding,
Regarding this tutorial, I would like you to correct me if i am wrong.
If I need to connect a Xamarin project to my solution, I need the following solution only :
1. IdentityServer + 2. ApiOne 3. MvcClient.
Which means I will not have any use of the following project:
1. Server + 2. Client + Api (previously made)

If I am correct, it means that I should build my Shop (Tutorial - Online Shop serie) into IdentityServer project.
Am I right?

flauberttagu
Автор

Awesome clip. But there is one problem when we create a centralized authentication server with oidc. The problem is user registration and forgot password . Till date I do not understand how to handle these. Can you suggest how can we achieve forgot password and user registration with oidc with EF core.

ashwanisingh
Автор

Could you please help to upload videos related to active directory authentication with IS4. I am working on a project where I have this requirement. But I couldn't find articles related to this to understand better. This would be really helpful. Thanks.

sureshsl
Автор

What are your thoughts about using entity framework core identity?

jamesherrero
Автор

Thank you for your tutorials, I think I followed all the instructions, but when I try to run the migration code,
dotnet ef migrations add -c PersistedGrantDbContext -o
it says "Build failed" x_t

pojomx
Автор

dotnet ef database update -c --project identityserver
visual studio npm Error -> DbContext named was found.
please help. thnx

aligeovany
Автор

To everyone who gets the error "No DbContext named 'PersistedGrantDbContext' was found", when running the migration command. Just install the NuGet-Package manually. This package contains the missing DbContext classes.

janh.