Click or drag to resize

AuthContext Class

Authentication context for a call. AuthContext is the only reliable source of truth when it comes to authenticating calls. Using any other call/context properties for authentication purposes is wrong and inherently unsafe.
Inheritance Hierarchy
SystemObject
  Grpc.CoreAuthContext

Namespace:  Grpc.Core
Assembly:  Grpc.Core (in Grpc.Core.dll) Version: 1.2.0-dev
Syntax
public class AuthContext

The AuthContext type exposes the following members.

Properties
  NameDescription
Public propertyIsPeerAuthenticated
Returns true if the peer is authenticated.
Public propertyPeerIdentity
Gets properties that represent the peer identity (there can be more than one). Returns an empty collection if the peer is not authenticated.
Public propertyPeerIdentityPropertyName
Gets the name of the property that indicates the peer identity. Returns null if the peer is not authenticated.
Public propertyProperties
Gets the auth properties of this context.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindPropertiesByName
Returns the auth properties with given name (there can be more than one). If no properties of given name exist, an empty collection will be returned.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also