Getting Facebook Code+AccessToken In Identity server 4

时间:2018-02-03 11:04:44

标签: c# facebook facebook-graph-api .net-core identityserver4

I have a Identity Server 4 setup using Facebook for authentication. This is very plug and play

.AddFacebook("facebook", options =>
            {

                options.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme;

                options.ClientId = "xxx";
                options.AppSecret = "xxx";
            });

I can see that during the authentication I am recieving the code needed to request the access token, I'm struggling at how to get this code (or the accesstoken) during the login process, I have a list of all the claims just no tokens.

enter image description here

I've searched a lot regarding this and https://andrewlock.net/ is helpful but he doesn't state how he got this code.

0 个答案:

没有答案