How do I Link Application Identities?
Before you start
Make sure you have:
The User ID of the Abbey user you want to link identity data for
Step 1: Identify which application you are linking data for
Abbey has first-class support for linking data for certain applications. Other applications can also have application identity data linked, but Abbey enforces a certain structure on first-class applications to make sure that you have all the identity data you need to successfully use Abbey.
To find out what the structure of your app data payload should be, take a look at Supported Application Identity Types and Schemas
In this page we'll be linking Github application identity data.
Step 2: Make an API request to our Users API to link identity data
We'll be making a request to the Users API to link data an external identity to an Abbey identity.
As an example, we wish to link this user's Github username:
Let's take a closer look at the JSON payload we're POSTing:
Here we're specifying that the type of application we're linking data for is github
and that we have a data payload which contains a username
key whose value is Alice
. The structure of the data
payload differs per application, and is unspecified for app types not supported. Look at Supported Application Identity Types and Schemas to see a list of custom applications and the structure of each application type.
Step 3: Use your Imported Identity Data in a Grant Kit
When creating a grant kit, in your output block you can make references to imported application data and Abbey will fill in these references with the data you imported in the above step. For example:
will resolve to a Github username linked through the API.
Here's an example:
Let's create the output block of a grant kit which uses the application identity data we just imported to grant access to a resource:
Note that the username
block will be templated by the Github username we linked in Step 2.
That's it! Now you've imported your application identity information into Abbey.
Last updated