Closed wf-soft closed 4 months ago
Have you tried turning up logging to debug and seeing if there's something logged about what's happening?
@martincostello I cannot find any more detailed information, including logs, only Not authenticated
{\"ClassName\":\"System.Exception\",\"Message\":\"Not authenticated\",\"Data\":null,\"InnerException\":null,\"HelpURL\":null,\"StackTraceString\":null,\"RemoteStackTraceString\":null,\"RemoteStackIndex\":0,\"ExceptionMethod\":null,\"HResult\":-2146233088,\"Source\":null,\"WatsonBuckets\":null}
or not using HTTPS.
HTTPS is required, otherwise the browser will ignore the cookie from server.
Do you miss the scope
config?
This lib has been working well for 2 years on our production. The following is a demo for reference.
builder.AddQQ(opt =>
{
// opt.SignInScheme = <YourCookieAuthenticationScheme>;
opt.ClientId = tencentQQLoginSetting.ClientId;
opt.ClientSecret = tencentQQLoginSetting.AppKey;
opt.Scope.Add(tencentQQLoginSetting.Scope);
// opt.ApplyForUnionId = true; // If you or your company has multiple apps on the QQ platform
});
After logging in with QQ authorization, in the Signin-Callback method
Failed in, I cannot find the problem, I only received a Not authenticated prompt,Is there any way to obtain more detailed prompts. And Gitee is working fine, Is this related to cookie configuration or not using HTTPS. This is my configuration.