api - how to customize receive-code and authorize page in Apigility -


am request url

http://xxxxxx/mobileapi/public/oauthtest/authorize?response_type=token&client_id=userapi&redirect_uri=./receivecode&state=xyz

and show page

image in link:https://www.apigility.org/apigility-documentation/img/auth-oauth2-authorize.png

but want return json value token

you should reading in zf-oauth documentation. request token send post request user credentials , client id oauth endpoint:

so example post request base url /oauth following json data:

{     "grant_type": "password",     "password": "1234abcd",     "username": "john.doe@example.com",     "client_id": "myclient" } 

Comments