|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.Authentication.BearerToken;
/// <summary>
/// A context for <see cref="BearerTokenEvents.OnMessageReceived"/>.
/// </summary>
public class MessageReceivedContext : ResultContext<BearerTokenOptions>
{
/// <summary>
/// Initializes a new instance of <see cref="MessageReceivedContext"/>.
/// </summary>
/// <inheritdoc />
public MessageReceivedContext(
HttpContext context,
AuthenticationScheme scheme,
BearerTokenOptions options)
: base(context, scheme, options) { }
/// <summary>
/// Bearer Token. This will give the application an opportunity to retrieve a token from an alternative location.
/// </summary>
public string? Token { get; set; }
}
|