Method: Google::Auth::Credentials.target_audience=

Defined in:
lib/googleauth/credentials.rb

.target_audience=(new_target_audience) ⇒ Object

Sets 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.

Parameters:

  • new_target_audience (String, nil)


184
185
186
# File 'lib/googleauth/credentials.rb', line 184

def self.target_audience= new_target_audience
  @target_audience = new_target_audience
end