concrete/src/Api/OAuth/Controller.php
private function storeRequest(AuthorizationRequest $request)
    {
        $data = [
            'user' => $request->getUser() ? $request->getUser()->getIdentifier() : null,
            'client' => $request->getClient()->getIdentifier(),
            'challenge' => $request->getCodeChallenge(),
            'challenge_method' => $request->getCodeChallengeMethod(),
            'grant_type' => $request->getGrantTypeId(),
            'redirect' => $request->getRedirectUri(),
            'scopes' => $request->getScopes(),
            'state' => $request->getState(),
            'approved' => (bool) $request->isAuthorizationApproved()
        ];

        /** @var Client $client */
        $client = $request->getClient();
        $clientId = $client->getClientKey();
        $this->session->set("authn_request.$clientId", $data);
    }
private function storeRequest(AuthorizationRequest $request)
    {
        $data = [
            'user' => $request->getUser() ? $request->getUser()->getIdentifier() : null,
            'client' => $request->getClient()->getIdentifier(),
            'challenge' => $request->getCodeChallenge(),
            'challenge_method' => $request->getCodeChallengeMethod(),
            'grant_type' => $request->getGrantTypeId(),
            'redirect' => $request->getRedirectUri(),
            'scopes' => $request->getScopes(),
            'state' => $request->getState(),
            'approved' => (bool) $request->isAuthorizationApproved()
        ];

        /** @var Client $client */
        $client = $request->getClient();
        $clientId = $client->getClientKey();
        $this->session->set("authn_request.$clientId", $data);
    }
private function storeRequest ( AuthorizationRequest $ request ) { $ data = [ 'user' => $ request -> getUser ( ) ? $ request -> getUser ( ) -> getIdentifier ( ) : null , 'client' => $ request -> getClient ( ) -> getIdentifier ( ) , 'challenge' => $ request -> getCodeChallenge ( ) , 'challenge_method' => $ request -> getCodeChallengeMethod ( ) , 'grant_type' => $ request -> getGrantTypeId ( ) , 'redirect' => $ request -> getRedirectUri ( ) , 'scopes' => $ request -> getScopes ( ) , 'state' => $ request -> getState ( ) , 'approved' => ( bool ) $ request -> isAuthorizationApproved ( ) ] ; /** @var Client $client */ $ client = $ request -> getClient ( ) ; $ clientId = $ client -> getClientKey ( ) ; $ this -> session -> set ( "authn_request.$clientId" , $ data ) ; }
Store a request against session

@param \League\OAuth2\Server\RequestTypes\AuthorizationRequest $request
Store a request against session