-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redirect_params how to dynamically pass parameters to the check route #103
Comments
Ended up creating 2 facebook providers. Works. But my eyes bleed everytime I look at it. |
Hey @db306! Sorry for missing this originally :). The problem is that the provider classes themselves (provided by the Facebook League library) want the redirectUri to be passed into the constructor. However, you can also pass a $client = $this->clientRegistry->getClient('facebook');
return $client->redirect(
[], // scopes
['redirect_uri' => $this->generateUrl('...')]
); I hope this helps clean things up! |
Thanks Ryan I'll have a look at it :) |
I tried this, but that doesn't seem to work. See: #313 |
@WouterCypers is right, it does not work on Google with parameters. I have an Oauth with Google working perfectly but when I try to generate an URL with parameters (absolute URL). There is a Error 400: redirect_uri_mismatch |
Hi there,
I'm using symfony 4.1 and I've multiple domains with optional prefixes, which makes it very difficult to configure things like this bundle. I've been searching for some info regarding how to pass extra parameters to Facebook or find a different solution. I've looked at issue #73 but seems like there is probably a simpler way of achieving this ?
Currently I have theese routes, few years ago they were talking about doing something like
/({prefix}/)/connect/facebook
but seems like that never actually happened so I'm stuck with making double routes.My issue comes from my FacebookController connect function as I attempt to get the Client, it can't form the route
/{prefix}/connect/facebook/check
as it requires the prefix. So I would have loved to do something like$this->clientRegistry->getClient($client, ['prefix' => $prefix])->redirect();
The only way I can insert the prefix is via the yaml configuration so I'm sort of stuck in doing a provider for each prefix which is completelly mad
Is there a way to do this differenlty ?
The text was updated successfully, but these errors were encountered: