public static function getAuthorizationUrl(OAuthInterface $params)
    {
        $oauthBaseUrl = Nosto::getOAuthBaseUrl();

        return HttpRequest::buildUri(
            $oauthBaseUrl . self::PATH_AUTH,
            array(
                '{cid}' => $params->getClientId(),
                '{uri}' => $params->getRedirectUrl(),
                '{sco}' => implode(' ', $params->getScopes()),
                '{iso}' => strtolower($params->getLanguageIsoCode()),
            )
        );
    }