An open API service indexing awesome lists of open source software.

https://github.com/onify/blueprint-fortnox-activate-authenticate

Onify Blueprint: Activate and authenticate Fortnox integration
https://github.com/onify/blueprint-fortnox-activate-authenticate

blueprint bpmn flow form fortnox integration onify onify-blueprint onify-blueprints rest-api

Last synced: 6 months ago
JSON representation

Onify Blueprint: Activate and authenticate Fortnox integration

Awesome Lists containing this project

README

          

![Onify Blueprints](https://files.readme.io/8ba3f14-onify-blueprints-logo.png)

[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)

# Onify Blueprint: Activate and authenticate Fortnox integration

[Fortnox](https://fortnox.com/) is a Swedish ERP company that delivers a cloud-based business platform for financial management. In this Blueprint we Activate the integration between Fortnox and Onify.

![Onify Blueprint: Activate and authenticate Fortnox integration](blueprint.jpg "Blueprint")

## Requirements

* [Onify Hub](https://github.com/onify/install)
* [Fortnox](https://freshservice.com/)

## Included

* 3 x Flows
* 1 x Form
* 2 x Settings

## Setup

### Resources

Copy `.\resources\*` to your Onify Hub resources

### Settings

Add the following settings via `/admin/settings`.

|Key|Name|Description|Value|Type|Tag|Role|
|---|----|-----------|-----|----|---|----|
|fortnox_app_clientid|fortnox_app_clientid|Onify App Client Id|JBL1UVnvfo4y|string|fortnox,frontend|admin|
|fortnox_app_clientsecret|fortnox_app_clientsecret|Onify App Client Secret|*******|password|fortnox|admin|

> Please contact support@onify.co to get the `fortnox_app_clientsecret` value.

### Configuration

Import configuration for **forms** and **flows** using the following command;

```bash
curl -X POST "/api/v2/setup/database/config/import" -H "accept: application/json" -H "authorization: " -H "Content-Type: application/json" -d "@./config.json" --insecure
```

## Activate (and authenticate) integration with Fortnox

* Create activation link for Fortnox (in Onify)
1. Go to `/form/fortnox-activate`
2. Enter _Redirect URI_
3. Enter _Scopes_ (and modify if needed)
4. Click _Generate activation URL_
5. Click on the generated action link
* Authenticate user for Onify (in Fortnox)
1. Enter username and password for Fortnox
2. Approve access for user and Onify
4. Fortnox will redirect you to a website that does not exist
5. Copy the code (eg. `035411fc-ce95-4c4a-bc15-273daf5ddd67`) from the url
* Activate and authenticate Fortnox (in Onify)
1. Go back to the activation form
2. Paste the code in _Authentication code_
3. Click _Activate Onify in Fortnox_

> For more information about authenticating against Fortnox, please read [Authorizing your integration](https://developer.fortnox.se/general/authentication/).

### Authenticate and refresh access-token

`fortnox-refresh-access-token.bpmn` is used for refreshing the access-token. The Access Token is valid 1 hours the Refresh Token is valid for 31 days. So make sure you refresh the Refresh Token before it expires and you have to reactivate the integration again.

## Support

* Community/forum: https://support.onify.co/discuss
* Documentation: https://support.onify.co/docs
* Support and SLA: https://support.onify.co/docs/get-support

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.