public function getAuthorizationRequestUrl($authorizeUrl, $clientId, $redirectUrl, $parameters = [])
    {
        $parameters = array_merge($parameters, array(
            'response_type' => 'code',
            'client_id' => $clientId,
            //'nonce' => $stateGuid->toString(),
            'redirect_uri' => $redirectUrl,
            //'post_logout_redirect_uri' => $redirectUrl,
            //'response_mode' => 'form_post',
            //'scope' => 'openid+profile'
        ));
        return $authorizeUrl . "?" . http_build_query($parameters);
    }
public function getAuthorizationRequestUrl($authorizeUrl, $clientId, $redirectUrl, $parameters = [])
    {
        $parameters = array_merge($parameters, array(
            'response_type' => 'code',
            'client_id' => $clientId,
            //'nonce' => $stateGuid->toString(),
            'redirect_uri' => $redirectUrl,
            //'post_logout_redirect_uri' => $redirectUrl,
            //'response_mode' => 'form_post',
            //'scope' => 'openid+profile'
        ));
        return $authorizeUrl . "?" . http_build_query($parameters);
    }
public function getAuthorizationRequestUrl ( $ authorizeUrl , $ clientId , $ redirectUrl , $ parameters = [ ] ) { $ parameters = array_merge ( $ parameters , array ( 'response_type' => 'code' , 'client_id' => $ clientId , //'nonce' => $stateGuid->toString(), 'redirect_uri' => $ redirectUrl , //'post_logout_redirect_uri' => $redirectUrl, //'response_mode' => 'form_post', //'scope' => 'openid+profile' ) ) ; return $ authorizeUrl . "?" . http_build_query ( $ parameters ) ; }
Gets URL of the authorize endpoint including the query parameters.
@param string $authorizeUrl
@param string $clientId
@param string $redirectUrl
@param array $parameters
@return string
Gets URL of the authorize endpoint including the query parameters .