I am using 0authv2 and Ionic 2
My application needs to create a GET request that looks like this:
Get GET_URL client_id <clientid> redirect_uri URL response_type code scope offline_access
The response should provide me with an access code to place in a POST request, this will look something like this:
POST POST_URL client_id <clientid> client_secret <client secret> code CODE_FROM_GET grant_type authorization_code redirect_uri URL
The instructions provided say to use a get, then URL load the user to the login page. At the point of logging in, they would get a URL that contains the code as well. I would then pass this with the POST to the server to get the access token. I am getting the same code with the GET, so is there a way to store this, then pass it with a POST to receive an access token?
I can provide my broken code if that helps, but I have been looking at combinations for a week with no success. Thanks again!