am request this url
and show this page
image in that link:https://www.apigility.org/apigility-documentation/img/auth-oauth2-authorize.png
but i want only return json value with token
am request this url
and show this page
image in that link:https://www.apigility.org/apigility-documentation/img/auth-oauth2-authorize.png
but i want only return json value with token
You should do some reading in the ZF-OAuth documentation.
To request a token you send a POST
request with user credentials and client id to the oauth
endpoint:
So for example a POST
request to your base url for /oauth
with the following json
data:
{
"grant_type": "password",
"password": "1234abcd",
"username": "john.doe@example.com",
"client_id": "MyClient"
}