Fortnox Auth Callback icon

Fortnox Auth Callback

Handles the Fortnox OAuth callback, exchanges the authorization code for a token, and outputs the tenantId and company information.

Fortnox Auth Callback

AI-generated

Summary

Handle the Fortnox OAuth callback by exchanging the authorization code for an access token, extracting the tenant ID and company information, and returning these details as output.

Inputs

None.

Output shape

A single workflow data item containing a JSON object with tenantId, companyName, scopesGranted, and timestamp fields.

This operation does not accept input parameters; it is triggered via an HTTP GET webhook callback. On successful authorization, it responds with an HTML confirmation page and outputs authentication details. On error, it responds with an HTML error page and no output data.

Examples

Example 1: Successful OAuth authorization

A GET request hits the webhook path 'callback' with an authorization code query parameter; the node exchanges this code for an access token, extracts tenant ID and company name from Fortnox, and outputs this data.

Links

Discussion