Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * @author Alex Bilbie <[email protected]> * @copyright Copyright (c..

Decoded Output download

<?php

/**
 * @author      Alex Bilbie <[email protected]>
 * @copyright   Copyright (c) Alex Bilbie
 * @license     http://mit-license.org/
 *
 * @link        https://github.com/thephpleague/oauth2-server
 */

declare(strict_types=1);

namespace League\OAuth2\Server\RequestTypes;

use League\OAuth2\Server\Entities\ClientEntityInterface;
use League\OAuth2\Server\Entities\ScopeEntityInterface;
use League\OAuth2\Server\Entities\UserEntityInterface;

class AuthorizationRequest implements AuthorizationRequestInterface
{
    /**
     * The grant type identifier
     */
    protected string $grantTypeId;

    /**
     * The client identifier
     */
    protected ClientEntityInterface $client;

    /**
     * The user identifier
     */
    protected UserEntityInterface $user;

    /**
     * An array of scope identifiers
     *
     * @var ScopeEntityInterface[]
     */
    protected array $scopes = [];

    /**
     * Has the user authorized the authorization request
     */
    protected bool $authorizationApproved = false;

    /**
     * The redirect URI used in the request
     */
    protected ?string $redirectUri = null;

    /**
     * The state parameter on the authorization request
     */
    protected ?string $state = null;

    /**
     * The code challenge (if provided)
     */
    protected string $codeChallenge;

    /**
     * The code challenge method (if provided)
     */
    protected string $codeChallengeMethod;

    public function getGrantTypeId(): string
    {
        return $this->grantTypeId;
    }

    public function setGrantTypeId(string $grantTypeId): void
    {
        $this->grantTypeId = $grantTypeId;
    }

    public function getClient(): ClientEntityInterface
    {
        return $this->client;
    }

    public function setClient(ClientEntityInterface $client): void
    {
        $this->client = $client;
    }

    public function getUser(): ?UserEntityInterface
    {
        return $this->user ?? null;
    }

    public function setUser(UserEntityInterface $user): void
    {
        $this->user = $user;
    }

    /**
     * @return ScopeEntityInterface[]
     */
    public function getScopes(): array
    {
        return $this->scopes;
    }

    /**
     * @param ScopeEntityInterface[] $scopes
     */
    public function setScopes(array $scopes): void
    {
        $this->scopes = $scopes;
    }

    public function isAuthorizationApproved(): bool
    {
        return $this->authorizationApproved;
    }

    public function setAuthorizationApproved(bool $authorizationApproved): void
    {
        $this->authorizationApproved = $authorizationApproved;
    }

    public function getRedirectUri(): ?string
    {
        return $this->redirectUri;
    }

    public function setRedirectUri(?string $redirectUri): void
    {
        $this->redirectUri = $redirectUri;
    }

    public function getState(): ?string
    {
        return $this->state;
    }

    public function setState(string $state): void
    {
        $this->state = $state;
    }

    public function getCodeChallenge(): ?string
    {
        return $this->codeChallenge ?? null;
    }

    public function setCodeChallenge(string $codeChallenge): void
    {
        $this->codeChallenge = $codeChallenge;
    }

    public function getCodeChallengeMethod(): ?string
    {
        return $this->codeChallengeMethod ?? null;
    }

    public function setCodeChallengeMethod(string $codeChallengeMethod): void
    {
        $this->codeChallengeMethod = $codeChallengeMethod;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

/**
 * @author      Alex Bilbie <[email protected]>
 * @copyright   Copyright (c) Alex Bilbie
 * @license     http://mit-license.org/
 *
 * @link        https://github.com/thephpleague/oauth2-server
 */

declare(strict_types=1);

namespace League\OAuth2\Server\RequestTypes;

use League\OAuth2\Server\Entities\ClientEntityInterface;
use League\OAuth2\Server\Entities\ScopeEntityInterface;
use League\OAuth2\Server\Entities\UserEntityInterface;

class AuthorizationRequest implements AuthorizationRequestInterface
{
    /**
     * The grant type identifier
     */
    protected string $grantTypeId;

    /**
     * The client identifier
     */
    protected ClientEntityInterface $client;

    /**
     * The user identifier
     */
    protected UserEntityInterface $user;

    /**
     * An array of scope identifiers
     *
     * @var ScopeEntityInterface[]
     */
    protected array $scopes = [];

    /**
     * Has the user authorized the authorization request
     */
    protected bool $authorizationApproved = false;

    /**
     * The redirect URI used in the request
     */
    protected ?string $redirectUri = null;

    /**
     * The state parameter on the authorization request
     */
    protected ?string $state = null;

    /**
     * The code challenge (if provided)
     */
    protected string $codeChallenge;

    /**
     * The code challenge method (if provided)
     */
    protected string $codeChallengeMethod;

    public function getGrantTypeId(): string
    {
        return $this->grantTypeId;
    }

    public function setGrantTypeId(string $grantTypeId): void
    {
        $this->grantTypeId = $grantTypeId;
    }

    public function getClient(): ClientEntityInterface
    {
        return $this->client;
    }

    public function setClient(ClientEntityInterface $client): void
    {
        $this->client = $client;
    }

    public function getUser(): ?UserEntityInterface
    {
        return $this->user ?? null;
    }

    public function setUser(UserEntityInterface $user): void
    {
        $this->user = $user;
    }

    /**
     * @return ScopeEntityInterface[]
     */
    public function getScopes(): array
    {
        return $this->scopes;
    }

    /**
     * @param ScopeEntityInterface[] $scopes
     */
    public function setScopes(array $scopes): void
    {
        $this->scopes = $scopes;
    }

    public function isAuthorizationApproved(): bool
    {
        return $this->authorizationApproved;
    }

    public function setAuthorizationApproved(bool $authorizationApproved): void
    {
        $this->authorizationApproved = $authorizationApproved;
    }

    public function getRedirectUri(): ?string
    {
        return $this->redirectUri;
    }

    public function setRedirectUri(?string $redirectUri): void
    {
        $this->redirectUri = $redirectUri;
    }

    public function getState(): ?string
    {
        return $this->state;
    }

    public function setState(string $state): void
    {
        $this->state = $state;
    }

    public function getCodeChallenge(): ?string
    {
        return $this->codeChallenge ?? null;
    }

    public function setCodeChallenge(string $codeChallenge): void
    {
        $this->codeChallenge = $codeChallenge;
    }

    public function getCodeChallengeMethod(): ?string
    {
        return $this->codeChallengeMethod ?? null;
    }

    public function setCodeChallengeMethod(string $codeChallengeMethod): void
    {
        $this->codeChallengeMethod = $codeChallengeMethod;
    }
}

Function Calls

None

Variables

None

Stats

MD5 6eb5c86d29040ecb692e6c71dd182211
Eval Count 0
Decode Time 83 ms