-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Abc.IdentityModel.ClaimExtensions, Abc.IdentityModel.Http, Abc.…
…IdentityModel.Http.Saml, Abc.IdentityModel.Tokens.Jwt
- Loading branch information
Juris Gekiss
authored and
Juris Gekiss
committed
Oct 9, 2023
1 parent
ebd7a71
commit eff722e
Showing
139 changed files
with
20,598 additions
and
5 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
9 changes: 9 additions & 0 deletions
9
src/Abc.IdentityModel.ClaimExtensions/Abc.IdentityModel.ClaimExtensions.csproj
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,9 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
</PropertyGroup> | ||
|
||
|
||
</Project> |
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,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Abc.IdentityModel.Extensions { | ||
/// <summary> | ||
/// Defines the keys for properties contained in <see cref="Claim.Properties"/>. | ||
/// </summary> | ||
internal static class ClaimProperties { | ||
#pragma warning disable 1591 | ||
public const string Namespace = "http://schemas.xmlsoap.org/ws/2005/05/identity/claimproperties"; | ||
|
||
public const string SamlNameIdentifierFormat = Namespace + "/format"; | ||
public const string SamlNameIdentifierNameQualifier = Namespace + "/namequalifier"; | ||
public const string SamlNameIdentifierSPNameQualifier = Namespace + "/spnamequalifier"; | ||
public const string SamlNameIdentifierSPProvidedId = Namespace + "/spprovidedid"; | ||
public const string SamlSubjectConfirmationMethod = Namespace + "/confirmationmethod"; | ||
public const string SamlSubjectConfirmationData = Namespace + "/confirmationdata"; | ||
public const string SamlSubjectKeyInfo = Namespace + "/keyinfo"; | ||
public const string SamlAttributeFriendlyName = Namespace + "/friendlyname"; | ||
public const string SamlAttributeNameFormat = Namespace + "/attributename"; | ||
#pragma warning restore 1591 | ||
} | ||
} |
88 changes: 88 additions & 0 deletions
88
src/Abc.IdentityModel.ClaimExtensions/Extensions/ClaimNotFoundException.cs
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,88 @@ | ||
// ---------------------------------------------------------------------------- | ||
// <copyright file="ClaimNotFoundException.cs" company="ABC Software Ltd"> | ||
// Copyright © 2010-2019 ABC Software Ltd. All rights reserved. | ||
// | ||
// This library is free software; you can redistribute it and/or. | ||
// modify it under the terms of the GNU Lesser General Public | ||
// License as published by the Free Software Foundation, either | ||
// version 3 of the License, or (at your option) any later version. | ||
// | ||
// This library is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
// Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public | ||
// License along with the library. If not, see http://www.gnu.org/licenses/. | ||
// </copyright> | ||
// ---------------------------------------------------------------------------- | ||
|
||
namespace Abc.IdentityModel.Extensions { | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
/// <summary> | ||
/// Exception for failed claims search operations | ||
/// </summary> | ||
/// <remarks> | ||
/// The idea of Dominick Baier. | ||
/// </remarks> | ||
[Serializable] | ||
public class ClaimNotFoundException : Exception { | ||
// For guidelines regarding the creation of new exception types, see | ||
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp | ||
// and | ||
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp | ||
#region Constructors | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ClaimNotFoundException"/> class. | ||
/// </summary> | ||
public ClaimNotFoundException() { | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ClaimNotFoundException"/> class. | ||
/// </summary> | ||
/// <param name="message"> | ||
/// The message. | ||
/// </param> | ||
public ClaimNotFoundException(string message) | ||
: base(message) { | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ClaimNotFoundException"/> class. | ||
/// </summary> | ||
/// <param name="message"> | ||
/// The message. | ||
/// </param> | ||
/// <param name="inner"> | ||
/// The inner. | ||
/// </param> | ||
public ClaimNotFoundException(string message, Exception inner) | ||
: base(message, inner) { | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ClaimNotFoundException"/> class. | ||
/// </summary> | ||
/// <param name="info"> | ||
/// The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown. | ||
/// </param> | ||
/// <param name="context"> | ||
/// The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination. | ||
/// </param> | ||
/// <exception cref="T:System.ArgumentNullException"> | ||
/// The <paramref name="info"/> parameter is null. | ||
/// </exception> | ||
/// <exception cref="T:System.Runtime.Serialization.SerializationException"> | ||
/// The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0). | ||
/// </exception> | ||
protected ClaimNotFoundException(SerializationInfo info, StreamingContext context) | ||
: base(info, context) { | ||
} | ||
|
||
#endregion | ||
} | ||
} |
Oops, something went wrong.