Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

salesforceidentity/InstagramAuthProvider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InstagramAuthProvider

A custom Auth Provider for Instagram.

March 2023 Update

Because Instagram has retired its Identity Provider capability and folded it into Facebook's feature set, this custom auth. provider will no longer work. It is still relevant as an example on how to build custom auth. providers. For an up-to-date example and tutorial please check out Create a Custom External Authentication Provider.

Overview

This project provides an example custom Auth Provider for Instagram's now defunct IdP.

Getting Started

Use the Salesforce Migration Tool or Workbench to install this unpackaged Apex. It will create a Custom Metadata Type as well as an Apex Class for handling the flow with Instagram, and an example Registration Handler as well.

You will need to create a new Instagram app in their developer environment in order to get a key and secret.

Once you have a key and secret, you can create your Auth Provider instance. Recommend that you create the Auth Provider, then copy the Callback URL the system generates and paste it into the 'Redirect URL (Callback URL)' field. You need to do this because you must register your callback URLs with Instagram and, for now, custom Auth Providers do not have direct access to their associated Callback URL values.

Some things to keep in mind

Instagam's user model is simple; it doesn't have a lot of attributes. For example, Instagram does not have email addresses for its users. (This is true even if the person uses Facebook to log into Instagram.) Because of this, the example Registration Handler has to create an email-like attribute for both the User's email and username fields.

Easier Install Process

Although the Apex classes are provided here, you can also use the this unmanaged package to load this custom Auth Provider into your org.

About

A custom Auth Provider for Instagram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages