auth0
I have built a sms portal using Laravel + Auth0/Google_SSO + Wild Apricot (read only) API's, which works great. That Auth0 authenticated users against the Google user repository, but now have started building a second Laravel + Auth0 + Wild Apricot (read & write) API's where I want to first be able to use the Auth0 SSO to authenticate against Wild Apricot. I am using their "oauth capable" social login (URL: https://auth0.com/docs/authenticate/identity-providers/social-identity-providers/oauth2 ), which seems to work. I get the WA username/password login screen and it signs in, but there it stops and seems like the token that is issued is either not available or captured and then used in the subsequent API call to get user context/details. I get the following log error in Auth0:
{
"date": "2022-04-02T22:00:54.362Z",
"type": "f",
"description": "User failed to login",
"connection": "WildApricot",
"connectionid": "<connectionid>",
"clientid": "<clientid>",
"clientname": "All Applications",
"ip": "<ipaddress>",
"useragent": "Firefox 99.0.0 / Mac OS X 10.15.0",
"details": {
"body": {},
"qs": {
"code": "101dc95bae0c4c66925dcdef4f8ea79c",
"state": "j91jcYcN0vLvdgCC3oryf34j0SP0plRw"
},
"connection": "WildApricot",
"error": {
"message": null,
"oauthError": "invalidrequest",
"type": "request-error"
},
"sessionid": "NQCu9QS4XDgz6glf8K80uKjUyRoqVwnm"
},
"hostname": "<outauth0domain>",
"strategy": "oauth2",
"strategytype": "social",
"logid": "90020220402220059406141054250671160826950045098158588002",
"id": "90020220402220059406141054250671160826950045098158588002",
"isMobile": false
}
.. but if I open a second browser tab I am authenticated and can browse the website.. just not the Auth0 integration works. Presume the next step in that Auth0 chain is to grab the token, issue a WA API request to get the user details and hand that over to Laravel. I am not sure about the details in this process, but trying to dig.
There is an error in the browser as well, which says the following (see attached picture as well):
///
Bummer! Something failed
If you are seeing this, it means that your connection didn't work.
These are the details:
{
"error": "invalid_request"
}
///
Would be great to get some help in getting this done. I will also reach out to Auth0 to get some inputs and help as well if possible.
Thanks in advance!
/Jorgen
-
Hello!
We have just validated that everything works fine on our side
https://gethelp.wildapricot.com/en/articles/484-api-authentication#howtobut please note, that there is an error in the Help - call to OAuthLogin redirects then to return Url with parameter "code". Not "authorization_code" as described.
Could it be the reason of the problem?