iPadOS CalDav/CardDav login on instance using Oauth2

Nextcloud version: 23.0.9, 24.0.5
Operating system and version : iPadOS 15.7

The issue you are facing: I can’t add my Nextcloud calendar/contacts as a CardDav/CalDav account on iPadOS using a Nextcloud instance with Oauth2 authentication.

This is because I do not get an authentication redirect to my Oauth2 provider.

Is this the first time you’ve seen this error?: Yes. I did not try this with an iPad before.

Steps to replicate it:

  1. Use a Nextcloud instance with Oauth2 as authentication
  2. Try to log in with your Oauth2 provider credentials
  3. It fails as expected, as Nextcloud cannot authenticate you

The output of your Nextcloud log in Admin > Logging:

Login failed: '[user name redacted]' (Remote IP: '[redacted]')

Additional info

On Android, the Nextcloud app has a „Add contact/calendar“ function (in the settings) that sets up Davx5 appropriately. This works with an instance using Oauth2.

On iPadOS, the Nextcloud app does not have a similar option. Is it possible to do this in a different way?

You always have the option to set-up app specific passwords manually which should also work with iOS devices.

https://docs.nextcloud.com/server/latest/user_manual/en/groupware/sync_ios.html

https://docs.nextcloud.com/server/latest/user_manual/en/session_management.html

Thank you! Using an app password worked perfectly.