mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 23:54:06 +03:00
29 lines
862 B
C#
29 lines
862 B
C#
using System.Net.Http;
|
|
using System;
|
|
using System.Net.Http.Headers;
|
|
|
|
namespace Bit.App
|
|
{
|
|
public class IdentityHttpClient : HttpClient
|
|
{
|
|
public IdentityHttpClient()
|
|
{
|
|
Init();
|
|
}
|
|
|
|
public IdentityHttpClient(HttpMessageHandler handler)
|
|
: base(handler)
|
|
{
|
|
Init();
|
|
}
|
|
|
|
private void Init()
|
|
{
|
|
//BaseAddress = new Uri("http://169.254.80.80:33656"); // Desktop from VS Android Emulator
|
|
//BaseAddress = new Uri("http://192.168.1.6:33656"); // Desktop
|
|
//BaseAddress = new Uri("https://identity-api.bitwarden.com"); // Preview
|
|
BaseAddress = new Uri("https://identity.bitwarden.com"); // Production
|
|
DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
|
|
}
|
|
}
|
|
}
|