Search Results for

    Show / Hide Table of Contents

    Class IdentityTicketExtensions

    Extension methods for IdentityTicket

    Inheritance
    System.Object
    IdentityTicketExtensions
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: ImageVault.Core.Common.Security.OAuth
    Assembly: ImageVault.Core.dll
    Syntax
    public static class IdentityTicketExtensions

    Methods

    GetUserIdentifier(IdentityTicket)

    Gets the user identity for the Identity ticket.

    Declaration
    public static string GetUserIdentifier(this IdentityTicket it)
    Parameters
    Type Name Description
    IdentityTicket it
    Returns
    Type Description
    System.String
    Remarks

    This method is insecure and only covers for the majority of identity claims. Will return the first claim value that it can find matching the claim types System.Security.Claims.ClaimTypes.Name, System.Security.Claims.ClaimTypes.NameIdentifier or System.Security.Claims.ClaimTypes.Upn. If the ticket does not contain a claim with this value, an exception occurs

    In This Article
    Back to top (c) Meriworks 2002-2022