Perform the following steps to configure the Google SSO configuration for Ameyo.
Run the following command to access the command line database.
psql -U postgres <Application_Database_Name>
Run the following query to insert the SSO OAuth policy in the database.
INSERT INTO open_auth_consumer_configuration_table (consumer_id,service_provider,is_auto_create_user,retry_with_login,ameyo_login_url,home_url) VALUES (<consumer_id>,'googlePlus',false,false,'{"sso.oauth.policy" : "/ameyowebaccess/login"}','{"sso.oauth.policy" : "/app"}');
Run the following query to insert the Domain Name with SSO
INSERT INTO open_auth_service_generic_configuration (consumer_id,client_id,client_secret ,oauth_authorization_url,oauth_token_request_url,oauth_redirect_uri,oauth_scope_value ) VALUES ('<consumer-id>','<client-id>','<client-secret>','https://accounts.google.com/o/oauth2/auth', 'https://accounts.google.com/o/oauth2/token', '{"sso.oauth.policy" : "https://<domain-configured-with-sso>:8443/ameyowebaccess/_callback?consumerId=<Consumber_ID>"}', '{"sso.oauth.policy" : "profile email"}');
Run the following query to insert the Instance URL in the database
INSERT INTO open_auth_response_additional_parameter_configuration (consumer_id,parameter) VALUES (<consumer-id>,'{"sso.oauth.policy" : ["instance_url"]}');
Run the following query to enable SSO with Application Domain Name
INSERT INTO domain_auth_configuration(domain_name,consumer_id,service_provider) VALUES ('<Application_Domain_Name>','<Consumer_ID>','googlePlus');
You can contact the Support team of Ameyo for any reference or assistance on any of the above parameters.