How to handle appsecret_proof
parameter in Facebook provider?
#13130
Unanswered
marcinkrasowski
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
we have encountered a serious problem using the Facebook provider, with NextAuth v4.24.6 (but I believe the same would occur in v5) and Next v14.1.0 (though I don't believe Next's version affects it in any way).
Facebook enables to configure an additional server-side security when calling it's API by signing each request with the secret: https://developers.facebook.com/docs/facebook-login/security/#proof . We have verified that this option is the cause of the error we're getting when trying to use this provider (however the exact message is quite generic, sadly):
After disabling that option in the security area of the Facebook app, this problem disappears and we are able to go through the sign-in process, which I believe is enough to suggest that it is caused by exactly this setting.
So the questions is, how can we handle this properly? Is is possible to extend the provider in some way to be able to manually add the
appsecret_proof
header to each request tohttps://graph.facebook.com
? Generating the hash itself probably is not a problem, but I don't see any way how can we inject it int every API call that happens "underneath" insideopenid-client
library.Beta Was this translation helpful? Give feedback.
All reactions