-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1013 from Strongminds/hotfix/KITOSUDV-3027-fix-de…
…ployment Hotfix/KITOSUDV-3027 fix deployment
- Loading branch information
Showing
9 changed files
with
57 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
|
||
namespace Infrastructure.DataAccess.Tools | ||
{ | ||
public class ConnectionStringTools | ||
{ | ||
public static string GetConnectionString(string dbName) | ||
{ | ||
var connectionString = System.Configuration.ConfigurationManager.ConnectionStrings[dbName]?.ConnectionString ?? dbName; | ||
if (!connectionString.StartsWith("base64:")) | ||
return connectionString; | ||
|
||
var base64EncodedString = connectionString.Substring("base64:".Length); | ||
var base64EncodedBytes = Convert.FromBase64String(base64EncodedString); | ||
connectionString = System.Text.Encoding.UTF8.GetString(base64EncodedBytes); | ||
return connectionString; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%@ WebHandler Language="C#" CodeBehind="LoginHandler.ashx.cs" Class="Presentation.Web.LoginHandler" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Web; | ||
|
||
namespace Presentation.Web | ||
{ | ||
/// <summary> | ||
/// LoginHandler redirects to the Login.ashx page with the forceAuthn parameter set to true. | ||
/// </summary> | ||
public class LoginHandler : IHttpHandler | ||
{ | ||
public void ProcessRequest(HttpContext context) | ||
{ | ||
context.Response.Redirect("Login.ashx?forceAuthn=true"); | ||
} | ||
|
||
public bool IsReusable => false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters