Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate state only if empty #461

Open
jaybiedev71 opened this issue Feb 4, 2025 · 0 comments
Open

Generate state only if empty #461

jaybiedev71 opened this issue Feb 4, 2025 · 0 comments

Comments

@jaybiedev71
Copy link

This is similar to this issue on nonce (#452),

I extended the class to be able to set custom state (and nonce) to be passed to adb2c, but this gets overwritten in requestAuthorization() method. We can update code to generate only state when it is empty. Be glad to issue a PR if you prefer.

$state = $this->setState($this->generateRandString());

    $state = $this->getState();
    if (empty($state)) {
        $state = $this->setState($this->generateRandString());
   }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant