Comments (4)
Whatcha need? 😉 However I don't really find a lot of questions there related to this bundle, and I need at least one, preferably 5+, to create a tag.
from oauth2-client-bundle.
Hey @giovkanata!
Ah, so you're correct that the ClientRegistry
is not lazy loaded... but all of the clients inside of it are (because ClientRegistry doesn't instantiate them until [and if] they are needed). For example, if I create an authenticator and inject the FacebookClient directly, then the FacebookClient will be instantiated on every request (because authenticators are instantiated on every request). But if you instead inject the ClientRegistry
, then the ClientRegistry
is instantiated on every request, but your FacebookClient is not automatically instantiated: it will only be instantiated if/when your authenticator requests that client from the ClientRegistry.
So, you don't need to do anything :) - just inject the ClientRegistry and your clients will be instantiated lazily. There is no need for lazy=true - injecting the container (like we've done) is another way to achieve the laziness.
I hope this helps!
P.S. Having a tag on StackOverflow makes sense to me! But I probably also don't have enough points, and I (unfortunately) won't check there for questions. But, the questions would get a lot more exposure from other people.
Cheers!
from oauth2-client-bundle.
Wow, nice! @giovkanata do you know of any existing questions about the bundle?
from oauth2-client-bundle.
Nice @curry684 ! @weaverryan not at the moment, but if I'll see something I'll ping you here.
from oauth2-client-bundle.
Related Issues (20)
- Telegram login not working with custom provider HOT 1
- User is not authenticating after registering with facebook/google.
- Google provider doesn't allow setting prompt option HOT 2
- Allow defining the default scope for all clients
- json_login + GoogleAuthenticator
- How to get the authenticator to protect all routes if not logged in? HOT 1
- Redirection to login page if not authenticated not working HOT 4
- Does anyone know if this is vulnerable to this hack, token switching
- connect client to server type generic
- test
- <script>alert("asd")</script>
- Change examples to use #[Route()] attributes HOT 1
- Error fetching OAuth credentials: "Missing required parameter [code_verifier]. HOT 3
- SaveAuthFailureMessage trait incompatible with symfony 7
- How to use Google login on Symfony which is used on Apache2 Reverse Proxy? HOT 2
- Unable to do functional tests with PHPUnit since upgrading to new auth system
- Update documentation, drop unmaintained Symfony HOT 5
- redirect_uri in redirects' targetUrl not returning https HOT 7
- Demo app: login with github HOT 6
- ISSUE : Keycloak v20 don't work HOT 1
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-bundle.