Skip to content

Commit a13150c

Browse files
committed
feat(code-flow): add debug log when storing the state in the php session
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent b406555 commit a13150c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Controller/LoginController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ public function login(int $providerId, ?string $redirectUrl = null) {
190190

191191
$state = $this->random->generate(32, ISecureRandom::CHAR_DIGITS . ISecureRandom::CHAR_UPPER);
192192
$this->session->set(self::STATE, $state);
193+
$this->logger->debug('Storing OIDC state', ['state' => $state]);
193194
$this->session->set(self::REDIRECT_AFTER_LOGIN, $redirectUrl);
194195

195196
$nonce = $this->random->generate(32, ISecureRandom::CHAR_DIGITS . ISecureRandom::CHAR_UPPER);

0 commit comments

Comments
 (0)