I have an application that uses Net::Google::Spreadsheets. It began to fail with authentication errors earlier this week. My understanding is that Google has deprecated some authentication methods, and that we are now to use OAuth2.
My application runs on a headless server, so I cannot use the three-legged OAuth2 solution shown in Net::Google::AuthSub login failed with new Google Drive version
I need to use two-legged authentication with a service account. I put together code to build the JWT, and obtain the access_token (as detailed in the Google developer documentation).
What I need some assistance with is the method I need to use to get Net::Google::Spreadsheets to make use of this access_token, or a method to do two-legged OAuth2 that works with this module.