Package feast.common.auth.credentials
Class GoogleAuthCredentials
- java.lang.Object
-
- io.grpc.CallCredentials
-
- feast.common.auth.credentials.GoogleAuthCredentials
-
public class GoogleAuthCredentials extends io.grpc.CallCredentialsGoogleAuthCredentials provides a Google OIDC ID token for making authenticated gRPC calls. Uses Google Application Default credentials to obtain the OIDC token used for authentication. The given token will be passed as authorization bearer token when making calls.
-
-
Constructor Summary
Constructors Constructor Description GoogleAuthCredentials(Map<String,String> options)Construct a new GoogleAuthCredentials with given options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyRequestMetadata(io.grpc.CallCredentials.RequestInfo requestInfo, Executor appExecutor, io.grpc.CallCredentials.MetadataApplier applier)voidthisUsesUnstableApi()
-
-
-
Constructor Detail
-
GoogleAuthCredentials
public GoogleAuthCredentials(Map<String,String> options) throws IOException
Construct a new GoogleAuthCredentials with given options.- Parameters:
options- a map of options, Required unless specified: audience - Optional, Sets the target audience of the token obtained.- Throws:
IOException
-
-
Method Detail
-
applyRequestMetadata
public void applyRequestMetadata(io.grpc.CallCredentials.RequestInfo requestInfo, Executor appExecutor, io.grpc.CallCredentials.MetadataApplier applier)- Specified by:
applyRequestMetadatain classio.grpc.CallCredentials
-
thisUsesUnstableApi
public void thisUsesUnstableApi()
- Specified by:
thisUsesUnstableApiin classio.grpc.CallCredentials
-
-