Method: Google::Auth::Credentials.target_audience

Defined in:
lib/googleauth/credentials.rb

.target_audienceString?

The default final target audience for ID tokens, to be used when none is provided during initialization.

Either #scope or #target_audience, but not both, should be non-nil. If #scope is set, this credential will produce access tokens. If #target_audience is set, this credential will produce ID tokens.

Returns:

  • (String, nil)


170
171
172
# File 'lib/googleauth/credentials.rb', line 170

def self.target_audience
  lookup_auth_param :target_audience
end