googleauth - Class Signet::OAuth2::Client (v1.15.1)

Reference documentation and code samples for the googleauth class Signet::OAuth2::Client.

Signet::OAuth2::Client creates an OAuth2 client

This reopens Client to add #apply and #apply! methods which update a hash with the fetched authentication token.

Inherits

  • Object

Methods

#build_default_connection

defbuild_default_connection()

#configure_connection

defconfigure_connection(options)

#duplicate

defduplicate(options={})

Creates a duplicate of these credentials without the Signet::OAuth2::Client-specific transient state (e.g. cached tokens)

Parameter
  • options (Hash) — Overrides for the credentials parameters.

#fetch_access_token!

deffetch_access_token!(options={})

#generate_access_token_request

defgenerate_access_token_request(options={})

#googleauth_orig_generate_access_token_request

defgoogleauth_orig_generate_access_token_request()

#orig_fetch_access_token!

deforig_fetch_access_token!()

#retry_with_error

defretry_with_error(max_retry_count=5)->Object

Retries the provided block with exponential backoff, handling and wrapping errors.

Parameter
  • max_retry_count (Integer) — The maximum number of retries before giving up
Yields
  • — The block to execute and potentially retry
Returns
  • (Object) — The result of the block if successful
Raises

#token_type

deftoken_type()

The token type as symbol, either :id_token or :access_token

#universe_domain

defuniverse_domain()

Set the universe domain

#universe_domain=

defuniverse_domain=(value)

Set the universe domain

#update!

defupdate!(options={})

#update_signet_base

defupdate_signet_base()

#update_token!

defupdate_token!(options={})

#update_token_signet_base

defupdate_token_signet_base()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.