-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using StandardAuth
for backend automations without user interaction
#262
Comments
Hello! As far as I know, the only way to have automated integrations is to handle token refresh periodically. The initial setup must be done interactively. |
Thanks for the response! The method you're suggesting feels kinda unusual, would it be possible for you post an example in the readme or a sample project for this flow? |
This does not feel like a viable solution in server-to-server scenarios. |
The new Auth flow is that you always need start with a user interaction and authorization. |
That would work if there is only one application accessing the token. In a distributed environment where several applications access the same token and simultaneously need to refresh that token we would need to implement a distributed lock on the refresh in order to not have a race condition. Or am i mistaken? |
What will happen if refresh token expired some how due to system refresh routine failure. The end-user will see login prompt and end user enter their credentials and whole system start with new token generated by end user credentials :) I think Authorization code flow is good for client centric integrations. you people should enable other types of integrations flow so, other people can use just use one account for generating invoices |
We have various integrations that interact with Fortnox where we automatically get/create/update invoices, customers, contracts and other entities. These integrations are executed in our integrations solution without user interaction.
We are currently using
StaticTokenAuth
but since this is deprecated, and theStandardAuth
flow requires a user to interactively sign in, what are the guidelines for our scenario? I cannot find a/login
endpoint or similar where our application can get a token that we can use in subsequent requests.The text was updated successfully, but these errors were encountered: