I’m trying to use OpenStreetMap as an OAuth provider.
I’ve added the correct callback URl and scope (openid). When I try the connection it flows to OSM, then redirects back to https://manage.auth0.com. Then I get the error:
Failed transaction
If you are seeing this, it means that your connection didn’t work.
These are the details:
{
"error": "access_denied",
"error_description": "The authorization server encountered an unexpected condition which prevented it from fulfilling the request."
}
Has anyone successfully used OpenStreetMap as a custom social provider in Auth0?
I recommend looking through our documentation on how to Connect Apps to Generic OAuth2 Authorization Servers, but based on the details that you provided, there could be a couple of reasons for the behaviour that you are seeing:
double-check that the Client ID and Client Secret match on both sides, as a single typo would break the flow;
verify that the Authorization URL and Token URLs match against the official OpenStreetMap ones;
depending on the strategy that OpenStreetMap uses, you might need to add profile and email as additional scopes.
We do not have any official documentation on integrating OpenStreetMap with Auth0, but as long as the working mechanism follows OAuth 2, then it should be possible to create the integration.
Hope this helped, let us know if you are still encountering this issue!