1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question about getting External Auth Data

Discussion in 'XenForo Development Discussions' started by John L., Feb 14, 2016.

  1. John L.

    John L. Well-Known Member

    Going to admit, I'm way over my skies here. However I'm trying to learn new things and trying to update a pretty old addon to work with the latest version of XenForo. Here is my problem, I'm trying to figure out how to replace getIdentities with getting the data from the External Auth table. Here is the example code:
    $identities $xfUserModel->getIdentities($user);
    // pay attention to this user, they have a steam id
    if ($identities && array_key_exists('Steam'$identities))
    // check to see if the user exists in source bans
    $sbUser $sbAdminModel->fetchBySteamId($identities['Steam']);
    I'm trying to figure out how to replace this code since the identities are no longer used and replaced with custom fields. However the data I'm trying to grab lives in the external auth field now. What would be the best way to grab the steam provider from external auth? Is there a getExternalAuth function? Sorry if I'm not asking this in the best way and appreciate any help!
  2. John L.

    John L. Well-Known Member

    I was able to sort this out. No idea if my code is actually good, but I was able to update it :)
  3. Dibbles

    Dibbles Member

    Hey John,

    Are you able to message me with how to managed to do this? I'm looking at a few ways to get some details out of Steam Auth and have no idea where to start :)

Share This Page