OAuth
OAuth
		
		Grants Token Type (Recommend)
Authorization Code Grant with PKCE (Proof Key for Code Exchange)
single pageapplicationsBrowser basedapplicationnativeapplications
Authorization Code Grant
serverapplication
Client Credentials Grant Tokens
machine-to-machineauthentication.
Personal Access Tokens
- users issue access tokens to themselves
 - WITHOUT authorization code 
redirect flow 
No longer recommend Grants Token Type
Password Grant Tokens
first-partyclients- mobile application, to obtain an access token using an 
email address/usernameandpassword. 
- mobile application, to obtain an access token using an 
 - We strongly recommend that you use the 
Authorization Code flowover the Password grant for several reasons. 
Implicit Grant Tokens
JavaScriptormobile applicationswhere the client credentials CAN’T be securely stored- token is returned to the client without exchanging an authorization code.
 
Question
Which OAuth 2.0 grant should I implement?
https://oauth2.thephpleague.com/authorization-server/which-grant/