GoogleAuthInterceptorsFromCredential Method |
Creates an
AsyncAuthInterceptor that will obtain access token from any credential type that implements
ITokenAccess. (e.g.
GoogleCredential).
Namespace: Grpc.AuthAssembly: Grpc.Auth (in Grpc.Auth.dll) Version: 0.12.0.0
Syntaxpublic static AsyncAuthInterceptor FromCredential(
ITokenAccess credential
)
Public Shared Function FromCredential (
credential As ITokenAccess
) As AsyncAuthInterceptor
public:
static AsyncAuthInterceptor^ FromCredential(
ITokenAccess^ credential
)
static member FromCredential :
credential : ITokenAccess -> AsyncAuthInterceptor
Parameters
- credential
- Type: ITokenAccess
The credential to use to obtain access tokens.
Return Value
Type:
AsyncAuthInterceptorThe interceptor.
See Also