jonkristian
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
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
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
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
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
New API | Oauth and extra params
Here's the link to the developer portal for visma: https://connect.visma.com/?returnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3Dserviceregistry%26redirect_uri%3Dhttps%253A%252F%252Foauth.developers.visma.com%252Fservice-registry%252Fresources%252Fauth%252Flogin%26response_type%3Dcode%2520id_token%26response_mode%3Dform_post%26scope%3Dopenid%2520address%2520email%2520profile%2520tenants%26nonce%3DnpAVawbFoCU%26state%3DPtg3Bl5qU7j8MLLx3tjrDj6LJAiMzwEU-FCYQrp4_Mk
38 replies