jonkristian
jonkristian
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
It appears it is working now, I will try some code querying stuff tomorrow. Thanks again!
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
No description
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
Hmm, no idea why it fails. I see the error parsing the response token top right corner for a second, everything on the visma side of things seems to work, the callback looks like this: 2024-04-16T13:15:48.028302Z INFO request: windmill_api::tracing_init: response latency=0 status=200 method=GET uri=/oauth/callback/visma?code=20613DD0936852BFF8082B40F82345987255796C0926BB2607855B03A6812B&state=Vz3BIAfV9s5KQ&iss=https%3A%2F%2Fconnect.visma.com
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
I will test some more
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
That's all the errors i could see in the logs.
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
ERROR request: windmill_common::error: Internal: ErrorResponse { status: 400, error: ErrorResponse { error: InvalidRequest, error_description: None, error_uri: None } } error=InternalErr("ErrorResponse { status: 400, error: ErrorResponse { error: InvalidRequest, error_description: None, error_uri: None } }") method=POST uri=/api/oauth/connect_callback/visma
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
Ok, i think the scopes should be vismanet_erp_service_api:* , however I when redirected back to windmill I got this: Error parsing the response token, Internal: ErrorResponse { status: 400, error: ErrorResponse { error: InvalidRequest, error_description: None, error_uri: None } } , Anywhere to see the request/response?
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
Yes i saw, I removed all except read and update.
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
hm, i got invalid scope error when trying to connect, I will take a look at their docs, maybe they've changed something.
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
Nice! I will test and let you know 🙂
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
And thank you so much for all the help!
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
Thanks for the tip 🙂
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
No description
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
Ok, it is not straight forward getting started with visma for you unfortunately. But I managed to get something working after reading up a bit, they have a lot of old and outdated content :/ Basically I did something similar to this example by visma: https://github.com/Visma-Software-AS-Product/PYTHON_Vnet_Connect_auth_interactive/blob/master/app.py
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
Just for reference, I have a working postman setup with client_credentials. I can send a post with my client_id, client_secret, scope and tenant_id (This is whichever company I want to access, that has already accepted scopes for my app) and it will return a bearer token for me to use on that tenant, but it is short lived. I am trying to follow the guide for authorization endpoint in postman now, and will let you know if I have any luck.
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
Yes I can try that
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
Nice! No, it isn't extremely difficult. They have a developer portal where you can create your application.
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
I am using cloud but I do have Docker setup locally as well
38 replies
WWindmill
Created by jonkristian on 4/15/2024 in #help
New API | Oauth and extra params
Ah, thanks, is there a way for me to test beforehand?
38 replies