Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Parameterize client secret #347
This issue was found by @taupalosaurus. If a non-Google authentication provider is used, the client secret stored in the OKpy database will be different from this hard-coded value which causes the ok-client to ok-server communication to fail.
A work-around for this is to manually adjust the client secret in the ok-server database via the following command.
UPDATE client SET client_secret='EWKtcCp5nICeYgVyCPypjs3aLORqQ3H' WHERE client_id='ok-client';
However, a more long-term manageable fix is to parameterize the client secret and set it to the correct value for the authentication provider in each ok-client deployment.