Fork me on GitHub

Token Endpoint (grant_type = password)

The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body:

Debug with Local Resource

Debug with Remote Resource

Refreshing an Access Token

Return

Logout

array(5) { ["access_token"]=> string(32) "f6ced0a06827442d3e0cf134cce88c60" ["token_type"]=> string(6) "bearer" ["expires_in"]=> int(3600) ["scope"]=> string(10) "demoscope1" ["refresh_token"]=> string(32) "50908bba1f7dab5db0ae0f697dd3aa25" } array(7) { ["attributes"]=> object(Symfony\Component\HttpFoundation\ParameterBag)#574 (1) { ["parameters":protected]=> array(3) { ["_controller"]=> string(47) "authbucket_oauth2.oauth2_controller:tokenAction" ["_route"]=> string(16) "api_oauth2_token" ["_route_params"]=> array(0) { } } } ["request"]=> object(Symfony\Component\HttpFoundation\ParameterBag)#572 (1) { ["parameters":protected]=> array(4) { ["grant_type"]=> string(8) "password" ["username"]=> string(13) "demousername1" ["password"]=> string(13) "demopassword1" ["scope"]=> string(10) "demoscope1" } } ["query"]=> object(Symfony\Component\HttpFoundation\ParameterBag)#573 (1) { ["parameters":protected]=> array(0) { } } ["server"]=> object(Symfony\Component\HttpFoundation\ServerBag)#577 (1) { ["parameters":protected]=> array(19) { ["SERVER_NAME"]=> string(9) "localhost" ["SERVER_PORT"]=> int(80) ["HTTP_HOST"]=> string(9) "localhost" ["HTTP_USER_AGENT"]=> string(18) "Symfony BrowserKit" ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-us,en;q=0.5" ["HTTP_ACCEPT_CHARSET"]=> string(30) "ISO-8859-1,utf-8;q=0.7,*;q=0.7" ["REMOTE_ADDR"]=> string(9) "127.0.0.1" ["SCRIPT_NAME"]=> string(0) "" ["SCRIPT_FILENAME"]=> string(0) "" ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" ["REQUEST_TIME"]=> int(1498392156) ["PHP_AUTH_USER"]=> string(41) "resource_owner_password_credentials_grant" ["PHP_AUTH_PW"]=> string(8) "Eevahph6" ["PATH_INFO"]=> string(0) "" ["REQUEST_METHOD"]=> string(4) "POST" ["CONTENT_TYPE"]=> string(33) "application/x-www-form-urlencoded" ["REQUEST_URI"]=> string(17) "/api/oauth2/token" ["QUERY_STRING"]=> string(0) "" } } ["files"]=> object(Symfony\Component\HttpFoundation\FileBag)#576 (1) { ["parameters":protected]=> array(0) { } } ["cookies"]=> object(Symfony\Component\HttpFoundation\ParameterBag)#575 (1) { ["parameters":protected]=> array(0) { } } ["headers"]=> object(Symfony\Component\HttpFoundation\HeaderBag)#578 (2) { ["headers":protected]=> array(10) { ["host"]=> array(1) { [0]=> string(9) "localhost" } ["user-agent"]=> array(1) { [0]=> string(18) "Symfony BrowserKit" } ["accept"]=> array(1) { [0]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" } ["accept-language"]=> array(1) { [0]=> string(14) "en-us,en;q=0.5" } ["accept-charset"]=> array(1) { [0]=> string(30) "ISO-8859-1,utf-8;q=0.7,*;q=0.7" } ["content-type"]=> array(1) { [0]=> string(33) "application/x-www-form-urlencoded" } ["php-auth-user"]=> array(1) { [0]=> string(41) "resource_owner_password_credentials_grant" } ["php-auth-pw"]=> array(1) { [0]=> string(8) "Eevahph6" } ["authorization"]=> array(1) { [0]=> string(74) "Basic cmVzb3VyY2Vfb3duZXJfcGFzc3dvcmRfY3JlZGVudGlhbHNfZ3JhbnQ6RWV2YWhwaDY=" } ["x-php-ob-level"]=> array(1) { [0]=> int(1) } } ["cacheControl":protected]=> array(0) { } } }