Grpc.Auth.GoogleAuthInterceptors.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class GoogleAuthInterceptors
  8. | gRPC C# </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class GoogleAuthInterceptors
  11. | gRPC C# ">
  12. <meta name="generator" content="docfx 2.23.1.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <meta property="docfx:navrel" content="../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../index.html">
  34. <img id="logo" class="svg" src="../logo.svg" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list"></div>
  57. <div class="sr-items"></div>
  58. <ul id="pagination"></ul>
  59. </div>
  60. </div>
  61. <div role="main" class="container body-content hide-when-search">
  62. <div class="sidenav hide-when-search">
  63. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  64. <div class="sidetoggle collapse" id="sidetoggle">
  65. <div id="sidetoc"></div>
  66. </div>
  67. </div>
  68. <div class="article row grid-right">
  69. <div class="col-md-10">
  70. <article class="content wrap" id="_content" data-uid="Grpc.Auth.GoogleAuthInterceptors">
  71. <h1 id="Grpc_Auth_GoogleAuthInterceptors" data-uid="Grpc.Auth.GoogleAuthInterceptors" class="text-break">Class GoogleAuthInterceptors
  72. </h1>
  73. <div class="markdown level0 summary"><p>Factory methods to create authorization interceptors for Google credentials.
  74. <a class="xref" href="Grpc.Auth.GoogleGrpcCredentials.html">GoogleGrpcCredentials</a></p>
  75. </div>
  76. <div class="markdown level0 conceptual"></div>
  77. <div class="inheritance">
  78. <h5>Inheritance</h5>
  79. <div class="level0"><span class="xref">System.Object</span></div>
  80. <div class="level1"><span class="xref">GoogleAuthInterceptors</span></div>
  81. </div>
  82. <div class="inheritedMembers">
  83. <h5>Inherited Members</h5>
  84. <div>
  85. <span class="xref">System.Object.ToString()</span>
  86. </div>
  87. <div>
  88. <span class="xref">System.Object.Equals(System.Object)</span>
  89. </div>
  90. <div>
  91. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  92. </div>
  93. <div>
  94. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  95. </div>
  96. <div>
  97. <span class="xref">System.Object.GetHashCode()</span>
  98. </div>
  99. <div>
  100. <span class="xref">System.Object.GetType()</span>
  101. </div>
  102. <div>
  103. <span class="xref">System.Object.MemberwiseClone()</span>
  104. </div>
  105. </div>
  106. <h6><strong>Namespace</strong>: <a class="xref" href="Grpc.Auth.html">Grpc.Auth</a></h6>
  107. <h6><strong>Assembly</strong>: Grpc.Auth.dll</h6>
  108. <h5 id="Grpc_Auth_GoogleAuthInterceptors_syntax">Syntax</h5>
  109. <div class="codewrapper">
  110. <pre><code class="lang-csharp hljs">public static class GoogleAuthInterceptors</code></pre>
  111. </div>
  112. <h3 id="methods">Methods
  113. </h3>
  114. <a id="Grpc_Auth_GoogleAuthInterceptors_FromAccessToken_" data-uid="Grpc.Auth.GoogleAuthInterceptors.FromAccessToken*"></a>
  115. <h4 id="Grpc_Auth_GoogleAuthInterceptors_FromAccessToken_System_String_" data-uid="Grpc.Auth.GoogleAuthInterceptors.FromAccessToken(System.String)">FromAccessToken(String)</h4>
  116. <div class="markdown level1 summary"><p>Creates an <a class="xref" href="Grpc.Core.AsyncAuthInterceptor.html">AsyncAuthInterceptor</a> that will use given access token as authorization.</p>
  117. </div>
  118. <div class="markdown level1 conceptual"></div>
  119. <h5 class="decalaration">Declaration</h5>
  120. <div class="codewrapper">
  121. <pre><code class="lang-csharp hljs">public static AsyncAuthInterceptor FromAccessToken(string accessToken)</code></pre>
  122. </div>
  123. <h5 class="parameters">Parameters</h5>
  124. <table class="table table-bordered table-striped table-condensed">
  125. <thead>
  126. <tr>
  127. <th>Type</th>
  128. <th>Name</th>
  129. <th>Description</th>
  130. </tr>
  131. </thead>
  132. <tbody>
  133. <tr>
  134. <td><span class="xref">System.String</span></td>
  135. <td><span class="parametername">accessToken</span></td>
  136. <td><p>OAuth2 access token.</p>
  137. </td>
  138. </tr>
  139. </tbody>
  140. </table>
  141. <h5 class="returns">Returns</h5>
  142. <table class="table table-bordered table-striped table-condensed">
  143. <thead>
  144. <tr>
  145. <th>Type</th>
  146. <th>Description</th>
  147. </tr>
  148. </thead>
  149. <tbody>
  150. <tr>
  151. <td><a class="xref" href="Grpc.Core.AsyncAuthInterceptor.html">AsyncAuthInterceptor</a></td>
  152. <td><p>The interceptor.</p>
  153. </td>
  154. </tr>
  155. </tbody>
  156. </table>
  157. <a id="Grpc_Auth_GoogleAuthInterceptors_FromCredential_" data-uid="Grpc.Auth.GoogleAuthInterceptors.FromCredential*"></a>
  158. <h4 id="Grpc_Auth_GoogleAuthInterceptors_FromCredential_Google_Apis_Auth_OAuth2_ITokenAccess_" data-uid="Grpc.Auth.GoogleAuthInterceptors.FromCredential(Google.Apis.Auth.OAuth2.ITokenAccess)">FromCredential(ITokenAccess)</h4>
  159. <div class="markdown level1 summary"><p>Creates an <a class="xref" href="Grpc.Core.AsyncAuthInterceptor.html">AsyncAuthInterceptor</a> that will obtain access token from any credential type that implements
  160. <code>ITokenAccess</code>. (e.g. <code>GoogleCredential</code>).</p>
  161. </div>
  162. <div class="markdown level1 conceptual"></div>
  163. <h5 class="decalaration">Declaration</h5>
  164. <div class="codewrapper">
  165. <pre><code class="lang-csharp hljs">public static AsyncAuthInterceptor FromCredential(ITokenAccess credential)</code></pre>
  166. </div>
  167. <h5 class="parameters">Parameters</h5>
  168. <table class="table table-bordered table-striped table-condensed">
  169. <thead>
  170. <tr>
  171. <th>Type</th>
  172. <th>Name</th>
  173. <th>Description</th>
  174. </tr>
  175. </thead>
  176. <tbody>
  177. <tr>
  178. <td><span class="xref">Google.Apis.Auth.OAuth2.ITokenAccess</span></td>
  179. <td><span class="parametername">credential</span></td>
  180. <td><p>The credential to use to obtain access tokens.</p>
  181. </td>
  182. </tr>
  183. </tbody>
  184. </table>
  185. <h5 class="returns">Returns</h5>
  186. <table class="table table-bordered table-striped table-condensed">
  187. <thead>
  188. <tr>
  189. <th>Type</th>
  190. <th>Description</th>
  191. </tr>
  192. </thead>
  193. <tbody>
  194. <tr>
  195. <td><a class="xref" href="Grpc.Core.AsyncAuthInterceptor.html">AsyncAuthInterceptor</a></td>
  196. <td><p>The interceptor.</p>
  197. </td>
  198. </tr>
  199. </tbody>
  200. </table>
  201. </article>
  202. </div>
  203. <div class="hidden-sm col-md-2" role="complementary">
  204. <div class="sideaffix">
  205. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  206. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  207. </nav>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. <footer>
  213. <div class="grad-bottom"></div>
  214. <div class="footer">
  215. <div class="container">
  216. <span class="pull-right">
  217. <a href="#top">Back to top</a>
  218. </span>
  219. <span>Copyright © 2015-2017 Microsoft<br>Generated by <strong>DocFX</strong></span>
  220. </div>
  221. </div>
  222. </footer>
  223. </div>
  224. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  225. <script type="text/javascript" src="../styles/docfx.js"></script>
  226. <script type="text/javascript" src="../styles/main.js"></script>
  227. </body>
  228. </html>