Fortnox OAuth2 (New authorization workflow) #187
Replies: 5 comments 10 replies
-
I'm wondering how Fortnox believes this will play out with the (surely) large amount of integrations that rely on the non-interactive legacy flow for authentication. Requiring user interaction for the new flow is going to outright break several integrations. In an email they sent when I inquired about it they said they do not plan to add the Client Credentials OAuth2 flow (designed for authentications that do not have a user and/or interactive session). Hopefully they go back on that decision. |
Beta Was this translation helpful? Give feedback.
-
Well...
So the main problem is just to have a server listening for the callback... one horrible way to handle that is to set the callback URI to non existing URI (e.g. https://localhost:44312/) and the user can copy the authorization code from the URI himself :D ..and still would not be much different from the previous activation workflow when user had to copy client id and bring back the API key. It makes things a bit complicated, but on the other side, finally the Fortnox API uses standard workflow. |
Beta Was this translation helpful? Give feedback.
-
I agree.. would be nicer to support the dedicated flow. However, the problem you are describing is common for other API providers as well. In most cases I was dealing with, they've always supported only the Authorization Code flow. Maybe the actual reason is that if they enabled the Client Credentials flow, it would be overused even for web app integrations just because it is simple to implement :D |
Beta Was this translation helpful? Give feedback.
-
I was thinking about the refresh token that expires every 30 days. |
Beta Was this translation helpful? Give feedback.
-
I can still get access tokens the old way, so is it not discontinued yet?
Still works here, even on apps created just a few months ago. I didn't try an entirely new one though. |
Beta Was this translation helpful? Give feedback.
-
Originates from #159
Beta Was this translation helpful? Give feedback.
All reactions