public override string GetAuthorizationUrl(Uri redirectTo) { // If the Resource ID is known, use it. Otherwise, get authorized to the discovery service, first. string resourceIdForAuthRequest = ResourceId ?? _discoveryServiceInfo.ResourceId; return(Office365CommonController.GetAuthorizationUrl(resourceIdForAuthRequest, redirectTo)); }
/// <summary> /// Returns a URL through which a user can be authorized to access Office 365 APIs. /// After the authorization is complete, the user will be redirected back to the URL /// defined by the redirectTo parameter. This can be the same URL as the caller's URL /// (e.g., Request.Url), or it can contain additional query-string parameters /// (e.g., to restore state). /// </summary> public virtual string GetAuthorizationUrl(Uri redirectTo) { return(Office365CommonController.GetAuthorizationUrl(ResourceId, redirectTo)); }