Package Information
Released: 6 mo ago
Downloads: 9 weekly / 48 monthly
Latest Version: 0.1.2
Available Nodes
Documentation generating…
Documentation
n8n-nodes-cipp-auth-token
An n8n community node that obtains Microsoft 365 OAuth access tokens using certificate-based client assertion (Secure Application Model / CIPP).
Installation
cd ~/.n8n/custom
npm install n8n-nodes-cipp-auth-token
Setup
- Create a credential of type CIPP SAM App API with:
- Client ID — Azure AD Application (client) ID
- Private Key — RSA private key in PEM format
- Certificate — X.509 certificate in PEM format
- Add the CIPP Auth Token node to a workflow
- Set the Tenant ID to the target Azure AD tenant GUID
- Execute — the node returns the full OAuth token response
How It Works
The node implements the OAuth 2.0 client credentials flow with a signed JWT client assertion (RFC 7523):
- Computes the certificate's SHA-1 thumbprint (x5t) for the JWT
kidheader - Builds and signs an RS256 JWT with the private key
- POSTs the assertion to
https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token - Returns the access token response for downstream use
Development
npm install
npm test # run 18 unit tests
npm run build # compile TypeScript to dist/
License
MIT