-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove use of exception SecurityTokenUnableToValidateException
- Loading branch information
1 parent
2cdfc47
commit 5d49e7c
Showing
19 changed files
with
296 additions
and
625 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
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
40 changes: 40 additions & 0 deletions
40
test/Microsoft.IdentityModel.Tokens.Saml.Tests/CreateTokenTheoryData.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,40 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System.Collections.Generic; | ||
using Microsoft.IdentityModel.TestUtils; | ||
using Microsoft.IdentityModel.Tokens.Saml2; | ||
|
||
#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant | ||
|
||
namespace Microsoft.IdentityModel.Tokens.Saml.Tests | ||
{ | ||
public class CreateTokenTheoryData : TheoryDataBase | ||
{ | ||
public Dictionary<string, object> AdditionalHeaderClaims { get; set; } | ||
|
||
public string Payload { get; set; } | ||
|
||
public string CompressionAlgorithm { get; set; } | ||
|
||
public CompressionProviderFactory CompressionProviderFactory { get; set; } | ||
|
||
public EncryptingCredentials EncryptingCredentials { get; set; } | ||
|
||
public bool IsValid { get; set; } = true; | ||
|
||
public SigningCredentials SigningCredentials { get; set; } | ||
|
||
public SecurityTokenDescriptor TokenDescriptor { get; set; } | ||
|
||
public SamlSecurityTokenHandler SamlSecurityTokenHandler { get; set; } | ||
|
||
public Saml2SecurityTokenHandler Saml2SecurityTokenHandler { get; set; } | ||
|
||
public string SamlToken { get; set; } | ||
|
||
public TokenValidationParameters ValidationParameters { get; set; } | ||
} | ||
} | ||
|
||
#pragma warning restore CS3016 // Arrays as attribute arguments is not CLS-compliant |
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
Oops, something went wrong.