Please delete everything above when creating your topic and provide the following:
Nextcloud version (eg, 12.0.2): 12.0.5
Operating system and version (eg, Ubuntu 17.04): Debian Stretch
Apache or nginx version (eg, Apache 2.4.25): 2.4.25
PHP version (eg, 7.1): ??
The issue you are facing:
is it possible, to make the nextcloud mobile app use basic http authentication?
The advantage would be, that non logged in users don’t get in touch with PHP.
I’ve found a post in which someone is using this .
On the other hand, there’s a discussion saying it wasn’t possible? 
Furthermore, is it possible to make Apache query the owncloud passwords? Maybe with a common backend? LDAP?