Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 891 Bytes

clients-auth.md

File metadata and controls

7 lines (5 loc) · 891 Bytes

#Authentication By default, AutoRest generates clients that make unauthenticated HTTP requests. When the -AddCredentials flag is set to true, the generated client will include a Credentials property of type ServiceClientCredentials. The Microsoft.Rest.ClientRuntime package includes two ServiceClientCredentials :

Custom authentication behaviors can be implemented by inheriting from ServiceClientCredentials. The ProcessHttpRequestAsync() method is invoked for each HTTP request.