User Profile
phoinv
2
Posts
0
Kudos
0
Solutions
14-10-2024
09:56
I am trying to implement the code grant flow with PKCE. The client ID I have is configured to use PKCE. The URL accessed: https://connect.visma.com/connect/authorize?response_type=code&client_id=isv_xxxx&redirect_uri=https%3a%2f%2fclientredirect.invantive.com&scope=offline_access+openid+email+profile+vismanet_erp_interactive_api%3aread+vismanet_erp_interactive_api%3acreate+vismanet_erp_interactive_api%3aupdate+vismanet_erp_interactive_api%3adelete&state=e3921cd26e004becbe128f6dcad0e7f8&code_challenge=4TV6tLurTb6XW9Mz%2fhuuq%2fRczOv72io6MBAY81fupMg%3d&code_challenge_method=S256 The URL return contains the code: https://redirecturi/?code=xxxxxxxx&scope=profile%20email%20openid%20vismanet_erp_interactive_api%3Aupdate%20vismanet_erp_interactive_api%3Adelete%20vismanet_erp_interactive_api%3Acreate%20vismanet_erp_interactive_api%3Aread%20offline_access&state=e3921cd26e004becbe128f6dcad0e7f8&session_state=zx3gsePRn9gC6uE1QR5KaiG5li-srtDoy4h8PzF_xfQ.554AF07F0EF621597236E09AE707EC55&iss=https%3A%2F%2Fconnect.visma.com When exchanging the code for an access token returns a HTTP 400 with the body: ``` {"error":"invalid_grant"} ``` The request contains the `grant_type=authorization_code`, including the `code`, `client_id`, redirect_uri` and `code_verifier` as per the specification (https://docs.connect.visma.com/docs/native-applications). There is no error code returned, so no way to see more information on the reason of the error. What can be the cause of this issue?
... View more
Categories:
- Categories:
-
authentication settings
02-09-2024
15:43
Terzijde: Invantive is implementatiepartner.
... View more
Activity Feed for phoinv
- Posted OAuth with PKCE on Forum in Visma Net Financials. 14-10-2024 09:56
- Posted Visma Connect: invalid_tenant on exchanging authorization code for access token on Forum in Visma Net Financials. 06-05-2024 11:21