forked from gitter-badger/IdentityServer4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBackChannelHttpClient.cs
More file actions
40 lines (35 loc) · 1.36 KB
/
BackChannelHttpClient.cs
File metadata and controls
40 lines (35 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using System.Net.Http;
using IdentityServer4.Configuration;
namespace IdentityServer4.Infrastructure
{
/// <summary>
/// Used to model back-channel HTTP calls for back-channel logout spec.
/// </summary>
/// <seealso cref="System.Net.Http.HttpClient" />
public class BackChannelHttpClient : HttpClient
{
/// <summary>
/// Initializes a new instance of the <see cref="BackChannelHttpClient"/> class.
/// </summary>
public BackChannelHttpClient()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="BackChannelHttpClient"/> class.
/// </summary>
/// <param name="options">The options.</param>
public BackChannelHttpClient(IdentityServerOptions options)
{
Timeout = options.Authentication.BackChannelLogoutTimeOut;
}
/// <summary>
/// Initializes a new instance of the <see cref="BackChannelHttpClient"/> class.
/// </summary>
/// <param name="handler">The HTTP handler stack to use for sending requests.</param>
public BackChannelHttpClient(HttpMessageHandler handler) : base(handler)
{
}
}
}