OAuth 2.0 supports several different grants. By grants we mean ways of retrieving an Access Token. Unfortunately it can be quite a challenge to find out which grant should be used in which situation.
The guys from Auth0 created the following diagram to help you arrive at the correct grant type: