-
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
GetTokenAsync throws exception without redirectUri #237
Comments
The error message is from the API, so it seems the redirect URI is required for obtaining the token. |
@richardrandak It should be optional according to the docs: I will email Fortnox support, referencing this issue. |
It's not really optional, It's only optional for test apps, if you want to to list your app on their app market - you have to use a redirect URI else your app won't be published. |
Reply from Fortnox below. Does not match my experience, but I haven't confirmed using the rest api directly.
|
When I try to get auth codes using the API version 4.3.1 without passing a redirectUri or setting it to
null
I get the exception:{"Message":"An error has occurred.","ExceptionMessage":"Request failed: The redirect URI is missing or do not match",
I've tried it on both in dev environment and at the
_redirectUri
host with the same results. I haven't yet tried it with other parts of the API.The text was updated successfully, but these errors were encountered: