kalley / laravel-oauth-client Goto Github PK
View Code? Open in Web Editor NEWOAuth 1.0 and 2.0 Client for Laravel
License: MIT License
OAuth 1.0 and 2.0 Client for Laravel
License: MIT License
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
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:
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.