Recorder based auth sessions
project template to get a jump start. You can also watch a walkthrough of this guide below:
New
to create a new projectIntuned.json
, which serves as the IDE settingsAuth Session
tab and set the following configurations
Enable auth sessions
onAuth session type
to Recorder
Start URL
to https://www.linkedin.com/login
. Start URL
is the URL where we initialize the recorder session to.Finish URL
to https://www.linkedin.com/feed
. After the user finishes authentication, the browser will navigate to this URL, when we detect that, we will capture the auth session and close the browser.check
functioncheck
function to be implemented. This function is called before executing any authenticated action (API). If the function returns false, this signals that the auth session is expired/invalid and the auth session will be marked as expired for Recorder-based auth sessions. The API that was called will return 401 in this case.
auth-sessions/check.ts
file and write the script to verify that the auth session is valid.get-connection-requests.ts
and write the script to retrieve connection requests.accept-connection-request.ts
and write the script to accept connection request.get-connection-requests
and accept-connection-request
APIs with the auth session you created in the previous step.get-connection-requests
and accept-connection-request
APIs with an simple async request
get-connection-requests
API and send the result to a webhook on a regular based (1 week). We will create a job that does this.
Creating jobs can be done via UI or API. For this example, we will use the UI. Checkout Jobs API overview for more info.
https://webhook.site/
to get a temp url. In a real scenario, you will use your own webhook url and persist the data to store.
<YOUR_WEBHOOK_URL>
with your webhook url and <AUTH_SESSION_ID>
with the auth session id you want to run this job with.
accept-connection-request
- to accept connections).
Creating queues can be done via API. Check out Queue API overview for more info.
<YOUR_WEBHOOK_URL>
with your webhook url and <YOUR_AUTH_SESSION_ID>
with the auth session id you want to run this queue with.