Discussions
Connection problem with OAuth 2.0
over 1 year ago by Arne
Hello,
I am currently working on an integration with Mulesoft Composer and Personio for fetching the absence periods. Unfortunately when I try to make a connection using the HTTP connector, I get the following error:
{
"success":false,
"error":{
"message":"Etwas ist schiefgelaufen \u2026",
"code":0
}
}
Let me guide you through my process (I go through both OAuth 2.0 options):
OAuth 2.0 Client Credentials:
- Choose authorization type "OAuth 2.0 Client Credentials"
- Fill in the following fields:
- Base url: https://api.personio.de/v1
- Client ID
- Client Secret
- Token url: https://api.personio.de/v1/auth
- Press 'Next'
- Choose request method 'GET'
- Fill in the following fields:
- Request path: /company/absence-periods
- Add headers:
- X-Personio-App-ID: SALESFORCE
- Accept: application/json
- Then I press connect and get an error.
OAuth 2.0 Authorization Code
- Choose authorization type "OAuth 2.0 Authorization Code"
- Fill in the following fields:
- Base url: https://api.personio.de/v1
- Client ID
- Client Secret
- Press 'Next'
- Fill in the following fields:
- Authorization URL: https://api.personio.de/v1/auth
- Add headers:
- Host: api.personio.de
- Accept: application/json
- Content-Type: application/json
- Press 'Next'
- Fill in the following fields:
- Token Exchange URL: https://api.personio.de/v1/auth
- Press 'Next'
- Choose request method 'GET'
- Fill in the following fields:
- Request path: /company/absence-periods
- Add headers:
- X-Personio-App-ID: SALESFORCE
- Accept: application/json
- Press 'Connect' and then I get the error mentioned in the beginning.
{
"success":false,
"error":{
"message":"Etwas ist schiefgelaufen \u2026",
"code":0
}
}
Do you know what I have done wrong? Or doesn't Personio support OAuth 2.0?
Thanks in advance. Kind regards,
Arne