Integrating with web app OAuth2

I’m planning a web app that will let users create new ownCloud user accounts and share folders. As I understand it, I have to use OAuth2 because basic authentication will not work with CORS.

I want the users of my app to not have access to the ownCloud password, but they should be able to use the app without ever being prompted to login. I know this would be possible with basic auth, but is it possible with OAuth?

Hi @ElliottB

Have you finished this integration with OAuth2 because for me also need to do the same setup