question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for SamlNameIdentifierClaimResource

See original GitHub issue

Hi

We used to have support for SamlNameIdentifierClaimResource in the .NET Framework. I see that it is internal class in WCF.NET Core.

      private static string FindClaim(AuthorizationContext authorizationContext)
        {
            foreach (ClaimSet claimSet in authorizationContext.ClaimSets)
            {
                foreach (Claim claim in claimSet.FindClaims(ClaimTypes.NameIdentifier, Rights.Identity))
                {
                    SamlNameIdentifierClaimResource resource = claim.Resource as SamlNameIdentifierClaimResource;
                    if (resource != null)
                    {
                        return resource.Name;
                    }
                }
            }

            return null;
        }

Above is a piece of code that we used to depend on. How to do this in WCF.NET Core.

Please provide inputs.

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
birojnayakcommented, Apr 22, 2023

yes if it’s public in reference code we should make it public… I will add to previous PR… let me know if there are other findings w.r.t SAML… thank you for pointing them.

0reactions
birojnayakcommented, Jul 10, 2023

https://github.com/CoreWCF/CoreWCF/issues/1072 => has details… marking duplicate and closing. @venknar if it’s not working, feel free to re-open it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ADFS 2.0 simpleSAML issue: More than one claim based ...
I have sucessfully set up the relaying party, from the sp app i get redirected to the idp, i can authentify, but upon...
Read more >
SSO setup - ADFS (SAML 2.0)
Fill out this contact form to trial or subscribe to the SSO feature. ... than one SamlNameIdentifierClaimResource-based claim was produced ...
Read more >
ADFS 2.0, Event ID - 186, Error : The Federation Service ...
Hi Friends,. I am getting event error 186 and after Adding new relaying party in ADFS 2.0 Server. Please help. The Federation Service...
Read more >
SamlNameIdentifierClaimResour...
A URI that states the subject of a SAML assertion is specified using a Windows domain account. The Format property corresponds to the...
Read more >
[P0] Support System.IdentityModel.Tokens. ...
[P0] Support System.IdentityModel.Tokens.SamlNameIdentifierClaimResource #3805 ... WSFederation Issues related to adding support for WSFederation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found