public static string GetLogoutUrl() { IDictionary <string, string> urlParams = new Dictionary <string, string>(); urlParams["post_logout_redirect_uri"] = AppSettings.LogoutUri; string url = string.Format("{0}/Common/oauth2/logout", AppSettings.AzureADInstance); return(AppUtilities.CombineUrl(url, urlParams)); }
public static string GetLoginUrl() { IDictionary <string, string> urlParams = new Dictionary <string, string>(); urlParams["client_id"] = AppSettings.ClientId; urlParams["response_type"] = AppSettings.ResponseType; urlParams["redirect_uri"] = AppSettings.RedirectUri; urlParams["response_mode"] = AppSettings.ResponseMode; urlParams["state"] = Guid.NewGuid().ToString(); string url = string.Format("{0}/{1}/oauth2/authorize", AppSettings.AzureADInstance, AppSettings.DirectoryId); return(AppUtilities.CombineUrl(url, urlParams)); }