RiteshM
RiteshM
what is the flow of refresh_token grant type.please explain a little what are the endpoints and expected response for getting refresh token?? please explain a little !!
perhaps this is czZCaGRSa3F0MzpnWDFmQmF0M2JW access token and this is abc123 refresh token . how to get these parameters for first request when user submits his user name and password ??...
i try to understand ur point in the http://tools.ietf.org/html/rfc6749 there is a (A)------- Authorization Grant --------->| | | | | | | |
when i change grant to this grants: ['refresh_token','password'], then its giving me error on request payload grant_type=password&username=johndoe&password=A3ddj3w .error is 503 Service Unavailable { code: 503 error: "server_error" error_description: "server_error" }...
i implemented a dummy model for now ``` model = module.exports, ``` model.getAccessToken = function (bearerToken, callback) { callback(false,{'access_token':'anbc','client_id':'1122334r4555','expired':3600, 'user_id':'123'}); }; model.getClient = function (clientId, clientSecret, callback) { callback(false,{'client_id':'1122334r4555','client_secret':'1122334455','redirect_uri':''}) };...
i successfully get access_token and refresh_token .i extend my dummy model to add this method and get response using grant refresh_token after getting one time from password grant . model.getRefreshToken...
hey thanks a lot for the help. but only two doubt 1. i got the point of implementing all the functions but where function getAccessToken and getRefreshToken utilized or called...