How to integrate Instagram SSO in the GAS

Configuration for an application you want to get authenticated via Instagram.

About this task:

Instagram SSO requires OAuth authenticaiton. In the DELEGATE element of your application configuration specify the OAUTH parameter.

  1. Run the ImportOAuth program to import the Instagram endpoints.
    Note:

    This is a once-off operation to import the endpoints. Once the endpoints are registered in the database, you can continue to configure your applications for Instagram.

    In the following example line breaks are added for readability.
    fglrun ImportOAuth --import 
                --authz https://api.instagram.com/oauth/authorize 
                --token https://api.instagram.com/oauth/access_token 
                --logout https://instagram.com/accounts/logout 
                --profile https://api.instagram.com/v1/users/self?
                https://www.instagram.com
  2. In the application configuration file add an OAUTH parameter in the DELEGATE element.
    <APPLICATION>
      <EXECUTION>
        <PATH>c:\user</PATH>
        <MODULE>instagram.42r</MODULE>
        <DELEGATE service="services/OpenIDConnectServiceProvider">
          <OAUTH>https://www.instagram.com</OAUTH>
          <SCOPE>depends on the IdP</SCOPE>
          <CLIENT_PUBLIC_ID>PUBLIC_ID registered on Instagram developer console</CLIENT_PUBLIC_ID>
          <CLIENT_SECRET_ID>SECRET_ID registered on Instagram developer console</CLIENT_SECRET_ID>
        </DELEGATE>
      </EXECUTION> 
    </APPLICATION>
    • The OAUTH parameter specifies the Instagram URL.
    • The CLIENT_PUBLIC_ID and CLIENT_SECRET_ID are tokens obtained when registering your GAS for Instagram Single Sign-On.