In API Manager 2.0.0 I have configure a federated authenticator for oauth2, setting-up with a google authentication, and configure a service provider for an application to use this federated authenticator. Then I follow the tutorial [1] in order to use this application with the google authentication.
When I try to generate the keys from the Store portal using Code or Implicit grant types, the server give me the following error:
Error occurred while calling token endpoint: HTTP error code : 400
and in the log shows:
{"error_description":"Provided Authorization Grant is invalid","error":"invalid_grant"}
Can anyone help me with this problem? How can I configure a federated authenticator to consume te APIs/Applications?
Thanks.
Here you can see the debug log of APIM.
Provided Authorization Grant is invalid
while getting oauth token, enable debug log fororg.wso2.carbon.identity.oauth2
package. You can get more specific root cause. – lakshman