Giter Club home page Giter Club logo

Comments (9)

faustbrian avatar faustbrian commented on May 27, 2024 1

from providers.

faustbrian avatar faustbrian commented on May 27, 2024

Check http://socialiteproviders.github.io/providers/xing/ to learn how to use the consumer key and secret XING provides you.

from providers.

tobiasdalhof avatar tobiasdalhof commented on May 27, 2024

I'm getting the following exception:

(1/1) CredentialsException Received HTTP status code [401] with message "{"message":"Invalid OAuth signature","error_name":"INVALID_OAUTH_SIGNATURE"}" when getting temporary credentials.

My .env file looks like this

XING_KEY=consumerkeyhere
XING_SECRET=signaturesalthere
XING_REDIRECT_URI=http://laravel.dev/login/xing/callback

The "Signature salt" provided by XING equals the XING_SECRET config, right?!

Routes

Route::get('login/xing', 'Auth\LoginController@redirectToXING')->name('login.xing');
Route::get('login/xing/callback', 'Auth\LoginController@handleXINGCallback')->name('login.xing.callback');

LoginController

    /**
     * Redirect the user to the XING authentication page.
     *
     * @return mixed
     */
    public function redirectToXING()
    {
        return Socialite::with('xing')->redirect();
    }

    /**
     * Obtain the user information from XING.
     *
     * @return \Illuminate\Http\RedirectResponse
     */
    public function handleXINGCallback()
    {
        try {
            $XINGUser = Socialite::driver('xing')->user()->user;

            dd($XINGUser);

            return redirect()->intended(route('frontend.home'));
        }
        catch (Exception $e) {
            return redirect()->route('user.login');
        }
    }

No idea whats wrong here 😢

from providers.

faustbrian avatar faustbrian commented on May 27, 2024

I don't remember what XING called their things as they always want to be special and never name the things what they actually are but I found an test application on my local machine that is working just fine, so if you have the right credentials everything should be working fine if you have the right permissions set up.

from providers.

tobiasdalhof avatar tobiasdalhof commented on May 27, 2024

Looks like the they closed their API for new users. I contacted XING for further information.

Thanks for your effort

from providers.

faustbrian avatar faustbrian commented on May 27, 2024

from providers.

tobiasdalhof avatar tobiasdalhof commented on May 27, 2024

Interesting... Thank you! Looks like I have to stick with LinkedIn OAuth for now. 🤔

from providers.

OzanKurt avatar OzanKurt commented on May 27, 2024

@tobiasdalhof Any updates about the topic?

from providers.

tobiasdalhof avatar tobiasdalhof commented on May 27, 2024

@OzanKurt Nope, sorry! You could try to contact the Xing team for more info

from providers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.