Getting authentication failure from openam on successful authentication from Google.
Steps to reproduce:
Add OAuth2 authentication module with Google client details like client id, secret etc.
Add a service with name google and add the above created instance.
In browser go to url http://:8080/openam?service=google
You will be redirected to Google login page.
Login to google and you will be redirected to authentication failure page of openam.
Cause found:
In OAuth.java query parameters are included while constructing URL and Google is rejecting the request.
Response message is missing parameter grant_type
Getting authentication failure from openam on successful authentication from Google.
Steps to reproduce:
Cause found: In OAuth.java query parameters are included while constructing URL and Google is rejecting the request. Response message is missing parameter grant_type