@@ -100,15 +100,15 @@ public function poll(string $token): JSONResponse {
100100 * @PublicPage
101101 */
102102 #[UseSession]
103- public function landing (string $ token , $ user = '' ): Response {
103+ public function landing (string $ token , $ user = '' , int $ direct = 0 ): Response {
104104 if (!$ this ->loginFlowV2Service ->startLoginFlow ($ token )) {
105105 return $ this ->loginTokenForbiddenResponse ();
106106 }
107107
108108 $ this ->session ->set (self ::TOKEN_NAME , $ token );
109109
110110 return new RedirectResponse (
111- $ this ->urlGenerator ->linkToRouteAbsolute ('core.ClientFlowLoginV2.showAuthPickerPage ' , ['user ' => $ user ])
111+ $ this ->urlGenerator ->linkToRouteAbsolute ('core.ClientFlowLoginV2.showAuthPickerPage ' , ['user ' => $ user, ' direct ' => $ direct ])
112112 );
113113 }
114114
@@ -117,7 +117,7 @@ public function landing(string $token, $user = ''): Response {
117117 * @PublicPage
118118 */
119119 #[UseSession]
120- public function showAuthPickerPage ($ user = '' ): StandaloneTemplateResponse {
120+ public function showAuthPickerPage (string $ user = '' , int $ direct = 0 ): StandaloneTemplateResponse {
121121 try {
122122 $ flow = $ this ->getFlowByLoginToken ();
123123 } catch (LoginFlowV2NotFoundException $ e ) {
@@ -139,6 +139,7 @@ public function showAuthPickerPage($user = ''): StandaloneTemplateResponse {
139139 'urlGenerator ' => $ this ->urlGenerator ,
140140 'stateToken ' => $ stateToken ,
141141 'user ' => $ user ,
142+ 'direct ' => $ direct ,
142143 ],
143144 'guest '
144145 );
@@ -150,7 +151,7 @@ public function showAuthPickerPage($user = ''): StandaloneTemplateResponse {
150151 * @NoSameSiteCookieRequired
151152 */
152153 #[UseSession]
153- public function grantPage (?string $ stateToken ): StandaloneTemplateResponse {
154+ public function grantPage (?string $ stateToken, int $ direct = 0 ): StandaloneTemplateResponse {
154155 if ($ stateToken === null ) {
155156 return $ this ->stateTokenMissingResponse ();
156157 }
@@ -177,6 +178,7 @@ public function grantPage(?string $stateToken): StandaloneTemplateResponse {
177178 'instanceName ' => $ this ->defaults ->getName (),
178179 'urlGenerator ' => $ this ->urlGenerator ,
179180 'stateToken ' => $ stateToken ,
181+ 'direct ' => $ direct ,
180182 ],
181183 'guest '
182184 );
0 commit comments