[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# googleauth - Class Signet::OAuth2::Client (v1.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.15.0 (latest)](/ruby/docs/reference/googleauth/latest/Signet-OAuth2-Client)\n- [1.14.0](/ruby/docs/reference/googleauth/1.14.0/Signet-OAuth2-Client)\n- [1.13.1](/ruby/docs/reference/googleauth/1.13.1/Signet-OAuth2-Client)\n- [1.12.2](/ruby/docs/reference/googleauth/1.12.2/Signet-OAuth2-Client) \nReference documentation and code samples for the googleauth class Signet::OAuth2::Client.\n\nSignet::OAuth2::Client creates an OAuth2 client\n\n\n\u003cbr /\u003e\n\nThis reopens Client to add #apply and #apply! methods which update a\nhash with the fetched authentication token. \n\nInherits\n--------\n\n- Object \n\nIncludes\n--------\n\n- [Google::Auth::BaseClient](./Google-Auth-BaseClient)\n\nMethods\n-------\n\n### #build_default_connection\n\n def build_default_connection()\n\n### #configure_connection\n\n def configure_connection(options)\n\n### #duplicate\n\n def duplicate(options = {})\n\nCreates a duplicate of these credentials\nwithout the Signet::OAuth2::Client-specific\ntransient state (e.g. cached tokens) \n**Parameter**\n\n- **options** (Hash) --- Overrides for the credentials parameters.\n\n### #fetch_access_token!\n\n def fetch_access_token!(options = {})\n\n### #generate_access_token_request\n\n def generate_access_token_request(options = {})\n\n### #googleauth_orig_generate_access_token_request\n\n def googleauth_orig_generate_access_token_request()\n\n### #orig_fetch_access_token!\n\n def orig_fetch_access_token!()\n\n### #retry_with_error\n\n def retry_with_error(max_retry_count = 5) -\u003e Object\n\nRetries the provided block with exponential backoff, handling and wrapping errors. \n**Parameter**\n\n- **max_retry_count** (Integer) --- The maximum number of retries before giving up \n**Yields**\n\n- --- The block to execute and potentially retry \n**Returns**\n\n- (Object) --- The result of the block if successful \n**Raises**\n\n- ([Google::Auth::AuthorizationError](./Google-Auth-AuthorizationError)) --- If a Signet::AuthorizationError occurs or if retries are exhausted\n- ([Google::Auth::ParseError](./Google-Auth-ParseError)) --- If a Signet::ParseError occurs during token parsing\n\n### #token_type\n\n def token_type()\n\nThe token type as symbol, either :id_token or :access_token\n\n### #universe_domain\n\n def universe_domain()\n\nSet the universe domain\n\n### #universe_domain=\n\n def universe_domain=(value)\n\nSet the universe domain\n\n### #update!\n\n def update!(options = {})\n\n### #update_signet_base\n\n def update_signet_base()\n\n### #update_token!\n\n def update_token!(options = {})\n\n### #update_token_signet_base\n\n def update_token_signet_base()"]]