File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 4848use OneLogin \Saml2 \Error ;
4949use OneLogin \Saml2 \Settings ;
5050use OneLogin \Saml2 \ValidationError ;
51+ use function OCP \Log \logger ;
5152
5253class SAMLController extends Controller {
5354 use TXmlHelper;
@@ -227,11 +228,20 @@ public function login(int $idp = 1) {
227228
228229 if ($ this ->session ->get (ClientFlowLoginController::STATE_NAME ) !== null ) {
229230 $ flowData ['cf1 ' ] = $ this ->session ->get (ClientFlowLoginController::STATE_NAME );
231+ logger ('core ' )->error ('Transporting login flow token ' , [
232+ 'requestToken ' => $ this ->session ->get (ClientFlowLoginController::STATE_NAME ),
233+ ]);
230234 } elseif ($ this ->session ->get (ClientFlowLoginV2Controller::TOKEN_NAME ) !== null ) {
231235 $ flowData ['cf2 ' ] = [
232236 'token ' => $ this ->session ->get (ClientFlowLoginV2Controller::TOKEN_NAME ),
233237 'state ' => $ this ->session ->get (ClientFlowLoginV2Controller::STATE_NAME ),
234238 ];
239+ logger ('core ' )->error ('Transporting login flow tokens ' , [
240+ 'sessionToken ' => $ this ->session ->get (ClientFlowLoginV2Controller::TOKEN_NAME ),
241+ 'requestToken ' => $ this ->session ->get (ClientFlowLoginV2Controller::STATE_NAME ),
242+ ]);
243+ } else {
244+ logger ('core ' )->error ('No login flow tokens found ' );
235245 }
236246
237247 // Pack data as JSON so we can properly extract it later
You can’t perform that action at this time.
0 commit comments