1
0
mirror of https://github.com/bitwarden/server synced 2025-12-10 05:13:48 +00:00

Move SSO core to Core lib, new resource strings (#911)

* Move SSO core to Core lib, new resource strings

* Missed resource strings for lookup
This commit is contained in:
Chad Scharf
2020-09-04 10:42:47 -04:00
committed by GitHub
parent 43619ed933
commit ed99b99bc1
6 changed files with 121 additions and 13 deletions

View File

@@ -0,0 +1,21 @@
using System.Collections.Generic;
namespace Bit.Core.Sso
{
public static class SamlSigningAlgorithms
{
public const string Default = Sha256;
public const string Sha256 = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
public const string Sha384 = "http://www.w3.org/2000/09/xmldsig#rsa-sha384";
public const string Sha512 = "http://www.w3.org/2000/09/xmldsig#rsa-sha512";
public const string Sha1 = "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
public static IEnumerable<string> GetEnumerable()
{
yield return Sha256;
yield return Sha384;
yield return Sha512;
yield return Sha1;
}
}
}