Skip to content

Generate state only if empty #461

@jaybiedev71

Description

@jaybiedev71

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());
   }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions