I have a webservice and several client apps (android and ios apps and a webapp) that consume the information in that webservice.
I want to authenticate the clients in the webservice using oAuth2.0, but I don`t know which of the four grant types is the recommended for this case.
According to RFC6749 (https://www.rfc-editor.org/rfc/rfc6749#section-1.3) there are four grant types
- Authorization Code (appears to be the worse, because it has two phases)
- Implicit
- Resource Owner Password Credentials
- Client Credentials
Which type is the recommended in this case?