Discussions

Ask a Question
Back to All

Connection problem with OAuth 2.0

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:

  1. Choose authorization type "OAuth 2.0 Client Credentials"
  2. Fill in the following fields:
    1. Base url: https://api.personio.de/v1
    2. Client ID
    3. Client Secret
    4. Token url: https://api.personio.de/v1/auth
  3. Press 'Next'
  4. Choose request method 'GET'
  5. Fill in the following fields:
    1. Request path: /company/absence-periods
  6. Add headers:
    1. X-Personio-App-ID: SALESFORCE
    2. Accept: application/json
  7. Then I press connect and get an error.

OAuth 2.0 Authorization Code

  1. Choose authorization type "OAuth 2.0 Authorization Code"
  2. Fill in the following fields:
    1. Base url: https://api.personio.de/v1
    2. Client ID
    3. Client Secret
  3. Press 'Next'
  4. Fill in the following fields:
    1. Authorization URL: https://api.personio.de/v1/auth
  5. Add headers:
    1. Host: api.personio.de
    2. Accept: application/json
    3. Content-Type: application/json
  6. Press 'Next'
  7. Fill in the following fields:
    1. Token Exchange URL: https://api.personio.de/v1/auth
  8. Press 'Next'
  9. Choose request method 'GET'
  10. Fill in the following fields:
    1. Request path: /company/absence-periods
  11. Add headers:
    1. X-Personio-App-ID: SALESFORCE
    2. Accept: application/json
  12. 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