Here is what I'm trying to do:
I have server that serves data using a REST API, but I want only my mobile clients(an APP) to access this.
I would like to use a similar system where a user can create a Email/Password log in. After that, the user can access certain data using the API.
Is OAuth2 the right thing to use?
Or do I just try to create my own protocol and generate a token for the user. And have the user attach a token on all API requests. (This is where I'm confused. Can I use OAuth for that? or is that even needed? If not is there a standard HTTP way to do this? Also I would like to use refresh tokens, but I'm not sure If i should create my own methods.