I am facing an issue with the oauth access token generation using WSO2 identity server as authentication server.The access token is not getting generated.
I have followed the steps in the below url - http://wso2.com/library/articles/2015/09/article-how-to-generate-api-manager-access-tokens-using-multi-factor-authentication/ Instead of the second level of yahoo authentication, I have included my customized AuthServer authentication.This AuthServer code is responsible of handling the OAuth 2.0 tokens and clients details.
Program flow
I have an html which has a link on click of which hits the below url:-
https://localhost:8244/authorize?response_type=code&client_id=CeYYVyMbL2CAfoelSlUlZfFrwSQa&redirect_uri=https://localhost:8443/ClientProj/redirect.html
The client_id here is the client_id of the application in the API manager store.The redirect uri is the url of my sample client.
In the response header of the above request I am recieving the authorize code.This authorize code is used to get the actual access token as below request(POST)
Please help with a solution.