Code Monkey home page Code Monkey logo

laravel-oauth-client's People

Contributors

kalley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-oauth-client's Issues

Adding new provider

I'm trying to add my own Stripe provider. I'm using https://github.com/chrsm/league-oauth2-stripe for the Stripe Provider, and when I set up my StripeFacade, I get the following error:

Undefined index: stripe
in
/srv/www/practiscore.dev/deploy/matchReg/vendor/kalley/laravel-oauth-client/src/Kalley/LaravelOauthClient/AbstractOAuthClient.php
on
line 26

How do I go about adding a custom provider with the facade?

Here is my facade:

<?php

namespace Practiscore\Facades;

use Illuminate\Support\Facades\Facade;

class StripeFacade extends Facade {

    /**
     * Get the registered name of the component
     * @return string
     * @codeCoverageIgnore
     */
    protected static function getFacadeAccessor() {
        return 'oauth-client.stripe';
    }

}

And have this in my oauth-client.php config file:

'providers' => [
        'Facebook' => [...],

        'Github'   => [...],

        'Stripe' => [
            'clientId'     => 'myClientID',
            'clientSecret' => 'myClientSecret',
            'redirectUri'  => 'https://myexample.com/stripe/incoming',
        ],

    ],

Also added the alias in app.php

Redirect URI mismatch

Hi,
I received the following error on Facebook::getAccessToken() method.

{"error":{"message":"Required option not passed: access_token\r\nArray\n(\n [{"error":{"message":"Error_validating_verification_code__Please_make_sure_your_redirect_uri_is_identical_to_the_one_you_used_in_the_OAuth_dialog_request","type":"OAuthException","code":100}}] => \n)\n","code":404}}

I checked the redirect uri on my facebook app settings and in the oauth-client.php config file, they both appear to be the same. see screenshots below:

config_sett

fb_app

I tried with and without trailing slash at the end of the url with no luck. Could anyone please let me know what am I doing wrong?

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.