OAuth 2 authorization
Last updated
Last updated
To authorize Moment with Fortnox an administrator needs to go through a process where Moment is given permission to access areas requested. The user/administrator needs to have authorization (behörighet) to control the customers and projects.
Fortnox supports service account, this can be selected prior to beginning the authorization process. Only system administrators in Fortnox can authorize when selecting this option.
Search for and select Fortnox in the list of integrations.
Configure integration with what you want to transfer (this can also be done afterwards).
Fortnox has added an option to use a service account. This must be selected prior to starting the authorization.
Click "Save" to start authorization.
Fortnox login screen appears. Log in with your user and password.
When you are logged in, you must agree that Moment can have permissions to the requested sections of Fortnox.
Once you have clicked on "Approve authorization" you will be sent back to Moment, this may take some time. Please wait.
Back in Moment, you see that the authorization has been successful.
Enable integration and make any additional configurations, then save the changes.
If you need to re-authorize, you can also choose to do so, click on the link "Re-authorize" and start at step 3.
If this should happen, the process can be started again by clicking the blue "Authorize" button, follow the steps from step 3.
A typical error that can occur is related to the authorization the user that is authorizing the integration has. If the user is missing some authorization (behörighet), it will be seen as an error message in the company log. If the error message contains the text as shown in the image below, it's referencing the users authorization within Fortnox.
There are two solutions to this issue
Change the authorization (behörighet) for the user in Fortnox. Find the location where one defines authorizations (behörigheter). Turn this on for customer and projects. (See screenshot below)
Select to use a service account when authorizing the integration. If an authorization has been done and you want to switch to using a service account, please inform us so that we can remove current authorization information. Send an e-mail to support to request this.
If something goes wrong in the authorization, for example registration of the wrong user / password or if you accidentally close a page, you will be sent back to the Moment page and see the marking "authorization failed".