Login control app example

Hi,
i want to have OwnCloud use Authentication of my own PHP calls to a C# Web API service
i want OwnCloud example app that controls the OwnCloud authentication to help me develop an app to disable existing authentication and use my Web API calls instead