Single Sign On - second step Authenticating the user
Any one please help me to complete this authenticating the user using the authentication code. i got the following error
URL:
https://oauth.wildapricot.org/auth/token
granttype=authorizationcode&authorizationcode=5183ab5986ee53e6fb850a7f44c765d4&clientid=xxxx&redirecturi=http://localhost/wapi/&scope=contactsme&state=local
Array
(
[0] => Authorization: Basic bXlpbDEzaWhtZzp2MGhqZnAyNW4xZmtteTJjaj2w=
[1] => Content-Type: application/x-www-form-urlencoded
)
{"Message":"An internal error has occured. Please contact Wild Apricot support.\r\n Request ID:530451cb095c4c6895389a077ac9016d."}
Resolved, see last comment.
-
Hi,
There is an error in parameters you pass to oauth service. Correct version is
grant_type=authorization_code&code=5183ab59.....Also you can look at
* this thread https://forums.wildapricot.com/forums/309658/suggestions/12940863 In latest comment from Marios he published a working PHP code for SSO.
* our wordpress SSO plugin https://wordpress.org/plugins/wild-apricot-login You can use it as an example of working with API from PHP.
* asp.net sample application on github https://github.com/WildApricot/ApiSamples/tree/master/C%23/OAuthClientTestApp