Auth0 Home Blog Docs

Xing plugin integration with auth0

social-connections

#1

Hi there,

I got a question regarding the authentication with OAuth using the German based portal Xing. They closed their public API and therefore it is not possible to use the documented way to integrate it with auth0. Nevertheless are Xing providing a plugin which enables a social login. Is there a way to integrate the plugin with auth0? Did someone already worked with it?
Thanks for the help!
Thomas


#3

Hey there @thomasbr24!

As far as I know, noone has asked us about Xing integrations before in the community so it might be hard to find any specific info on how to do that BUT :nerd_face: you can definitely go from here. Here’s a piece of content on adding custom social connections:

Let me know if that helps!


#4

Hi Konrad,

Custom Social Connections don’t seem to make it.
Xing from their site offering a code snippet for integration using a consumer key and signature salt:

  1. <script type=“xing/login”>
  2. {
  3. “consumer_key”: “923ae3bb5b2f59e1296c”
  4. }
  5. </script>
  • <script>(function(d) {
  1. var js, id=‘lwx’;
  2. if (d.getElementById(id)) return;
  3. js = d.createElement(‘script’); js.id = id; js.src = “https://www.xing-share.com/plugins/login.js”;
  4. d.getElementsByTagName(‘head’)[0].appendChild(js)
  5. }(document));</script>

#5

Hey @thomasbr24!

I’m investigating this with our developer support team. Give me a few more days and I’ll reach out back with the solutions we come up with.

Thanks!


#6

You won’t be able to use the login.js plug directly, but It seems that Xing supports OAuth2 (see https://dev.xing.com/docs/authentication).

Auth0 provides the capability to add custom OAuth2 connections for these cases where you want to use a provider that is not directly supported.

Auth0 will handle the OAuth2 dance of requesting an access token on your behalf, and you will have to provide a custom JavaScript snippet that uses that access token to get the user profile. See https://auth0.com/docs/connections/social/oauth2 and https://auth0.com/docs/extensions/custom-social-extensions for details on those.

We have an OAuth1 example for Xing at https://auth0.com/docs/connections/generic-oauth2-connection-examples#xing, but I see that they are migrating to OAuth2 so I’m not sure that you will be able to create a new OAuth1 registration.


#7

@konrad.sopala great news, looking forward to it!
@nicolas_sabena the documentation on site of Xing is also outdated. As I already wrote in my post, they closed their public API and it’s not possible anymore to create a ‘Xing application’ to do the API requests. The announcement is actually not public anymore (don’t know why, see https://github.com/xing/xing_api/issues/14)


#8

Judging by the comments in the GitHub issue that you provided and what you said in terms of not being able to create a Xing application anymore, I think it’ll be hard for now to achieve what you want cause going back to what Nick referenced it’s required to create Xing app at some point + the migration thing.


#9

Indeed. Auth0 can integrate with new identity providers as long as one of the standard authentication protocols is used by the identity provider: OAuth1, OAuth2, SAML or WS-Federation. If Xing shut the doors for that, there’s unfortunately nothing we can do about it.


#10

Alright. Thanks for the update on that! You may add a note to your own documentation, just for future reference.


#11

Thanks a lot for feedback @thomasbr24! Will report it to our product team. For future reference if you’d like at any time in the future to provide us with any feedback you can always visit our feedback site:

https://auth0.com/feedback (that’s the easiest way to directly provide feedback to our product team)

Thanks a lot for that!