- Strapi Version: 3.1.1:
- Operating System: Windows 10 and Mac / Linux (I test locally using Windows/MAC and the application is deployed using AWS Fargate):
- Database: Sqlite, MySQL Aurora:
- Node Version: 10.0.0:
- NPM Version: 6.14.4:
- Yarn Version: 1.22.10:
I’ve tried to configure strapi for making use of Google and Facebook authentication providers. I’m making use of a React Application as my frontend and Strapi (details above) as my backend/API. I’ve had a look at the react login sample and my code appears to be working locally (I do not get the Error: Grant missing session or misconfigured provider message). After deploying the frontend application to an AWS Fargate instance I get the error.
From a configuration perspective: the things that are different locally compared to production is the usage of a named host (not localhost).
In terms of the network requests that occur when I initiate the authentication: A 302 error is returned when making the get request to https://mybackend.org/connect/google/callback?code=“my code”. This occurs after selecting the Google account that I’d like to use for authentication. There is also a 302 error that occurs before this but it also happens when I test locally. The url is: https://accounts.google.com/signin/oauth/consent?authuser=0&part=“additional parameters”.
My frontend differs from the react-login-example in only one way that could be meaningful: I make use of session storage instead of local storage.
Please assist if you have any ideas, I can also provide additional information if needed.