I have a REST API written in PHP(Slim framework) and my API contains some admin routes for managing private data. I've implemented oAuth2.0 for authorization(this php implementation).
I like to use AngularJS for creating an admin webapplication so users can manage their own data.
I'm now using username-password flow but i'm reading that this is not secure because my webapp exposes client_id & client_secret.
I also looked into implicit grant ( designed for public clients) but it says that it should be for read only purposes.
I also want to use this API for supplying data for mobile apps. Users don't have to sign in for this but data isn't public.
Which oauth grant is suitable for this scenario / setup?