I am developing Spring MVC + Apache Oltu + Salesforce Integration example. In this example, I have created connected App in the salesforce as shown below:
In this example I am using below:
What will be the OAuthBearerClientRequest Request ? Like for Github I had used https://api.github.com/user
. What will be the URL for the salesforce ?
This is getting called from my code:
https://login.salesforce.com/services/oauth2/authorize?scope=full&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fapache-oltu%2Fsalesforce%2Fredirect&client_id=3MVG9d8..z.hDcPJZPIzGJ5UZDqJOJY.3R6RBM8sJAF8PyTtdTE.DDBnScvPEbcbUmaZ1HQjYItOLpnjY4JHL
but nothing is coming in Authorization.
For ex: OAuthBearerClientRequest for
- Linkedin -
https://api.linkedin.com/v1/people/~?oauth2_access_token=
- Facebook -
https://graph.facebook.com/me/friends
- Github-
https://api.github.com/user
What is for the salesforce ?
This URL also dont have info what I want: https://developer.salesforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com#Obtaining_an_Access_Token_using_a_SAML_Bearer_Assertion.
Please let me know if someone needs code for reference.
The error which I see::
error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration
The issue mention here: https://issues.apache.org/jira/browse/OLTU-210