AddIdentity() fails “InvalidOperationException: Scheme already exists: Identity.Application”

前端 未结 7 683
闹比i
闹比i 2021-01-07 22:05

I\'m trying to add facebook login to my .NET Core 2.1 site

I\'m following this , guide and more specific, this (for facebook login)

After have adding the lines

7条回答
  •  南方客
    南方客 (楼主)
    2021-01-07 22:18

    I also had the same problem.

    I found out that services.AddIdentity() in 2 places.

    I removed one of them and now everything works as expected.

提交回复
热议问题