24 Replies
a year ago
hey
a year ago
oh, I don't know nothing about gcp auth mb
a year ago
4aec7600-6fe7-4915-90be-b3ef03bff8dd
a year ago
ty anyways for trying though
a year ago
i don't have any examples at hand but what you can do is pass the auth credentials as a base64, decode that on your code and then use the credentials SDK
a year ago
oh ok that actually shouldn't be tooooo hard. thanks thanks thanks!
a year ago
you can get the service account by going to your GCP dashboard, let me get the path to it
a year ago
IAM & Admin -> Service Accounts
a year ago
@Creitin Gameplays it's in your account, my dude. so follow along to there & find the service account for your ….is imagen 3 in vertex?
a year ago
pseudo-code:
import base64
import os
CREDENTIALS = json.decode(base64.decode(os.environ["GOOGLE_API_CREDS"]))a year ago
idfk how to encode it to base64 exactly, but i think you got it, @Creitin Gameplays, yeah? if you have a .json of your credentials, i have a website to just drop in to encode to base64 for ya, and that should be good. then we set a env var & drop in the output from that.
a year ago
prolly this is out need: https://www.base64encode.net/file-to-base64
a year ago
if you guys are on Linux, there's the base64 cli command available
a year ago
thanks for the help, dude! i think we should be aces from here, but let's see. ✨
a year ago
what in the spaghetti code is this
a year ago
blame google APIs
a year ago
xD
a year ago
@ThallesComH yaaaaaaaaaaaaaaaay thanks!!!!

a year ago
@Creitin Gameplays
a year ago
!s
Status changed to Solved brody • 11 months ago