Supporting Auto-Authorization on OAuth enabled servers
Follow these steps to support the Auto-Authorization on OAuth enabled servers.
Procedure
-
Check if your OAuth provider configuration file has the following parameter sets.
<parameter name="oauth20.autoauthorize.param" type="ws" customizable="false"> <value>_oauth_client_auto_authorize</value> </parameter>
The Mobile App client id "connections_social_mobile" is added to the OAuth clients as follows:
<parameter name="oauth20.autoauthorize.clients" type="ws" customizable="true"> <!-- Add client ids of OAuth clients that should use auto-authorization --> <value>conn-ee</value> <value>conn-as</value> <value>conn-rte</value> <value>connections_social_mobile</value> </parameter>
-
Update mobile configuration file.
- Checkout and update mobile-config.xml. Refer to the following https://help.hcltechsw.com/connectionsmobile/admin/overview/t_mobile_change_config_properties.html for additional information.
- Update configuration parameter 'OAuthAuthorizationURL_Parameters' in mobile-config.xml.
<OAuthAuthorizationURL_Parameters>_oauth_client_auto_authorize=true</OAuthAuthorizationURL_Parameters>
Note: The auto-authorize parameter name must be same as the one mentioned in the above step. - Save your changes and check in the file.
- Synchronize the nodes in your deployment.
- Restart the application server that hosts the Mobile Server application.