BearerTokenAuthentication ClassThe WebApiClient Documentation
Defines authentication using bearer tokens
Inheritance Hierarchy
System Object
  WebApiRestService.Authentication BearerTokenAuthentication

Namespace: WebApiRestService.Authentication
Assembly: WebApiClient (in WebApiClient.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class BearerTokenAuthentication : IAuthentication

The BearerTokenAuthentication type exposes the following members.

Constructors
  NameDescription
Public methodBearerTokenAuthentication(String)
Creates the object using a token
Public methodBearerTokenAuthentication(String, String, String)
Creates the object
Top
Methods
  NameDescription
Public methodAuthenticate
If the bearer token is already present, just return it. If not, makes the call to TokenUri to get the token
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 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
Extension Methods
  NameDescription
Public Extension MethodParseAnonymousObject
Converts an anonymous type into a dictionary
(Defined by ObjectExtensions.)
Top
Properties
  NameDescription
Public propertyCredentials
Bearer Token Authentication doesn't use the Request's Authentication header to authenticate the user
Public propertyHasToken
Indicates whether token is present
Public propertyToken
The generated token
Public propertyTokenUri
The absolute uri that serves the token
Top
See Also