feature: Site & Gateway Registry + Clinical Sync Contracts
This commit is contained in:
@@ -11,14 +11,23 @@ public static class AuthHelper
|
||||
}
|
||||
}
|
||||
|
||||
public static void AsAdmin(this HttpClient client) =>
|
||||
public static void AsAdmin(this HttpClient client)
|
||||
{
|
||||
client.DefaultRequestHeaders.Remove("X-Test-Role");
|
||||
client.DefaultRequestHeaders.Add("X-Test-Role", "ADMIN");
|
||||
}
|
||||
|
||||
public static void AsPhysician(this HttpClient client) =>
|
||||
public static void AsPhysician(this HttpClient client)
|
||||
{
|
||||
client.DefaultRequestHeaders.Remove("X-Test-Role");
|
||||
client.DefaultRequestHeaders.Add("X-Test-Role", "PHYSICIAN");
|
||||
}
|
||||
|
||||
public static void AsIntegration(this HttpClient client) =>
|
||||
public static void AsIntegration(this HttpClient client)
|
||||
{
|
||||
client.DefaultRequestHeaders.Remove("X-Test-Role");
|
||||
client.DefaultRequestHeaders.Add("X-Test-Role", "INTEGRATION");
|
||||
}
|
||||
|
||||
public static void ClearAuth(this HttpClient client)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user