Closed Chirikumo89 closed 1 year ago
Hi! I'm not sure the problem, but here is a similar issue https://github.com/knpuniversity/oauth2-client-bundle/issues/168
No,
I have identified my problem, but can't seem to fix it.
On my /connect/azure route when I pass a random parameter to see if the GET is working nothing is returned
example: /connect/azure?foo=bar
So if I dump $_GET or $request->query->get('foo') an empty array and null are returned
But when I try another route in my form for example no problem !
Any ideas ?
Hmm, I'm not really sure how that's possible. If the current URL has ?foo=bar
on it, then $_GET
will absolutely contain that - I can't think of any situation where that hasn't worked. Sorry :/
No worries, locally everything works fine but on the server it doesn't, is it due to the server configuration?
It could be - that SMELLS very strange... - I would also dump $_SERVER
- iirc, some of the vars in there should contain the current URL - you can see if it shows the query params, just to help understand what's going on.
Good luck!
The request ?foo=bar works only on my route home '/', on the other routes nothing works
I have a problem with Oauth2. It returns me as error "Invalid state parameter passed in callback URL."
I'm on symfony 6
I don't know where this can come from, in localhost everything works but in production I have this error.
I looked everywhere for a solution without finding anything.
knpu_oauth2_client.yaml
security.yaml
AzureController.php
AzureAuthenticator.php
When I add
use_state: true
in parameter another error is returned: "Authentication failed! Did you authorize our app?"