Open damienfa opened 2 years ago
Message to comment on stale issues. If none provided, will not mark issues stale
I was having a similar issue. It just needs to be an empty route like this (mine was in routes.yml):
azure_login:
path: /login/check-azure
It gets picked up by a listener. It's important that client secret keys are defined though.
My question
I don't understand that part of the documentation. Those routes are declared but do not target to any controller. Is this normal? (see here)
My case and my issue
I confirmed everything as indicated in the documentation for Azure (resource owner). See below my security.yaml, hwi_oauth.yaml…
I successfully manage to be redirected to Azure in order to log in and, once logged, to be redirected back to my application on the "/login/check-azure" route (as indicated in my security.yaml). The reply URL looks well in my browser :
http://localhost/login/check-azure?code=0.ATEA41mpfLamBE6PWLnLKh_fKxxxxxxxxx
⚠️ But I've got the Symfony error : "Unable to find the controller for path "/login/check-azure". The route is wrongly configured." This does not surprise me too much because at no time is the controller defined for this route. What part am I missing? 🤔
Thanks for your help
My config files
_routes/hwi_oauthrouting.yaml :
_config/hwioauth.yaml :
config/security.yaml :