ASPC.Marvel.CrimeAPI.TokenHelper.GetAuthorizationUrl C# (CSharp) Метод

GetAuthorizationUrl() публичный статический Метод

Returns the SharePoint url to which the app should redirect the browser to request consent and get back an authorization code.
public static GetAuthorizationUrl ( string contextUrl, string scope ) : string
contextUrl string Absolute Url of the SharePoint site
scope string Space-delimited permissions to request from the SharePoint site in "shorthand" format /// (e.g. "Web.Read Site.Write")
Результат string
        public static string GetAuthorizationUrl(string contextUrl, string scope)
        {
            return string.Format(
                "{0}{1}?IsDlg=1&client_id={2}&scope={3}&response_type=code",
                EnsureTrailingSlash(contextUrl),
                AuthorizationPage,
                ClientId,
                scope);
        }

Same methods

TokenHelper::GetAuthorizationUrl ( string contextUrl, string scope, string redirectUri ) : string