Linkedin oAuth 2 endless loop in Core 2.0 (VS2017)

I receive well the token of the oAuth 2 with Linkedin (code = xxx) but the urls chain falls in an endless loop which ends up by “ERR_TOO_MANY_REDIRECTS”:
URL\login => URL\login\signin-linkedin => URL\login
instead of
URL\login => URL\signin-linkedin => URL
Could someone please tell me what’s wrong in my solution?
[link text][1]

just put your linkedin’s dev account properties in appsettings.json

I finally managed to get out of the loop and get the user data!
I will post soon a new solution.