ITGlue removed the ability to parse the OTP from their hidden API, thus this project is defunct. Keeping it public for posterity.
Gets ITGlue passwords with one time password secrets!
- PowerShell v5
- ITGlueAPIv2 Module by lwhitelock (Will be installed if not available)
- Bearer token and authority data gathering before running the script. Read the Process section.
This script utilizes both the ITGlue API and your ITGlue login session to gather password information. It is expected that this should be run interactively, but automating the execution of this script may be possible.
Before running the script, there are a couple of data pieces that you must gather. This tutorial assumes that you are using some form of Chromium browser.
To find the strings to use for the BearerToken and Authority parameters:
- Log into ITGlue. You must remain logged into ITGlue for the duration of the script run.
- Press
F12to open the Chromium DevTools. - Navigate to the Organizations section of ITGlue.
- Navigate to the
Networktab in the DevTools.- If you don't see anything in the
Namesection, refresh the ITGlue page.
- If you don't see anything in the
- Locate the entry in the
Namesection that starts withorganizations?page[number]=1. It should be anxhrtype. Click on it and it will open theHeaderstab for this request. - Scroll to the bottom of the
Headerssection until you find theRequest Headerssection. - The
Authorityparameter of this script should be set to the value of the:authority:section. - The
BearerTokenparameter of this script should be set to the value of theauthorizationsection. (If you log out of ITGlue, this token will be invalidated and you will need to log in and get a new one.)
$passwords = .\Get-ITGluePasswordsExtended.ps1 `
-APIKey "ITG.abcdefg123456..." `
-Authority 'itg-api-prod-api-lb-us-west-2.itglue.com' `
-BearerToken 'Bearer usdifnbuidsfnbiusdfnbiusdnfb...'
$passwords.attributes | Export-CSV -Path 'C:\temp\mypasswords.csv' -NoTypeInformation| Parameter | Required | Type | Description |
|---|---|---|---|
APIKey |
True | String | An API key for ITGlue with password access. |
BearerToken |
True | String | The bearer token to use for parsing individual passwords. |
Authority |
True | String | The authority to use for parsing individual passwords. |