Use Connect to link to your users’ accounts
To try Connect, check out the Heimdall Example.
The diagram below shows how Connect is used to obtain a dataKey
, which is used server-side to request data.
The flow begins when your user wants to link their account/data to your application.
publicKey
, redirectUrl
and the data source(s) you want to read data from.redirectUrl
with a query parameter called dataKey
.dataKey
will be used to make requests to the Sauron APIWe provide packages to make it easy to generate a valid Connect URL. The Connect helper handles parameter validations automagically!
File
> Add Packages...
.https://github.com/gandalf-network/connect-ios-sdk.git
.Add Package
.Then, run swift package update
to fetch the dependency.
Create an instance of ConnectInput
with the necessary details:
Initialize the Connect
class:
To generate a URL, call the generateURL
method:
Read more on Github.
File
> Add Packages...
.https://github.com/gandalf-network/connect-ios-sdk.git
.Add Package
.Then, run swift package update
to fetch the dependency.
Create an instance of ConnectInput
with the necessary details:
Initialize the Connect
class:
To generate a URL, call the generateURL
method:
Read more on Github.
Display the QR code using the qrCodeDataUrl
Read more on Github.
To integrate GandalfConnect into your project, add it to your build.gradle.kts
or build.gradle
file:
To integrate GandalfConnect into your project, add it to your pom.xml
file:
In your Kotlin file where you want to use GandalfConnect, import the library:
Create an instance of ConnectInput
with the necessary details:
Initialize the Connect
class:
To generate a URL, call the generateURL
method:
Read more on Github.
After your user is done linking their accounts, Connect will navigate to your redirectUrl
with a query
parameter called dataKey
.
You can use the packages to get the dataKey
easily.
Proceed by sending the dataKey to your server, where you can securely request the data you seek.
dataKey
directly
from your application’s server.Use Connect to link to your users’ accounts
To try Connect, check out the Heimdall Example.
The diagram below shows how Connect is used to obtain a dataKey
, which is used server-side to request data.
The flow begins when your user wants to link their account/data to your application.
publicKey
, redirectUrl
and the data source(s) you want to read data from.redirectUrl
with a query parameter called dataKey
.dataKey
will be used to make requests to the Sauron APIWe provide packages to make it easy to generate a valid Connect URL. The Connect helper handles parameter validations automagically!
File
> Add Packages...
.https://github.com/gandalf-network/connect-ios-sdk.git
.Add Package
.Then, run swift package update
to fetch the dependency.
Create an instance of ConnectInput
with the necessary details:
Initialize the Connect
class:
To generate a URL, call the generateURL
method:
Read more on Github.
File
> Add Packages...
.https://github.com/gandalf-network/connect-ios-sdk.git
.Add Package
.Then, run swift package update
to fetch the dependency.
Create an instance of ConnectInput
with the necessary details:
Initialize the Connect
class:
To generate a URL, call the generateURL
method:
Read more on Github.
Display the QR code using the qrCodeDataUrl
Read more on Github.
To integrate GandalfConnect into your project, add it to your build.gradle.kts
or build.gradle
file:
To integrate GandalfConnect into your project, add it to your pom.xml
file:
In your Kotlin file where you want to use GandalfConnect, import the library:
Create an instance of ConnectInput
with the necessary details:
Initialize the Connect
class:
To generate a URL, call the generateURL
method:
Read more on Github.
After your user is done linking their accounts, Connect will navigate to your redirectUrl
with a query
parameter called dataKey
.
You can use the packages to get the dataKey
easily.
Proceed by sending the dataKey to your server, where you can securely request the data you seek.
dataKey
directly
from your application’s server.