I am using the OAuth 2.0 PHP Library to develop a OAuth 2.0 server in PHP.
In the example of that library I can see 3 tables: auth_codes
, clients
and tokens
.
As far as I know tokens are used to access the data and auth codes are used to obtain tokens.
But the problem is that if i do
...authorize.php?client_id=0123456789ab&response_type=token&state=test_state
I can get token without even getting the access code.
How is that possible ? Is this a proper implementation ?