The GrantType type exposes the following members.
Using an authorization code to confirm the identity (grant type is authorization_code).
Using basic authorization with username and password (grant type is client_credentials).
Using username and password (grant type is password).
Using a token to refreshing the access token (grant type is refresh_token).