Comments (4)
I would instantiate three different Provider objects (i.e. $providerFacebook, $providerTwitter, $providerGoogle), and then use them as shown in the usage example on the README. Specifically, you'll call getAuthorizationUrl()
on each provider, and that's the URL you direct people to, when they click these buttons.
Does that help?
from oauth2-client.
Also, your redirectUri
for each provider will need to be unique (i.e. "https://example.org/login?provider=google"), so that when they are redirected back to you, after granting permission, you can tell which provider to use for getting the access token.
from oauth2-client.
@paquitodev, were my comments helpful?
from oauth2-client.
@ramsey Yes, thanks
from oauth2-client.
Related Issues (20)
- Deprecated function: Return type HOT 1
- Oauth2 refresh problems HOT 1
- AccessToken setTimeNow is useless function
- PHP Combability issue
- Security issue HOT 1
- Basic example improvements HOT 1
- Basic example improvements (2)
- Allow any psr-18 http client (instead of requiring guzzle) HOT 1
- Security vulnerabilities in specific guzzlehttp/guzzle versions
- Error fetching OAuth credentials: "Missing required parameter [code_verifier]."
- Logout HOT 2
- Suggestion - a very small code change would implement rate limiting
- Add original oauth error to IdentityProviderException
- Issue with generating and validating the same token.
- ID Token for access token possible? HOT 1
- New stable release? HOT 6
- pkce no longer appears in src/Provider/AbstractProvider.php HOT 4
- Create multipart/form-data requests? HOT 1
- Support for PHP 8.2? HOT 1
- PKCE: Unset oauth2pkceCode from session after login?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oauth2-client.