Show / Hide Table of Contents

Class BearerAuthentication

Authenticates HTTP requests that make use of Bearer authentication.

Inheritance
object
BearerAuthentication
Implements
IHTTPAuthenticationType
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Quantellia.WMServer.Asset.Model.HTTP.AuthenticationType
Assembly: WMServer.dll
Syntax
public class BearerAuthentication : IHTTPAuthenticationType

Constructors

BearerAuthentication(WMHTTPConnection)

constructor

Declaration
public BearerAuthentication(WMHTTPConnection connection)
Parameters
Type Name Description
WMHTTPConnection connection

Properties

connection

The WMHTTPConnection object this belongs to.

Declaration
public WMHTTPConnection connection { get; set; }
Property Value
Type Description
WMHTTPConnection

Methods

AuthenticateRequest(HttpRequestMessage)

Accepts a completed request and authenticates it.

Declaration
public Task<HttpRequestMessage> AuthenticateRequest(HttpRequestMessage request)
Parameters
Type Name Description
HttpRequestMessage request

The original request

Returns
Type Description
Task<HttpRequestMessage>

An authenticated request.

Initialize()

Initializes or refreshes the secret for this HTTP connection. This may take the form of a login procedure.

Declaration
public Task Initialize()
Returns
Type Description
Task

ValidateKeys()

Validates the AuthenticationData keys. If it fails validation, should throw an exception detailing the missing or malformeed keys.

Declaration
public Task ValidateKeys()
Returns
Type Description
Task

Implements

IHTTPAuthenticationType
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE