File tree Expand file tree Collapse file tree
src/LightSaml/SpBundle/Controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function discoveryAction()
3232 $ parties = $ this ->get ('lightsaml.container.build ' )->getPartyContainer ()->getIdpEntityDescriptorStore ()->all ();
3333
3434 if (count ($ parties ) == 1 ) {
35- return $ this ->redirectToRoute ( 'lightsaml_sp.login ' , ['idp ' => $ parties [0 ]->getEntityID ()]);
35+ return $ this ->redirect ( $ this -> generateUrl ( 'lightsaml_sp.login ' , ['idp ' => $ parties [0 ]->getEntityID ()]) );
3636 }
3737
3838 return $ this ->render ('LightSamlSpBundle::discovery.html.twig ' , [
@@ -44,7 +44,7 @@ public function loginAction(Request $request)
4444 {
4545 $ idpEntityId = $ request ->get ('idp ' );
4646 if (null === $ idpEntityId ) {
47- return $ this ->redirectToRoute ($ this ->container ->getParameter ('lightsaml_sp.route.discovery ' ));
47+ return $ this ->redirect ($ this ->generateUrl ( $ this -> container ->getParameter ('lightsaml_sp.route.discovery ' ) ));
4848 }
4949
5050 $ profile = $ this ->get ('ligthsaml.profile.login_factory ' )->get ($ idpEntityId );
You can’t perform that action at this time.
0 commit comments