Supporting Auto-Authorization on OAuth enabled servers

Follow these steps to support the Auto-Authorization on OAuth enabled servers.

Procedure

  1. 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>
  2. Update mobile configuration file.
    1. 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.
    2. 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.
    3. Save your changes and check in the file.
    4. Synchronize the nodes in your deployment.
    5. Restart the application server that hosts the Mobile Server application.