| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using Azure.Core; |
| | 5 | | using Azure.Core.Pipeline; |
| | 6 | |
|
| | 7 | | namespace Azure.Analytics.Synapse |
| | 8 | | { |
| | 9 | | internal static class SynapseClientPipeline |
| | 10 | | { |
| | 11 | | private const string DefaultScope = "https://dev.azuresynapse.net/.default"; |
| | 12 | |
|
| | 13 | | public static HttpPipeline Build(ClientOptions options, TokenCredential credential) |
| | 14 | | { |
| 16 | 15 | | return HttpPipelineBuilder.Build(options, new BearerTokenAuthenticationPolicy(credential, DefaultScope)); |
| | 16 | | } |
| | 17 | | } |
| | 18 | | } |