简体   繁体   中英

Access user BigQuery with com.google.api.services.bigquery or com.google.cloud.bigquery library

I have RESTfull backend application where I need to access users BigQuery tables. In order to do it, I want to use oAuth2, obtain accessToken and then use BQ SDK to manage users BQ tables. In playground I'm able to get an access-token ( https://developers.google.com/oauthplayground ) however I cant see any option to use on backend with SDK. Every authentication option demands p12 or PEM files. Is it any way to use oAuth token in mentioned libraries?

Thanks

I am publishing an answer here with the "community wiki" tag, just for the sake that the community sees the question is now solved.

As answered by @JonSkeet in the comments, you can have more information about how to use OAuth2.0 with the Java Client Libraries in this documentation page .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM