public string BuildAuthUrl(string redirectUrl, string[] requestedPermissions, string state = null)
        {
            var returnUrl = new Uri(redirectUrl);

            // get the Authorization URL and redirect the user
            var authUrl = _apiAuthorizer.GetAuthorizationUrl(returnUrl.ToString(), requestedPermissions, state);

            return(authUrl);
        }
Ejemplo n.º 2
0
        public string BuildAuthUrl(string redirectUrl, string[] requestedPermissions, string state = null)
        {
            // this is the URL where nopCommerce should return the authorization code
            var returnUrl = new Uri(redirectUrl);

            // get the Authorization URL and redirect the user
            var authUrl = _apiAuthorizer.GetAuthorizationUrl(returnUrl.ToString(), requestedPermissions, state);

            return(authUrl);
        }